/* ==========================================================================
   GRAEL LANDING - Estilos globales
   Orden: reset → variables → layout → header → FAQ → footer → gracias
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset y base
   -------------------------------------------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 62.5%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  position: relative;
  font-style: normal;
  overflow-x: hidden;
}

html h1 {
  font-size: 3.4rem;
  color: var(--color-negro);
}

html h2 {
  font-size: 3rem;
  color: var(--color-negro);
}

html h3 {
  font-size: 2.4rem;
  color: var(--color-negro);
}

html h4 {
  font-size: 1.4rem;
  color: var(--color-negro);
}

p {
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--color-parrafo);
}

img {
  max-width: 100%;
}

video {
  width: 100%;
}

figure {
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   2. Variables y globales
   -------------------------------------------------------------------------- */
:root {
  --color-principal: #2B6AA8;
  --color-parrafo: #515151;
  --color-negro: #222222;
  --color-celeste: #45A6D1;
  --color-blanco: #fff;
}

.contenedor {
  max-width: 120rem;
  margin: 0 auto;
  width: 90%;
}

.titulo {
  font-size: 2.5rem;
  color: var(--color-principal);
  text-align: center;
  margin: 0 auto 1rem auto;
  max-width: 70rem;
}

.descripcion {
  text-align: center;
  color: var(--color-parrafo);
  margin: 0 auto;
  max-width: 50rem;
}

@media (min-width: 768px) {
  .titulo {
    font-size: 3.5rem;
  }

  .descripcion {
    font-size: 1.8rem;
  }
}

/* --------------------------------------------------------------------------
   2b. Banner próxima salida (antes del logo)
   -------------------------------------------------------------------------- */
.proxima-salida-banner {
  position: relative;
  background: var(--color-celeste);
  padding: 0.7rem 2.75rem 0.6rem 0.5rem;
  overflow: hidden;
}

/* Más ancho en móvil para que texto y contador quepan en dos filas de texto */
.proxima-salida-banner .proxima-salida-banner__contenido.contenedor {
  width: 96%;
}

.proxima-salida-banner.oculto {
  display: none;
}

.proxima-salida-banner__cerrar {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  color: var(--color-blanco);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.proxima-salida-banner__cerrar:hover {
  background: rgba(255, 255, 255, 0.5);
}

.proxima-salida-banner__cerrar svg {
  width: 12px;
  height: 12px;
}

/* Dos columnas (texto | contador) */
.proxima-salida-banner__contenido {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  text-align: left;
  min-width: 0;
  max-width: 55rem;
  margin-left: auto;
  margin-right: auto;
}

.proxima-salida-banner__texto {
  min-width: 0;
  overflow: hidden;
}

.proxima-salida-banner__titulo {
  color: var(--color-blanco);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.15rem 0;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proxima-salida-banner__subtitulo {
  color: var(--color-blanco);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.3;
  opacity: 0.98;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proxima-salida-banner__contador {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

/* Contador en 2 columnas en móvil: [Horas][Min] / [Seg] */
.proxima-salida-banner__cajas {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.17rem;
  min-width: 0;
}

.proxima-salida-banner__cajas .proxima-salida-banner__separador {
  flex-shrink: 0;
}

.proxima-salida-banner__caja {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.64rem;
  max-width: 3.52rem;
  padding: 0.28rem 0.33rem;
  background: var(--color-blanco);
  border-radius: 0.44rem;
  border: 1.5px solid #D32F2F;
  box-sizing: border-box;
}

.proxima-salida-banner__numero {
  font-size: 1.32rem;
  font-weight: 800;
  color: #D32F2F;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.proxima-salida-banner__etiqueta {
  font-size: 0.6rem;
  color: #C62828;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 0.06rem;
}

.proxima-salida-banner__separador {
  font-size: 1.1rem;
  font-weight: 800;
  color: #D32F2F;
  line-height: 1;
}

.proxima-salida-banner__barra {
  height: 0.35rem;
  background: var(--color-principal);
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .proxima-salida-banner {
    padding: 1.25rem 3rem 1rem 1rem;
  }

  .proxima-salida-banner .proxima-salida-banner__contenido.contenedor {
    width: 90%;
  }

  .proxima-salida-banner__contenido {
    gap: 1.5rem;
  }

  .proxima-salida-banner__titulo {
    font-size: 1.65rem;
    line-height: 1.3;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .proxima-salida-banner__subtitulo {
    font-size: 1.25rem;
    margin: 0;
    line-height: 1.4;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .proxima-salida-banner__cajas {
    gap: 0.44rem;
    justify-content: flex-end;
  }

  .proxima-salida-banner__caja {
    min-width: 5.5rem;
    max-width: none;
    padding: 0.77rem 0.99rem;
  }

  .proxima-salida-banner__numero {
    font-size: 2.64rem;
  }

  .proxima-salida-banner__etiqueta {
    font-size: 0.99rem;
  }

  .proxima-salida-banner__separador {
    font-size: 2.42rem;
  }
}

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */
.header {
  background-image: url(../img/fondo-hero.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 1rem 0 2rem 0;
}

.header-logo {
  padding: 0 0 0.6rem 0;
  text-align: center;
}

.header-logo img {
  width: 14rem;
}

.header-titulo {
  color: var(--color-blanco);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0 1rem 1.25rem 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  line-height: 1.15;
}

@media (min-width: 768px) {
  .header {
    padding: 2.5rem 0 5.5rem 0;
  }

  .header-logo img {
    width: 22rem;
  }

  .header-logo {
    padding-bottom: 2rem;
  }

  .header-titulo {
    font-size: 2.8rem;
    margin: 0 2rem 3.5rem 2rem;
    letter-spacing: 0.05em;
  }
}

.header-contenido {
  display: grid;
  gap: 1.25rem;
}

/* Mobile: contenido (imagen + texto) primero, formulario después */
.header-formulario {
  order: 2;
}

.header-texto {
  order: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-texto__imagen {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  width: 100%;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.header-texto__imagen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.header-texto__imagen img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.header-texto__titulo {
  color: var(--color-blanco);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.4rem 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.header-texto__bajada {
  color: var(--color-blanco);
  font-size: 1.45rem;
  font-weight: 500;
  text-align: center;
  margin: 0 0 0.75rem 0;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.linea-1 {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-celeste), rgba(69, 166, 209, 0.8));
  border-radius: 10px;
  margin: 0 auto 0.5rem auto;
}

/* Bloque beneficios: colores de la página, separadores (~10% más pequeño en móvil) */
.header-texto__beneficios {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-top: 0.68rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.98);
  padding: 0.63rem 0.59rem;
  border-radius: 1.13rem;
  box-shadow: 0 4px 20px rgba(43, 106, 168, 0.12);
  border: 1px solid rgba(43, 106, 168, 0.12);
  min-width: 0;
  overflow: hidden;
}

.header-texto__beneficio {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.23rem;
  color: var(--color-principal);
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.27rem 0.14rem;
  min-height: 0;
  border-right: 1px solid #d0d0d0;
}

.header-texto__beneficio:last-child {
  border-right: none;
}

.header-texto__beneficio img {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(1500%) hue-rotate(195deg);
  opacity: 0.95;
}

.header-texto__beneficio strong {
  font-weight: 700;
  color: var(--color-principal);
}

/* Mobile ancho: 3 columnas */
@media (min-width: 380px) {
  .header-texto__beneficios {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.54rem;
  }

  .header-texto__beneficio {
    font-size: 1.26rem;
  }

  .header-texto__beneficio img {
    width: 2.16rem;
    height: 2.16rem;
  }
}

@media (min-width: 480px) {
  .header-texto__beneficios {
    gap: 0.68rem 0.9rem;
    padding: 0.77rem 0.72rem;
  }

  .header-texto__beneficio {
    font-size: 1.35rem;
  }

  .header-texto__beneficio img {
    width: 2.52rem;
    height: 2.52rem;
  }
}

@media (min-width: 768px) {
  .header-contenido {
    grid-template-columns: 2fr 3fr;
    align-items: start;
    gap: 3rem;
    padding-top: 1.5rem;
  }

  .header-formulario {
    order: initial;
  }

  .header-texto {
    order: initial;
  }

  .header-texto__imagen {
    margin-bottom: 3rem;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: none;
  }

  .header-texto__titulo {
    font-size: 4rem;
    text-align: left;
    margin-bottom: 1.25rem;
  }

  .header-texto__bajada {
    font-size: 2.2rem;
    text-align: left;
    margin-bottom: 2rem;
    max-width: 100%;
    width: 100%;
  }

  .linea-1 {
    margin: 0 0 1.5rem 0;
  }

  .header-texto__beneficios {
    margin-top: 2.75rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 0 0;
    padding: 1.5rem 1.25rem;
  }

  .header-texto__beneficio {
    flex-direction: row;
    align-items: center;
    text-align: left;
    justify-content: flex-start;
    font-size: 1.65rem;
    line-height: 1.35;
    gap: 0.65rem;
    padding: 0.5rem 1.25rem;
    min-width: 0;
    flex: 1 1 0%;
    white-space: normal;
    border-right: 1px solid #d0d0d0;
  }

  .header-texto__beneficio:last-child {
    border-right: none;
  }

  .header-texto__beneficio img {
    width: 3.8rem;
    height: 3.8rem;
    flex-shrink: 0;
  }
}

/* --------------------------------------------------------------------------
   4. FAQ
   -------------------------------------------------------------------------- */
.faq {
  padding: 4rem 0;
}

.contenido-faq {
  max-width: 70rem;
  margin: 2.5rem auto 0;
}

.faq-acordeon {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border-radius: 1.2rem;
  overflow: visible;
}

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: var(--color-blanco);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(43, 106, 168, 0.25);
  box-shadow: 0 4px 12px rgba(43, 106, 168, 0.1);
}

.faq-item[open] {
  border-color: rgba(43, 106, 168, 0.35);
  box-shadow: 0 4px 16px rgba(43, 106, 168, 0.12);
}

.faq-item:last-of-type {
  margin-bottom: 0;
}

.faq-pregunta {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-negro);
  padding: 1.6rem 3.2rem 1.6rem 1.8rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background-color 0.2s ease;
}

.faq-pregunta::-webkit-details-marker {
  display: none;
}

.faq-pregunta::after {
  content: "";
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-right: 2px solid var(--color-principal);
  border-bottom: 2px solid var(--color-principal);
  transform: rotate(45deg);
  margin-left: auto;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-pregunta::after {
  transform: rotate(-135deg);
}

.faq-pregunta:hover {
  background-color: #f8fafc;
}

.faq-respuesta {
  padding: 0 1.8rem 1.6rem 1.8rem;
  overflow: hidden;
  border-top: 1px solid #f1f5f9;
}

.faq-respuesta p {
  margin: 0;
  padding: 0.2rem 0 0 0;
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--color-parrafo);
}

@media (min-width: 768px) {
  .faq-pregunta {
    font-size: 1.8rem;
    padding: 1.8rem 2.2rem;
  }

  .faq-respuesta p {
    font-size: 1.6rem;
  }
}

/* --------------------------------------------------------------------------
   5. Footer
   -------------------------------------------------------------------------- */
.footer {
  margin-top: 0;
  padding: 3rem 0 2rem;
  background-color: var(--color-negro);
  color: rgba(255, 255, 255, 0.85);
}

.footer__contenido {
  text-align: center;
}

.footer__disclaimer {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 72rem;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer__empresa {
  margin-bottom: 1rem;
}

.footer__empresa p {
  margin: 0.3rem 0;
  font-size: 1.4rem;
  color: var(--color-blanco);
}

.footer__copy {
  margin: 0;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) {
  .footer__disclaimer {
    font-size: 1.3rem;
  }

  .footer__empresa p {
    font-size: 1.5rem;
  }

  .footer__copy {
    font-size: 1.4rem;
  }
}

/* --------------------------------------------------------------------------
   6. Página Gracias
   -------------------------------------------------------------------------- */
.pagina-gracias {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-negro);
}

.pagina-gracias .footer {
  margin-top: auto;
  padding: 2rem 0 1.5rem;
  flex-shrink: 0;
}

.pagina-gracias .footer__disclaimer {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.pagina-gracias .footer__empresa p {
  font-size: 1.3rem;
}

.pagina-gracias .footer__copy {
  font-size: 1.2rem;
}

.pagina-gracias .header--gracias {
  padding: 2rem 0 2rem;
  min-height: auto;
  flex-shrink: 0;
}

.pagina-gracias .header--gracias .header-logo {
  padding-bottom: 0;
}

.gracias-contenido {
  width: 100%;
  flex: 1 1 auto;
  min-height: 68vh;
  padding: 3rem 0 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url(../img/fondo-hero.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.gracias-contenido__inner {
  text-align: center;
  width: 100%;
}

.gracias-titulo {
  color: var(--color-blanco);
  font-size: 2.2rem;
  margin: 0 0 1.5rem;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.25;
}

.gracias-subtitulo {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.5rem;
  line-height: 1.6;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.gracias-cta {
  display: flex;
  justify-content: center;
}

@keyframes palpitar {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.boton-grupo-whatsapp {
  background-color: #25D366 !important;
  color: var(--color-blanco) !important;
  padding: 1.2rem 2rem !important;
  font-weight: 700;
  align-items: center;
  gap: 1rem;
  border: none;
  text-decoration: none;
  border-radius: 2rem;
  display: inline-flex;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  animation: palpitar 1.8s ease-in-out infinite;
}

.boton-grupo-whatsapp:hover {
  background-color: #20bd5a !important;
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.boton-grupo-whatsapp span:not(.boton-grupo-whatsapp__icono) {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.boton-grupo-whatsapp__icono {
  display: flex;
  line-height: 0;
}

.boton-grupo-whatsapp__icono svg {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .gracias-titulo {
    font-size: 3rem;
  }

  .gracias-subtitulo {
    font-size: 1.7rem;
  }

  .boton-grupo-whatsapp span:not(.boton-grupo-whatsapp__icono) {
    font-size: 1.6rem;
  }

  .boton-grupo-whatsapp__icono svg {
    width: 2.8rem;
    height: 2.8rem;
  }
}

/* --------------------------------------------------------------------------
   7. Botones (animación y excepciones)
   -------------------------------------------------------------------------- */
.boton {
  animation: palpitar 1.8s ease-in-out infinite;
}

.header-formulario .boton {
  animation: none !important;
}
