:root {
  --primary-red: #e30613;
  --text-dark: #1a1a1a;
  --text-muted: #666;
  --bg-light: #f8f9fa;

  /* Fluid Typography con clamp(min, preferred, max) */
  --fs-h1: clamp(2rem, 5vw, 3rem);
  --fs-h2: clamp(1.25rem, 3vw, 1.6rem);
  --fs-body: clamp(0.9rem, 1vw + 0.5rem, 1rem);

  /* Fluid Spacing */
  --spacing-lg: clamp(40px, 8vw, 80px);
  --container-gap: clamp(20px, 5vw, 60px);
}
.cotizador__banner {
  position: relative;
}

.cotizador__banner-image {
  /* height: calc(270px - var(--header-height)); */
  height: auto;
  width: 100%;
  object-position: bottom;
  object-fit: cover;
  display: block;
}

.cotizador__banner-title {
  /* position: absolute;
  bottom: 30px;
  left: 30px; */
  color: var(--primary-color);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
}

.cotizador__content {
  padding: 2rem 1rem 2rem 1rem;
}

.cotizador__product-image {
  width: 100%;
}

.cotizador__selector-label {
  font-size: 18px;
  font-weight: 700;
}

.cotizador__product {
  display: flex;
  flex-direction: column;
}

.cotizador__product-info {
  padding: 1rem;
}

.cotizador__selector-select {
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 600;
}

.cotizador__selector-select option {
  padding: 16px 20px;
}

.cotizador__product-image-container {
  display: flex;
  margin-block: 5rem 3rem;
}

.cotizador__product-image {
  width: 100%;
  /* Esto permitirá que la imagen ocupe todo el espacio disponible en el contenedor */
  max-width: 500px;
  /* Limita el tamaño máximo de la imagen */
  min-width: 300px;
  height: auto;
  /* Establece el tamaño mínimo de la imagen */
}

.cotizador__product-name {
  font-size: 32px;
  font-weight: 700;
}

.cotizador__product-price-label,
.cotizador__product-charger {
  color: var(--border-color);
  font-size: 18px;
  font-weight: 400;
}

.cotizador__product-link {
  color: #d40021;
  padding: 10px 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: max-content;
  border: solid 1px #d40021;
  margin-top: 1rem;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: none;
}

.cotizador__product-link:hover {
  color: white;
  background-color: #d40021;
}

.cotizador__product-link path {
  transition: all 0.3s ease;
}

.cotizador__product-link:hover path {
  fill: white;
}

/* STYLES SELECT */

.custom-select,
.form__select {
  position: relative;
  width: 100%;
  margin-block: 1rem 2rem;
}
.custom-select__option {
  text-transform: uppercase;
}
.custom-select__trigger,
.form__select-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.5);
}
.custom-select__options,
.cotizador__product-name {
  text-transform: capitalize;
}

.custom-select__options,
.form__select-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid var(--primary-color);
  z-index: 1;
  border-radius: 4px;
  max-height: 250px;
  overflow: auto;
}

.custom-select__option,
.form__option {
  padding: 16px 20px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  background-color: #fff;
  transition: all 0.3s ease;
}

.custom-select__option.select,
.form__option.select {
  border-left: 3px solid #d40021;
}

.custom-select__option:hover,
.form__option:hover {
  background-color: #e0e0e0;
}

/* Mostrar opciones cuando el select está activo */
.custom-select.open .custom-select__options,
.form__select.open .form__select-options {
  display: block;
}

.custom-select .arrow,
.form__select .form__select-arrow {
  transition: transform 0.3s ease;
  /* Añade una animación suave para la rotación */
}

.custom-select.open .arrow,
.form__select.open .form__select-arrow {
  transform: rotate(180deg);
}

/* FORMULARIO COTIZADOR */
.cotizador__form {
  padding-block: 1rem 2rem;
}

.form__title {
  font-size: 28px;
  font-weight: 700;
}

.form__group-container {
  margin-top: 4rem;
}

.form__group,
.form__group-container {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.form__label {
  font-size: 18px;
  font-weight: 600;
}

.form__required {
  color: #d40021;
}

.form__input {
  font-size: 18px;
  font-weight: 400;
  padding: 16px 20px;
}

.form__select {
  margin-block: 0;
}

.form__help {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form__options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* padding-bottom: 1rem; */
}

.form__border-top {
  border-top: 1px solid #868686;
  padding-top: 1rem;
}
.form__gap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form__checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form__help-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--border-color);
}

.form__input-checkbox {
  width: 16px;
  height: 16px;
  flex: none;
  align-self: start;
  display: flex;
  cursor: pointer;
}

.form__checkbox-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--border-color);
  cursor: pointer;
}

.form__checkbox-label-autorizacion {
  color: var(--primary-color);
}

.form__checkbox-label-link {
  color: #1434db;
  text-decoration: none;
}

.form__btn-label {
  font-size: 14px;
  font-weight: 600;
}

.form__btn-submit {
  background-color: #d40021;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary-color);
  border: none;
  cursor: pointer;
}

/* Checkbox styles */
.form__input-checkbox {
  position: absolute;
  opacity: 0;
  width: 20px;
  height: 20px;
  flex: none;
  align-self: start;
  display: flex;
  cursor: pointer;
}

.form__checkbox-label {
  padding-left: 30px;
  font-size: 16px;
  position: relative;
  font-weight: 500;
  color: var(--border-color);
  cursor: pointer;
}

/* El "cuadro" que simula el checkbox */
.form__checkbox-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background-color: #d9d9d9;
  transition: all 0.5s ease;
}

/* Estilos para el chulo (check) */
.form__checkbox-label::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  transform: translateY(-50%) scale(0);
  width: 15px;
  height: 15px;
  background: url("../images/cotizador/check-icon.svg") no-repeat center/contain;
  transition: transform 0.5s ease;
}

/* Estilos cuando el checkbox está marcado */
.form__input-checkbox:checked + .form__checkbox-label::before {
  background-color: #fad4d8;
  /* Fondo suave rojo */
}

.form__input-checkbox:checked + .form__checkbox-label::after {
  transform: translateY(-50%) scale(1);
  /* Mostrar el check */
}

.form__input--error {
  border: 2px solid red;
}

.form__error {
  color: red;
  font-size: 0.8rem;
  font-weight: 600;
  /* margin-top: 0.5rem; */
}

.form__error-flex {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.uppercase {
  text-transform: uppercase;
}
/* Estilos para la Nota Legal / Disclaimer */
.form__disclaimer {
  padding: 1.5rem;
  border-top: 1px solid #ddd;
  background-color: #f9f9f9;
  border-radius: 4px;
}
.form__disclaimer p {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
}
.form__disclaimer p:last-child {
  margin-bottom: 0;
}
.form__checkbox-label a {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border 0.3s;
  word-break: break-word;
  overflow-wrap: break-word;
}
.form__checkbox-label a:hover {
  border-bottom-color: var(--primary-red);
}

@media (min-width: 600px) {
  .cotizador__banner-image {
    object-position: center;
  }
}
@media (min-width: 1050px) {
  .cotizador__banner-image {
    /* height: calc(580px - var(--header-height)); */
  }

  .cotizador__banner-title {
    bottom: 80px;
    left: 80px;
  }

  .cotizador__content {
    display: flex;
    padding-inline: 4rem;
    /* padding-bottom: 7rem; */
  }

  .custom-select {
    max-width: 320px;
  }

  .cotizador__selector,
  .cotizador__form {
    flex: 1;
  }

  .cotizador__product-image-container {
    display: flex;
    margin-block: 5rem 2rem;
  }

  .cotizador__product-image-container {
    justify-content: center;
  }

  /* FORMULARIO COTIZADOR */
  .cotizador__form {
    padding-block: 0;
  }

  .form__group-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
  }

  .form__options {
    display: flex;
    flex-direction: row;
  }

  .form__btn-submit {
    max-width: max-content;
  }
}

/* Precios con descuento en el cotizador */
.cotizador__product-price-container {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
}

.cotizador__product-price-original {
  text-decoration: line-through;
  text-decoration-color: #d40021;
  color: #868686;
  font-size: 15px;
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

.cotizador__product-price-discount {
  color: #276d20 !important;
}

.cotizador__product-price-discount .cotizador__product-price {
  color: #276d20 !important;
  font-weight: 700;
}
