/* ================================================
   style.css — Congreso Internacional para Mujeres
   Ministerio Misión Boliviana — Payacollo
   ================================================ */


/* ================================================
   VARIABLES GLOBALES
   Cambia los colores aquí para actualizar toda la página.
   ================================================ */
:root {
  /* Colores morados del hero */
  --color-primary:       oklch(0.42 0.14 295); /* morado principal */
  --color-primary-dark:  oklch(0.32 0.11 300); /* morado oscuro (inicio del gradiente) */
  --color-primary-light: oklch(0.55 0.15 290); /* morado claro (fin del gradiente) */
  --color-primary-pale:  oklch(0.97 0.015 300);/* fondo muy claro para filas alternas */

  /* Colores de texto */
  --color-text:          oklch(0.28 0.05 300); /* texto principal */
  --color-text-muted:    oklch(0.40 0.02 300); /* texto secundario */
  --color-text-light:    oklch(0.50 0.02 300); /* texto terciario */
  --color-label:         oklch(0.50 0.14 295); /* etiquetas de sección */

  /* ---- Paleta semántica de botones (estilo propio, sin librerías) ---- */
  --btn-primary:   oklch(0.42 0.14 295); /* morado  — igual al color principal */
  --btn-secondary: oklch(0.55 0.04 270); /* gris azulado neutro */
  --btn-success:   #2BAF1B; /* verde WhatsApp del ícono */
  --btn-danger:    oklch(0.55 0.20  25); /* rojo */
  --btn-warning:   oklch(0.75 0.17  75); /* amarillo-naranja */
  --btn-info:      oklch(0.60 0.15 230); /* azul claro */

  /* Cuánto se oscurece el botón al pasar el cursor (valor entre 0 y 1) */
  --btn-hover-brightness: 0.85;

  /* Otros colores */
  --color-green:         #2BAF1B; /* verde WhatsApp del ícono */
  --color-bg:            oklch(0.98 0.005 300);/* fondo general de la página */
  --color-footer-bg:     oklch(0.24 0.06 300); /* fondo del footer */
  --color-white:         #ffffff;

  /* Tipografías */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Poppins', system-ui, sans-serif;

  /* Bordes redondeados */
  --radius-sm:   12px;
  --radius-md:   18px;
  --radius-lg:   24px;
  --radius-pill: 40px;

  /* Sombras */
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.25);

  /* Transición estándar */
  --transition: 0.2s ease;

  /* Ancho máximo del contenido */
  --max-width: 760px;
}


/* ================================================
   RESET BÁSICO
   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  background-color: var(--color-bg);
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  /* Mejora la renderización de fuentes en pantallas de alta densidad */
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}


/* ================================================
   SISTEMA DE BOTONES GENÉRICO
   ------------------------------------------------
   Uso: <button class="btn btn--primary">Texto</button>
   Variantes sólidas:  btn--primary / secondary / success / danger / warning / info
   Variantes contorno: btn--outline-primary / secondary / success / danger / warning / info
   Tamaños:            btn--sm / btn--lg
   Especiales:         btn--white / btn--outline (footer)
   ================================================ */

/* --- Base de todos los botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    filter       var(--transition),
    transform    var(--transition),
    box-shadow   var(--transition);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}

/* Hover: oscurece el fondo con filter (funciona en CUALQUIER color) */
.btn:hover {
  filter: brightness(var(--btn-hover-brightness));
  transform: translateY(-2px);
}

/* Al presionar: baja de nuevo */
.btn:active {
  transform: translateY(0);
  filter: brightness(0.78);
}

/* Foco visible para accesibilidad con teclado */
.btn:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* ---- Variantes sólidas ---- */
/* Cada una define --_bg (color de fondo) y hereda el resto */

.btn--primary {
  background: var(--btn-primary);
  color: var(--color-white);
  box-shadow: 0 6px 20px oklch(from var(--btn-primary) l c h / 0.35);
}

.btn--secondary {
  background: var(--btn-secondary);
  color: var(--color-white);
  box-shadow: 0 6px 20px oklch(from var(--btn-secondary) l c h / 0.30);
}

.btn--success {
  background: var(--btn-success);
  color: var(--color-white);
  box-shadow: 0 6px 20px oklch(from var(--btn-success) l c h / 0.35);
}

.btn--danger {
  background: var(--btn-danger);
  color: var(--color-white);
  box-shadow: 0 6px 20px oklch(from var(--btn-danger) l c h / 0.30);
}

.btn--warning {
  background: var(--btn-warning);
  color: oklch(0.20 0.05 75); /* texto oscuro sobre amarillo */
  box-shadow: 0 6px 20px oklch(from var(--btn-warning) l c h / 0.30);
}

.btn--info {
  background: var(--btn-info);
  color: var(--color-white);
  box-shadow: 0 6px 20px oklch(from var(--btn-info) l c h / 0.30);
}

/* ---- Variantes de contorno (outline) ---- */
/* Fondo transparente, borde y texto del color semántico */

.btn--outline-primary {
  background: transparent;
  color: var(--btn-primary);
  border-color: var(--btn-primary);
}

.btn--outline-secondary {
  background: transparent;
  color: var(--btn-secondary);
  border-color: var(--btn-secondary);
}

.btn--outline-success {
  background: transparent;
  color: var(--btn-success);
  border-color: var(--btn-success);
}

.btn--outline-danger {
  background: transparent;
  color: var(--btn-danger);
  border-color: var(--btn-danger);
}

.btn--outline-warning {
  background: transparent;
  color: oklch(0.55 0.17 75);
  border-color: var(--btn-warning);
}

.btn--outline-info {
  background: transparent;
  color: var(--btn-info);
  border-color: var(--btn-info);
}

/* ---- Tamaños ---- */

/* Pequeño (footer, chips de acción) */
.btn--sm {
  padding: 10px 20px;
  font-size: 13px;
}

/* Grande (llamadas a la acción principales) */
.btn--lg {
  padding: 18px 36px;
  font-size: 17px;
}

/* ---- Especiales (usados en este proyecto) ---- */

/* Blanco sobre el gradiente del hero */
.btn--white {
  background: var(--color-white);
  color: var(--btn-primary);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* Verde alias para WhatsApp (mismo que success) */
.btn--green {
  background: var(--btn-success);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}

/* Contorno semitransparente para el footer oscuro */
.btn--outline {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.30);
}


/* ================================================
   HERO — Sección principal
   ================================================ */
.hero {
  position: relative;
  /* overflow: hidden eliminado — causaba que el dropdown quedara cortado */
  background: linear-gradient(
    160deg,
    var(--color-primary-dark)  0%,
    var(--color-primary)       45%,
    var(--color-primary-light) 100%
  );
  /* 52px navbar (móvil) + 72px padding propio */
  padding: 124px 24px 48px;
  text-align: center;
  color: var(--color-white);
}

/* Decoraciones SVG de fondo */
.hero__deco {
  position: absolute;
  pointer-events: none; /* no bloquean clics */
  opacity: 0.35;
  overflow: hidden;
  /* clip para que el SVG no salga del área del hero */
  clip-path: inset(0);
}

.hero__deco--top {
  top: -40px;
  right: -20px;
  width: 240px;
}

.hero__deco--bottom {
  bottom: -50px;
  left: -40px;
  width: 220px;
  opacity: 0.3;
}

/* Contenedor centrado del contenido del hero */
.hero__content {
  position: relative; /* para estar por encima de las decoraciones */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
}

/* Logo circular */
.hero__logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

/* Etiqueta "MMB — Payacollo" */
.hero__badge {
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
  text-transform: uppercase;
}

/* Título H1 principal */
.hero__title {
  font-family: var(--font-heading);
  /* clamp: mínimo 32px, preferido 6vw, máximo 52px */
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.15;
  font-weight: 700;
}

/* Subtítulo en cursiva */
.hero__subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 22px;
  opacity: 0.95;
}

/* Chips de información (fecha / hora / lugar) */
.hero__chips {
  display: flex;
  flex-wrap: wrap; /* se acomodan en varias líneas en móvil */
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.chip {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  /* alinea el ícono SVG con el texto */
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Contenedor de los botones del hero */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
}


/* ================================================
   ICONOS SVG INLINE
   ================================================ */

/* Íconos PNG dentro de botones (WhatsApp, Facebook) */
.btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
}

/* Base: hereda el color del texto del elemento padre */
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}

/* Tamaño grande (tarjetas, etc.) */
.icon--lg {
  width: 32px;
  height: 32px;
}

/* Flecha del dropdown */
.icon--chevron {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
  transition: transform var(--transition);
}

/* Rotar la flecha cuando el menú está abierto */
.dropdown--open .icon--chevron {
  transform: rotate(180deg);
}


/* ================================================
   DROPDOWN — Menús de "Más información" y calendario
   ================================================ */

/* Contenedor relativo para posicionar el menú */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Menú desplegable — se abre hacia ARRIBA para no tapar el contenido */
.dropdown__menu {
  position: absolute;
  bottom: calc(100% + 16px);
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  width: max-content;
  min-width: 300px;
  max-width: calc(100vw - 48px);
  z-index: 500;
  animation: dropdownEntrada 0.18s ease;
}

/* Flechita que apunta hacia el botón que abrió el menú */
.dropdown__menu::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--color-white);
}

/* Etiqueta pequeña sobre las opciones (ej. "Elige un contacto") */
.dropdown__caption {
  padding: 4px 6px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-label);
}

/* Cada opción del menú */
.dropdown__item {
  display: flex;
  flex-direction: row;  /* ícono a la izquierda, texto a la derecha */
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: background var(--transition), transform var(--transition);
}

.dropdown__item:not(:last-child) {
  margin-bottom: 4px;
}

.dropdown__item:hover {
  background: var(--color-primary-pale);
  transform: translateX(3px);
}

/* Ícono de teléfono en círculo verde */
.dropdown__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  /* el SVG interior hereda color blanco */
  color: white;
}

/* Variante con el logo de WhatsApp (ya trae su propio fondo verde) */
.dropdown__icon--wa {
  background: none;
  box-shadow: none;
}

.dropdown__icon--wa img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: block;
}

/* Bloque de texto (nombre + número) */
.dropdown__info {
  display: flex;
  flex-direction: column;
}

/* Nombre de la persona */
.dropdown__name {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  white-space: nowrap;
}

/* Número de teléfono */
.dropdown__number {
  color: var(--color-label);
  font-size: 13px;
  margin-top: 1px;
}

/* Animación de entrada del dropdown (sube desde abajo) */
@keyframes dropdownEntrada {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}


/* ================================================
   OPCIONES DE IMAGEN DE LA IGLESIA
   ================================================ */

/* Contenedor de imagen de la iglesia (dentro de la sección, bajo el título) */
.church {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-top: 24px;
  text-align: center;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.church__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay morado sobre la imagen */
.church__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, oklch(0.32 0.11 300 / 0.82), oklch(0.45 0.14 295 / 0.75));
}

/* Texto encima del overlay */
.church__content {
  position: relative;
  z-index: 1;
  padding: 44px 28px;
  color: white;
}

.church__title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 4vw, 28px);
  color: white;
  margin-bottom: 14px;
}

.church .section__text {
  color: rgba(255,255,255,0.9);
  margin: 0 auto;
}

.church .section__pastor {
  color: rgba(255,255,255,0.85);
}


/* Contenedor de la imagen de expositoras (bajo el título) */
.speakers {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-primary-pale);
}

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


/* ================================================
   SEPARADOR DECORATIVO DE ONDAS
   ================================================ */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  padding: 4px 0;
}

.wave-divider svg {
  width: 100%;
  height: 48px;
  display: block;
}


/* ================================================
   CONTENIDO PRINCIPAL (secciones)
   ================================================ */

/* Contenedor que centra y limita el ancho del contenido */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Sección genérica */
.section {
  padding: 40px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* La última sección no necesita borde inferior */
.section:last-child {
  border-bottom: none;
}

/* Etiqueta pequeña sobre el título (ej. "El Tema") */
.section__label {
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-label);
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
}

/* Título de cada sección */
.section__title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 34px);
  color: var(--color-text);
  margin-bottom: 18px;
  text-align: center;
}

/* Párrafo de texto de cada sección */
.section__text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 560px;
}

/* Nombre del pastor (en cursiva) */
.section__pastor {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 18px;
  color: var(--color-primary);
  margin-top: 20px;
}

/* Variante con fondo de color (Sobre el ministerio) */
.section--highlight {
  background: linear-gradient(135deg, var(--color-primary-pale), oklch(0.95 0.02 295));
  border-radius: var(--radius-lg);
  padding: 44px 28px;
  border: none;
  margin-bottom: 0;
  text-align: center;
}

.section--highlight .section__text {
  margin: 0 auto; /* centra el párrafo cuando tiene max-width */
}

/* Variante centrada (Ubicación) */
.section--center {
  text-align: center;
}

/* En secciones centradas, alinear también los elementos de texto */
.section--center .section__label,
.section--center .section__title {
  text-align: center;
}


/* ================================================
   HORARIO DEL CONGRESO
   ================================================ */
.schedule {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Fila del horario */
.schedule__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  background: var(--color-white);
}

/* Fila alternada con fondo gris muy claro */
.schedule__item--alt {
  background: var(--color-primary-pale);
}

/* Hora en morado */
.schedule__time {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 16px;
  min-width: 90px; /* para que todas las horas queden alineadas */
  flex-shrink: 0;
}

/* Descripción de la actividad */
.schedule__desc {
  color: var(--color-text-muted);
  font-size: 15px;
}


/* ================================================
   TARJETAS (Requisitos e Inscripción)
   ================================================ */

/* CSS Grid: columnas automáticas de mínimo 200px */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* Tarjeta individual */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* Emoji grande */
.card__icon {
  display: block;
  font-size: 28px;
  margin-bottom: 10px;
}

/* Título de la tarjeta */
.card__title {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
  font-size: 15px;
}

/* Texto de la tarjeta */
.card__text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.5;
}


/* ================================================
   FORMULARIO DE INSCRIPCIÓN RÁPIDA
   ================================================ */
.signup {
  margin-top: 32px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}

.signup__title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 20px;
}

.signup__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.signup__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.signup__field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.signup__field input,
.signup__field select {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid oklch(0.9 0.01 300);
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition);
}

.signup__field input:focus,
.signup__field select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.signup__submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}


/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--color-footer-bg);
  color: var(--color-white);
  padding: 56px 24px 40px;
  text-align: center;
}

/* Versículo bíblico en cursiva */
.footer__verse {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 19px;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Fila de botones de contacto */
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

/* Botón WhatsApp principal del footer */
.footer__wa {
  margin-bottom: 28px;
}

/* Fila de íconos de redes sociales */
.footer__social {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

/* Botón circular de red social */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background var(--transition), transform var(--transition);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.social-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

/* Línea de créditos */
.footer__credit {
  font-size: 13px;
  opacity: 0.6;
}


/* ================================================
   ANIMACIÓN FADE-IN (controlada por main.js)
   ================================================ */

/* Estado inicial: invisible y desplazado hacia abajo */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Estado final: visible en su posición normal */
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ================================================
   RESPONSIVE — Tablet (≥ 600px)
   ================================================ */
@media (min-width: 600px) {
  .chip {
    font-size: 15px;
  }

  /* En tablet, las 3 tarjetas siempre en la misma fila */
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ================================================
   RESPONSIVE — Desktop (≥ 900px)
   ================================================ */
@media (min-width: 900px) {
  /* Hero con más espacio vertical en escritorio */
  .hero {
    padding: 160px 24px 64px;
  }

  /* Logo un poco más grande en escritorio */
  .hero__logo {
    width: 140px;
    height: 140px;
  }

  /* Secciones con más padding en escritorio */
  .section {
    padding: 52px 0;
  }

  /* Filas del horario con más padding */
  .schedule__item {
    padding: 22px 32px;
  }
}


/* ================================================
   BARRA DE NAVEGACIÓN FIJA
   ================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: 52px;   /* móvil */
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.navbar--scrolled {
  background: var(--color-white);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
}

.navbar__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Marca: logo pequeño + texto */
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  font-weight: 700;
  font-size: 15px;
  transition: color var(--transition);
}

.navbar__logo-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.navbar__brand-text {
  display: none;
}

@media (min-width: 380px) {
  .navbar__brand-text { display: inline; }
}

.navbar--scrolled .navbar__brand {
  color: var(--color-text);
}

/* Lista de enlaces */
.navbar__menu {
  display: none;
  list-style: none;
  gap: 4px;
}

.navbar__link {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: background var(--transition), color var(--transition);
}

.navbar__link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

.navbar--scrolled .navbar__link {
  color: var(--color-text);
}

.navbar--scrolled .navbar__link:hover {
  background: var(--color-primary-pale);
  color: var(--color-primary);
}

/* Botón hamburguesa */
.navbar__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.navbar__burger:hover {
  background: rgba(255, 255, 255, 0.15);
}

.navbar--scrolled .navbar__burger:hover {
  background: var(--color-primary-pale);
}

.navbar__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: background var(--transition), transform 0.3s ease, opacity 0.3s ease;
}

.navbar--scrolled .navbar__burger span {
  background: var(--color-text);
}

/* Animación hamburguesa → X cuando está abierto */
.navbar__burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger--open span:nth-child(2) { opacity: 0; }
.navbar__burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop (≥ 700px): menú horizontal, sin hamburguesa, navbar más alta */
@media (min-width: 700px) {
  .navbar {
    height: 64px;
  }
  .navbar__logo-img {
    width: 36px;
    height: 36px;
  }
  .navbar__menu {
    display: flex;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    flex-direction: row;
  }
  .navbar__burger { display: none; }
}

/* Menú móvil desplegado */
.navbar__menu--open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 52px;   /* debe coincidir con la altura de la navbar en móvil */
  left: 0;
  right: 0;
  background: var(--color-white);
  padding: 12px 16px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  gap: 4px;
  z-index: 998;
}

.navbar__menu--open .navbar__link {
  color: var(--color-text);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.navbar__menu--open .navbar__link:hover {
  background: var(--color-primary-pale);
  color: var(--color-primary);
}


/* ================================================
   CONTADOR REGRESIVO
   ================================================ */
.countdown__caption {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.65;
  margin-top: 4px;
  margin-bottom: -6px;
}

.countdown {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 10px;
  min-width: 0;
  flex: 1 1 60px;
  max-width: 90px;
}

.countdown__num {
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
}

.countdown__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 5px;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .countdown { gap: 12px; }
  .countdown__item { padding: 12px 16px; }
}


/* ================================================
   DROPDOWN DE CALENDARIO
   ================================================ */

/* El dropdown--cal usa la misma base que el dropdown de WhatsApp */
.dropdown__item--btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  text-align: left;
}

/* Ícono circular de Google Calendar */
.cal-icon-google {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #4285f4;
  color: white;
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

/* Ícono circular de Apple/Outlook */
.cal-icon-apple {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: oklch(0.3 0.02 300);
  font-size: 19px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

/* Rotar la flecha del botón de calendario cuando está abierto */
#calToggle[aria-expanded="true"] .cal-arrow {
  transform: rotate(180deg);
}

.cal-arrow {
  transition: transform var(--transition);
}


/* ================================================
   ANIMACIÓN DE ENTRADA DEL HERO
   ================================================ */

/* Estado inicial: todos invisibles hasta que body tenga .hero-loaded */
.hero__logo,
.hero__badge,
.hero__title,
.hero__subtitle,
.hero__chips,
.countdown__caption,
.countdown,
.hero__actions {
  opacity: 0;
}

@keyframes heroSlideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Cascada de animaciones al cargar */
.hero-loaded .hero__logo    { animation: heroSlideDown 0.6s ease forwards 0.1s; }
.hero-loaded .hero__badge   { animation: heroFade      0.5s ease forwards 0.4s; }
.hero-loaded .hero__title   { animation: heroSlideUp   0.7s ease forwards 0.6s; }
.hero-loaded .hero__subtitle { animation: heroFade     0.5s ease forwards 0.95s; }
.hero-loaded .hero__chips   { animation: heroSlideUp   0.6s ease forwards 1.15s; }
.hero-loaded .countdown__caption { animation: heroFade 0.5s ease forwards 1.25s; }
.hero-loaded .countdown     { animation: heroFade      0.6s ease forwards 1.35s; }
.hero-loaded .hero__actions { animation: heroSlideUp   0.6s ease forwards 1.5s; }

/* Sin animaciones si el usuario las ha desactivado en el sistema */
@media (prefers-reduced-motion: reduce) {
  .hero__logo,
  .hero__badge,
  .hero__title,
  .hero__subtitle,
  .hero__chips,
  .countdown__caption,
  .countdown,
  .hero__actions {
    opacity: 1 !important;
    animation: none !important;
  }
}
