/* ===== Cotización ===== */
.cotizacion {
  position: relative;
  overflow: hidden;
  padding: 40px 0 44px;
  background:
    linear-gradient(180deg, transparent 65%, rgb(1 4 10 / 80%) 85%, #01040a 100%),
    linear-gradient(90deg, rgb(1 4 10 / 88%) 0%, rgb(1 5 13 / 78%) 36%, rgb(2 6 15 / 25%) 58%, transparent 100%),
    url("../recursos/fondos-secciones/fondo-modulo-5.webp") left top / cover no-repeat;
}

.cotizacion::before {
  display: none;
}

.cotizacion .dos-columnas {
  position: relative;
  display: grid;
  align-items: center;
  gap: 48px;
  grid-template-columns: 0.95fr 1.05fr;
}

/* Columna Izquierda: Mensaje y Pasos */
.mensaje-cotizacion {
  position: relative;
  z-index: 2;
}

/* Sombra suave detrás del texto. El degradado ya llega a transparente en los
   bordes (closest-side): antes lo suavizaba un filter: blur(25px), que al
   saltar a la sección desde el menú costaba más de 100 ms de pintado. */
.mensaje-cotizacion::before {
  position: absolute;
  inset: -30px -30px -30px -40px;
  background: radial-gradient(closest-side, rgb(1 4 10 / 90%) 0%, rgb(1 4 10 / 70%) 70%, transparent 100%);
  z-index: -1;
  pointer-events: none;
  content: "";
}

.cotizacion-etiqueta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 14px;
}

/* Variante de .etiqueta (van juntas en el HTML). */
.etiqueta-azul {
  color: #38bdf8;
  font-weight: 600;
  text-shadow: 0 2px 10px rgb(0 0 0 / 90%);
}

.etiqueta-linea-roja-sub {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--rojo);
  box-shadow: 0 0 8px rgb(225 29 42 / 70%);
}

.mensaje-cotizacion h2 {
  max-width: 580px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.85rem, 2.7vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-shadow: 0 4px 25px rgb(0 0 0 / 95%), 0 2px 6px rgb(0 0 0 / 90%);
}

.texto-azul-solucion {
  color: #1d72fe;
  font-weight: 800;
  text-shadow: 0 0 30px rgb(29 114 254 / 75%), 0 0 60px rgb(29 114 254 / 40%), 0 2px 10px rgb(0 0 0 / 90%);
}

.descripcion-cotizacion {
  max-width: 440px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.55;
  text-shadow: 0 2px 14px rgb(0 0 0 / 95%);
}

/* Pregunta que cierra el argumento y da entrada a los tres pasos. La cinta roja
   es la misma que marca los bloques destacados del resto de la página. */
.pregunta-cotizacion {
  max-width: 440px;
  margin: 0 0 26px;
  padding-left: 16px;
  border-left: 2px solid var(--rojo);
  color: #fff;
  font-family: var(--titulos);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 14px rgb(0 0 0 / 95%);
}

/* Remate del bloque, ya orientado al formulario que tiene al lado. */
.llamada-cotizacion {
  max-width: 440px;
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--titulos);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 14px rgb(0 0 0 / 95%);
}

/* Columna Derecha: Tarjeta de Formulario */
.formulario-cotizacion {
  position: relative;
  padding: 26px 32px 22px;
  border-radius: 18px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-top: 1px solid rgb(255 255 255 / 15%);
  border-right: 2px solid rgb(255 42 59 / 85%);
  background: linear-gradient(180deg, rgb(8 14 24 / 90%) 0%, rgb(4 7 14 / 96%) 100%);
  box-shadow:
    0 24px 60px rgb(0 0 0 / 80%),
    12px 0 40px rgb(225 29 42 / 40%),
    0 0 30px rgb(225 29 42 / 18%);
  /* Sin backdrop-filter: con un fondo opaco al 90-96% el desenfoque no se
     notaba y era lo más caro de pintar de la sección. */
}

/* Destello laser rojo superior */
.destello-neon-rojo {
  position: absolute;
  top: -1.5px;
  right: 60px;
  width: 150px;
  height: 3px;
  border-radius: 999px;
  background: #ff2a3b;
  box-shadow: 0 0 16px 4px #ff2a3b, 0 0 40px 9px rgb(225 29 42 / 85%);
  pointer-events: none;
}

/* Flare luminoso en la esquina superior derecha */
.formulario-cotizacion::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  border-radius: 0 18px 0 0;
  background: radial-gradient(circle at 100% 0%, rgb(225 29 42 / 35%) 0%, rgb(225 29 42 / 8%) 45%, transparent 70%);
  pointer-events: none;
  content: "";
}

.formulario-cotizacion::before {
  display: none;
}

.encabezado-formulario {
  margin-bottom: 14px;
}

.etiqueta-comencemos {
  margin: 0 0 4px;
  color: var(--rojo);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.encabezado-formulario h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: clamp(1.4rem, 1.9vw, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.bajada-formulario {
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.45;
}

/* Los campos van agrupados por bloques temáticos. El fieldset aporta la
   relación semántica; todo su aspecto propio se anula. */
.grupo-campos {
  margin: 0;
  padding: 0;
  border: 0;
}

.grupo-campos + .grupo-campos {
  margin-top: 16px;
}

.titulo-grupo {
  padding: 0;
  margin-bottom: 8px;
  color: var(--azul);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Etiqueta que sólo leen los lectores de pantalla: el rótulo del grupo ya
   nombra al campo en pantalla y repetirlo sobraría. */
.visualmente-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.campos {
  display: grid;
  gap: 10px 14px;
  grid-template-columns: 1fr 1fr;
}

.campo-con-icono {
  display: flex;
  flex-direction: column;
}

/* `display: flex` gana a [hidden] por especificidad: hay que devolverlo. */
.campo-con-icono[hidden] {
  display: none;
}

/* El campo de "Otro" entra desplegándose para que se note que ha aparecido. */
.campo-otro {
  animation: aparecer-campo 240ms ease both;
}

@keyframes aparecer-campo {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .campo-otro {
    animation: none;
  }
}

.etiqueta-campo {
  display: block;
  margin-bottom: 4px;
  color: #cbd5e1;
  font-size: 0.7rem;
  font-weight: 500;
}

.input-icono-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.icono-campo {
  position: absolute;
  left: 12px;
  width: 14px;
  height: 14px;
  color: #64748b;
  pointer-events: none;
  transition: color 200ms ease;
}

.input-icono-wrap input,
.select-wrap select,
.textarea-wrap textarea {
  width: 100%;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 7px;
  outline: none;
  background: rgb(11 17 28 / 85%);
  color: #fff;
  font-family: var(--texto);
  font-size: 0.82rem;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.input-icono-wrap input {
  height: 38px;
  padding: 6px 12px 6px 36px;
}

.select-wrap select {
  height: 38px;
  padding: 6px 34px 6px 12px;
  color: #cbd5e1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.select-wrap select option {
  background: #0d1420;
  color: #fff;
}

.icono-select-flecha {
  position: absolute;
  right: 12px;
  width: 14px;
  height: 14px;
  color: #64748b;
  pointer-events: none;
  transition: transform 200ms var(--ease-out), color 200ms ease;
}

/* Lista propia en los navegadores que dejan diseñarla (Chrome y Edge). En los
   demás queda la lista del sistema: sigue siendo el mismo <select>, así que
   el formulario y el teclado no cambian. */
@supports (appearance: base-select) {
  .select-wrap select,
  .select-wrap select::picker(select) {
    appearance: base-select;
  }

  .select-wrap select {
    display: flex;
    align-items: center;
  }

  /* La flecha es la del propio formulario. */
  .select-wrap select::picker-icon {
    display: none;
  }

  .select-wrap:has(select:open) .icono-select-flecha {
    color: var(--azul);
    transform: rotate(180deg);
  }

  .select-wrap select::picker(select) {
    margin-top: 6px;
    padding: 6px;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 10px;
    background: #0b111c;
    box-shadow: 0 18px 40px rgb(0 0 0 / 55%);
    transition: transform 200ms var(--ease-out);
  }

  @starting-style {
    .select-wrap select:open::picker(select) {
      transform: translateY(-6px);
    }
  }

  .select-wrap select option {
    padding: 10px 12px;
    border-radius: 6px;
    background: transparent;
    color: #cbd5e1;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
  }

  .select-wrap select option:hover,
  .select-wrap select option:focus-visible {
    outline: none;
    background: rgb(59 130 246 / 16%);
    color: #fff;
  }

  .select-wrap select option:checked {
    color: #fff;
    font-weight: 500;
  }

  .select-wrap select option::checkmark {
    order: 1;
    margin-left: auto;
    color: var(--azul);
  }
}

.textarea-wrap {
  align-items: flex-start;
}

.textarea-wrap .icono-textarea {
  top: 10px;
  left: 12px;
}

.textarea-wrap textarea {
  min-height: 68px;
  padding: 8px 12px 8px 36px;
  line-height: 1.5;
  resize: vertical;
}

.input-icono-wrap input:focus,
.select-wrap select:focus,
.textarea-wrap textarea:focus {
  border-color: var(--azul);
  background: rgb(15 23 42 / 94%);
  box-shadow: 0 0 0 3px rgb(59 130 246 / 20%);
}

.input-icono-wrap:focus-within .icono-campo {
  color: var(--azul);
}

.campo-completo {
  grid-column: 1 / -1;
}

/* Botón Solicitar Propuesta */
.formulario-cotizacion .boton-solicitar {
  width: 100%;
  height: 44px;
  margin-top: 14px;
  border: 0;
  border-radius: 7px;
  background: var(--rojo);
  box-shadow: 0 4px 22px rgb(225 29 42 / 50%);
  color: #fff;
  font-family: var(--titulos);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 200ms ease, box-shadow 200ms ease, transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .formulario-cotizacion .boton-solicitar:hover {
    background: var(--rojo-oscuro);
    box-shadow: 0 8px 30px rgb(225 29 42 / 70%);
    transform: translateY(-2px);
  }

  .formulario-cotizacion .boton-solicitar:hover .icono-btn-flecha {
    transform: translateX(4px);
  }
}

.formulario-cotizacion .boton-solicitar:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}

.icono-btn-flecha {
  width: 16px;
  height: 16px;
  transition: transform 200ms ease;
}

/* Fuera de la vista pero presente en el formulario, para que los robots la
   rellenen. `display: none` la delataría. */
.trampa-robots {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Resultado del envío */
.estado-formulario {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-left: 2px solid currentColor;
  border-radius: 4px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.estado-formulario[hidden] {
  display: none;
}

.estado-correcto {
  background: rgb(34 197 94 / 12%);
  color: #6ee7a8;
}

.estado-error {
  background: rgb(225 29 42 / 14%);
  color: #ff8b95;
}

.boton-solicitar[disabled] {
  cursor: progress;
  opacity: 0.75;
}

.seguimiento-formulario {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 0;
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.45;
}

.icono-escudo-check {
  width: 14px;
  height: 14px;
  color: #94a3b8;
  flex-shrink: 0;
}



/* ===== Ubicación / sede operativa ===== */
.ubicacion {
  position: relative;
  overflow: hidden;
  padding: 58px 0 46px;
  border-top: 1px solid rgb(255 255 255 / 6%);
  background:
    linear-gradient(180deg, #01040a 0%, rgb(1 4 10 / 80%) 14%, transparent 35%, transparent 75%, #01040a 100%),
    linear-gradient(90deg, rgb(1 4 10 / 88%) 0%, rgb(1 5 13 / 75%) 40%, rgb(1 4 10 / 85%) 100%),
    url("../recursos/fondos-secciones/fondo-modulo-6.webp") center center / cover no-repeat;
}

.encabezado-ubicacion {
  max-width: 700px;
  margin-bottom: 28px;
}

.encabezado-ubicacion h2 {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.08;
}

.encabezado-ubicacion > p:last-child {
  margin: 10px 0 0;
  color: var(--texto-suave);
  font-size: 0.92rem;
  line-height: 1.65;
}

.cuadricula-ubicacion {
  display: grid;
  align-items: stretch;
  gap: 28px;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
}

.tarjeta-sede {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 24px;
  border-radius: 12px;
  background: rgb(6 10 18 / 65%);
  border: 1px solid rgb(255 255 255 / 8%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sello-sede {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.distintivo-sede {
  padding: 5px 11px;
  border: 1px solid rgb(225 29 42 / 30%);
  border-radius: 100px;
  background: rgb(225 29 42 / 12%);
  color: var(--rojo);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.valoracion-sede {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #ffc107;
  font-size: 0.8rem;
  font-weight: 600;
}

.fuente-valoracion {
  color: var(--texto-suave);
  font-size: 0.72rem;
  font-weight: 400;
}

.tarjeta-sede h3 {
  margin: 0 0 5px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.giro-sede {
  margin: 0 0 16px;
  color: #8b919c;
  font-family: var(--mono);
  font-size: 0.66rem;
}

.datos-sede {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid rgb(255 255 255 / 8%);
  list-style: none;
}

.datos-sede li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.datos-sede svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
}

.datos-sede strong {
  display: block;
  margin-bottom: 3px;
  color: #8b919c;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.datos-sede span {
  color: #e6e8ec;
  font-size: 0.86rem;
  line-height: 1.5;
}

.datos-sede em {
  color: var(--verde);
  font-style: normal;
  font-weight: 600;
}

/* Estado del horario (js/horario.js). Rojo y ámbar claros: el rojo de la
   marca no se lee bien en texto pequeño sobre negro. */
.estado-horario[data-estado-horario="pronto"] em {
  color: #fbbf24;
}

.estado-horario[data-estado-horario="cerrado"] em {
  color: #f87171;
}

.telefono-sede {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 600;
  transition: color 300ms ease;
}

.telefono-sede:hover {
  color: var(--rojo);
}

.acciones-sede {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 8%);
}

.acciones-sede .boton {
  flex: 1;
  min-width: 130px;
  padding: 10px 16px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  box-shadow: none;
}

.acciones-sede .boton:hover {
  box-shadow: none;
}

.acciones-sede .secundario {
  border-color: rgb(255 255 255 / 20%);
  background: rgb(255 255 255 / 4%);
}

.marco-mapa {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 6px;
  box-shadow: 0 20px 50px rgb(0 0 0 / 80%);
}

.marco-mapa iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}


/* ===== Pie de página ===== */
footer {
  position: relative;
  background:
    radial-gradient(circle at 82% 20%, rgb(29 67 135 / 16%), transparent 28%),
    #06080c;
}

footer::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--rojo), var(--azul), transparent 72%);
  content: "";
}

.pie {
  display: grid;
  gap: 30px 52px;
  grid-template-columns: 1.25fr 0.75fr 0.85fr;
  padding: 20px 0 16px;
}

.marca-pie img {
  width: auto;
  height: 34px;
}

.pie h2 {
  margin: 2px 0 8px;
  color: var(--azul);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.marca-pie p {
  max-width: 430px;
  margin: 7px 0;
  color: var(--texto-suave);
  font-size: 0.86rem;
  line-height: 1.5;
}

.marca-pie > span {
  color: #5c626e;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contacto-pie a,
.contacto-pie p {
  display: block;
  margin: 0 0 5px;
  color: var(--texto-suave);
  font-size: 0.88rem;
  line-height: 1.5;
}

.contacto-pie a {
  width: fit-content;
  transition: color 300ms ease;
}

.contacto-pie a:hover {
  color: #fff;
}

.telefono-pie {
  color: #fff !important;
  font-family: var(--titulos);
  font-size: 1.15rem !important;
  font-weight: 600;
}

.telefono-pie:hover {
  color: var(--rojo) !important;
}

.redes-pie > p {
  max-width: 280px;
  margin: 0 0 9px;
  color: var(--texto-suave);
  font-size: 0.86rem;
  line-height: 1.5;
}

.redes-sociales {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.red-social {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  background: rgb(255 255 255 / 8%);
  transition: border-color 300ms ease, background 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}

.red-social img {
  width: 17px;
  height: 17px;
  filter: brightness(0) invert(1);
}

.red-social:hover {
  transform: translateY(-2px);
  border-color: transparent;
}

.red-social.whatsapp:hover {
  background: var(--verde);
  box-shadow: 0 6px 16px rgb(37 211 102 / 40%);
}

.red-social.facebook:hover {
  background: #1877f2;
  box-shadow: 0 6px 16px rgb(24 119 242 / 40%);
}

.red-social.instagram:hover {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  box-shadow: 0 6px 16px rgb(228 64 95 / 40%);
}

.red-social.youtube:hover {
  background: #f00;
  box-shadow: 0 6px 16px rgb(255 0 0 / 40%);
}

.red-social.linkedin:hover {
  background: #0a66c2;
  box-shadow: 0 6px 16px rgb(10 102 194 / 40%);
}

.legal {
  margin: 0;
  padding: 8px 20px;
  border-top: 1px solid rgb(255 255 255 / 8%);
  background: rgb(0 0 0 / 22%);
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
}

.legal a,
.seguimiento-formulario a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .cotizacion .dos-columnas {
    gap: 55px;
    grid-template-columns: 1fr;
  }

  .mensaje-cotizacion {
    max-width: 680px;
  }

  .cuadricula-ubicacion {
    gap: 32px;
    grid-template-columns: 1fr;
  }

  .pie {
    gap: 22px 34px;
    grid-template-columns: 1fr 1fr;
  }

  .marca-pie {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .cotizacion {
    padding: 60px 0 70px;
  }

  .campos,
  .pie {
    grid-template-columns: 1fr;
  }

  .formulario-cotizacion {
    padding: 28px 20px 24px;
    border-radius: 16px;
  }

  .destello-neon-rojo {
    right: 24px;
    width: 100px;
  }

  .campo-completo {
    grid-column: auto;
  }

  .tarjeta-sede {
    padding: 24px 0 0;
  }
}
