/* ===================================================================
   ALUMBRA LA VIDA - HOJA DE ESTILOS PRINCIPAL
   Estética: Claroscuro editorial, lujo cálido y sensorial
   =================================================================== */

:root {
  /* --- M2C: la hora azul --- */
  --bg-deep: #1d4a6b;
  --bg-surface: #1a4462;
  --bg-card: #173d59;
  --bg-card-hover: #1e4a6b;
  
  --gold-primary: #e0b93f;
  --gold-light: #fbeec2;
  --gold-dim: #a8821f;
  
  /* La luz del cielo: el celeste de la mano del socio. 4.93:1 sobre ground. */
  --celeste: #62c8f2;
  --celeste-deep: #2f7fa8;
  
  --amber-flame: #ff9d42;
  --amber-core: #ffe89e;
  --amber-glow: rgba(255, 157, 66, 0.6);
  
  --text-primary: #f6f3ec;
  --text-muted: #cbd9e2;
  --text-dim: #a7b8c4;
  
  /* Texto oscuro sobre relleno dorado (10.72:1). Antes se usaba --bg-deep
     y al cambiar el fondo los botones quedaban con texto claro sobre oro. */
  --text-on-gold: #080706;
  
  /* Canales RGB para poder cambiar la paleta sin reescribir 68 lineas */
  --gold-rgb: 224, 185, 63;
  --text-rgb: 246, 243, 236;
  --celeste-rgb: 98, 200, 242;
  
  /* Movimiento (emil-design-eng + animate) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 160ms;
  --dur-ui: 200ms;
  --dur-enter: 420ms;
  
  --font-serif: 'Cinzel', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', Garamond, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --glow-intensity: 0;
  --halo-opacity: 0;
  --flame-screen-x: 50%;
  --flame-screen-y: 50%;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:focus-visible {
  outline: 3px solid var(--gold-primary);
  outline-offset: 3px;
}

/* Etiquetas accesibles visualmente ocultas (WCAG 2.2 AA) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Enlace accesible de salto al contenido principal */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1.5rem;
  z-index: 9999;
  background: linear-gradient(135deg, #fdeeb8, var(--gold-primary));
  color: var(--text-on-gold);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.25s ease;
  box-shadow: 0 4px 15px rgba(var(--gold-rgb), 0.45);
}

.skip-link:focus {
  top: 1.5rem;
}

::placeholder {
  color: var(--text-dim);
  opacity: 1;
}

h1, h2, h3, h4, .hero-title, .section-title {
  text-wrap: balance;
}

p, .body-text, .lead-text {
  text-wrap: pretty;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

body {
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(var(--gold-rgb), 0.04) 0%, transparent 60%),
    radial-gradient(circle at 80% 50%, rgba(var(--celeste-rgb), 0.05) 0%, transparent 50%);
}

/* ===================================================================
   ENCABEZADO / BARRA DE NAVEGACIÓN
   =================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 2rem;
  transition: background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 36, 58, 0.72);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.1);
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.flame-icon {
  font-size: 1.3rem;
  filter: drop-shadow(0 0 8px rgba(255, 170, 50, 0.8));
  animation: flamePulse 2.5s infinite ease-in-out;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--gold-light) 70%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a:not(.btn-nav) {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:not(.btn-nav):hover {
  color: var(--text-primary);
}

.nav-links a:not(.btn-nav):hover::after {
  transform: scaleX(1);
}

.btn-nav {
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-on-gold);
  background: linear-gradient(135deg, #fdeeb8, var(--gold-primary));
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(var(--gold-rgb), 0.25);
  transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out), filter var(--dur-ui) var(--ease-out);
}

.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 170, 50, 0.45);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  box-sizing: border-box;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gold-primary);
  border-radius: var(--radius-full);
}

/* ===================================================================
   HERO A TAMAÑO FIJO (100dvh) + CANVAS
   Sin runway: la animación la dispara el primer scroll por tween y la
   página avanza nativa. Nada de scroll muerto en la cabecera.
   =================================================================== */
.hero-scroll-container {
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
}

.hero-sticky-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
}

/* ===================================================================
   HERO FULLSCREEN CANVAS (EL VIDEO OCUPA TODA LA CABECERA)
   =================================================================== */
.hero-fullscreen-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* Por detrás de la tipografía (que tiene z-index: 10) */
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
}

/* Velo negro sobre el vídeo: la vela respira en el centro y todo lo que
   la rodea cae a negro puro. Por encima del vídeo, por debajo del texto. */
.hero-video-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Funde el video hacia el color del fondo (no hacia el negro): en un
     fondo azul, un velo negro dejaria un ovalo oscuro en medio del hero. */
  background: radial-gradient(ellipse 95% 95% at 50% 46%,
    transparent 34%,
    rgba(29, 74, 107, 0.5) 68%,
    #1d4a6b 96%);
}

.hero-fullscreen-video {
  position: absolute;
  display: block;
  user-select: none;
  pointer-events: none;
  /* Negro explícito: ninguna superficie sin pintar puede verse gris.
     Con mix-blend-mode: screen este negro NO se ve: se suma al fondo. */
  background: #000;
  /* SIN mask-image a proposito: en Chrome, una mascara en el elemento
     anula el mix-blend-mode y el negro del video se pinta opaco. Con el
     fondo azul eso era un rectangulo negro en mitad del hero. Sin
     mascara, el negro se blendea y el borde del video (negro puro)
     desaparece tambien. El difuminado lo hace .hero-video-shade, que
     ahora funde hacia el azul en vez de hacia el negro. */
  /* El negro del vídeo desaparece sobre el fondo (screen blend).
     Tamaño y posición los calcula layoutVideo() en candle.js. */
  mix-blend-mode: screen;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

/* Resplandor Luminoso de la Corona de la Llama Viva */
.flame-corona-glow {
  position: absolute;
  top: 34%;
  left: 36%;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 240, 180, 0.95) 0%,
    rgba(255, 175, 50, 0.75) 25%,
    rgba(255, 110, 20, 0.35) 55%,
    transparent 75%
  );
  filter: blur(20px);
  pointer-events: none;
  animation: coronaPulse 2.8s infinite ease-in-out;
}

@keyframes coronaPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.85;
  }
  35% {
    transform: translate(-50%, -50%) scale(1.15) translate(1px, -2px);
    opacity: 1;
  }
  70% {
    transform: translate(-50%, -50%) scale(0.92) translate(-1px, 1px);
    opacity: 0.78;
  }
}

@keyframes flameMicroDance {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1, 1) rotate(0deg);
  }
  25% {
    transform: translate(-50%, -50%) scale(0.95, 1.08) rotate(1.5deg);
  }
  60% {
    transform: translate(-50%, -50%) scale(1.05, 0.96) rotate(-1.2deg);
  }
  85% {
    transform: translate(-50%, -50%) scale(0.98, 1.04) rotate(0.8deg);
  }
}

/* Contenedor de micro-chispas doradas */
.floating-embers-container {
  position: absolute;
  top: 15%;
  left: 24%;
  width: 25%;
  height: 40%;
  pointer-events: none;
  overflow: visible;
}

.floating-ember {
  position: absolute;
  border-radius: 50%;
  background: #ffcc55;
  box-shadow: 0 0 6px #ffa520;
  pointer-events: none;
  animation: floatEmberUp var(--dur, 3s) infinite ease-out;
}

@keyframes floatEmberUp {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  20% {
    opacity: 0.9;
  }
  80% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx, 15px), -90px) scale(0.2);
  }
}

/* Halo de luz dinámico reactivo tras el texto */
.dynamic-light-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 400px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--celeste-rgb), calc(var(--halo-opacity) * 0.42)) 0%,
    rgba(60, 150, 210, calc(var(--halo-opacity) * 0.26)) 35%,
    rgba(30, 100, 160, calc(var(--halo-opacity) * 0.10)) 60%,
    transparent 80%
  );
  filter: blur(25px);
  transition: opacity 0.2s ease;
}

/* Contenido Central del Hero */
.hero-center-content {
  position: relative;
  z-index: 10; /* Por delante de la vela cuando pasa por detrás */
  text-align: center;
  padding: 0 1.5rem;
  max-width: 1200px;
  pointer-events: auto;
  user-select: none;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--gold-primary);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Tipografía de Alto Impacto */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6.5vw, 6.8rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.15;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 0.5em;
  text-transform: uppercase;
}

.word-alumbra {
  color: var(--text-primary);
  text-shadow:
    0 4px 20px rgba(0, 0, 0, 0.8),
    0 0 16px rgba(255, 220, 130, calc(var(--glow-alumbra, 0) * 0.95)),
    0 0 38px rgba(255, 170, 50, calc(var(--glow-alumbra, 0) * 0.85)),
    0 0 75px rgba(var(--celeste-rgb), calc(var(--glow-alumbra, 0) * 0.6));
  transition: color 0.4s ease;
}

.word-la {
  color: var(--text-primary);
  text-shadow:
    0 4px 20px rgba(0, 0, 0, 0.8),
    0 0 16px rgba(255, 220, 130, calc(var(--glow-la, 0) * 0.95)),
    0 0 38px rgba(255, 170, 50, calc(var(--glow-la, 0) * 0.85)),
    0 0 75px rgba(var(--celeste-rgb), calc(var(--glow-la, 0) * 0.6));
  transition: color 0.4s ease;
}

/* Contenedor y Efecto Glow en "VIDA" */
.word-vida-wrapper {
  position: relative;
  display: inline-block;
}

.word-vida {
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  transition: color 0.4s ease;
  /* Sombra de glow calculada con la variable CSS interactiva */
  text-shadow:
    0 0 18px rgba(255, 225, 135, calc(var(--glow-intensity, 0) * 0.95)),
    0 0 42px rgba(255, 175, 55, calc(var(--glow-intensity, 0) * 0.9)),
    0 0 80px rgba(var(--celeste-rgb), calc(var(--glow-intensity, 0) * 0.7)),
    0 0 130px rgba(45, 140, 200, calc(var(--glow-intensity, 0) * 0.5));
}

/* Efecto de luminosidad intensa cuando la vela pasa por detrás */
.word-vida.illuminated {
  color: var(--text-primary);
  animation: vidaFlicker 2.2s infinite alternate ease-in-out;
}

@keyframes vidaFlicker {
  0% {
    filter: brightness(1) drop-shadow(0 0 24px rgba(255, 180, 50, 0.8));
  }
  50% {
    filter: brightness(1.12) drop-shadow(0 0 38px rgba(255, 205, 85, 0.95));
  }
  100% {
    filter: brightness(1.04) drop-shadow(0 0 28px rgba(255, 165, 45, 0.85));
  }
}

.hero-tagline {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.85rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 650px;
  margin: 1.8rem auto 0;
  letter-spacing: 0.04em;
  opacity: 0.9;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 0, 0, 0.85);
  transition: opacity 0.5s ease;
}

/* Indicador de scroll interactivo */
.scroll-prompt {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: opacity 0.4s ease;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(var(--gold-rgb), 0.5);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 7px;
  background: var(--gold-primary);
  border-radius: var(--radius-full);
  animation: mouseWheel 1.8s infinite ease-in-out;
}

@keyframes mouseWheel {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ===================================================================
   SECCIONES GENERALES
   =================================================================== */
.section {
  padding: 8rem 2rem;
  position: relative;
  z-index: 20;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.gold-separator {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-primary), transparent);
  margin: 1.5rem 0;
}

.text-center {
  text-align: center;
}

/* ===================================================================
   BOTONES DE ACCIÓN EN NAVEGACIÓN
   =================================================================== */
.nav-action-btn {
  background: rgba(var(--gold-rgb), 0.12);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.45rem 0.95rem;
  min-height: 44px;
  box-sizing: border-box;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-action-btn:hover {
  background: var(--gold-primary);
  color: var(--text-on-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(var(--gold-rgb), 0.3);
}

/* ===================================================================
   SECCIÓN 1: PRESENTACIÓN & PROPÓSITO
   =================================================================== */
.presentacion-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 100%);
  border-top: 1px solid rgba(var(--gold-rgb), 0.12);
}

.presentacion-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  align-items: center;
}

.lead-text {
  font-family: var(--font-editorial);
  font-size: 1.45rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.body-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid rgba(var(--text-rgb), 0.06);
  padding: 1.5rem 1.8rem 1.5rem 2.2rem;
  border-radius: var(--radius-md);
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 1.2rem;
  bottom: 1.2rem;
  left: 1rem;
  width: 3px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, var(--gold-light), var(--gold-primary) 60%, var(--gold-dim));
}

.pillar-card:hover {
  transform: translateX(6px);
  border-color: rgba(var(--gold-rgb), 0.4);
}

/* FAQ visible: disclosure progresivo con los tokens de marca */
.faq-list {
  max-width: 760px;
  margin: 2.5rem auto 0;
  display: grid;
  gap: 0.9rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(var(--text-rgb), 0.06);
  border-radius: var(--radius-md);
  padding: 0 1.5rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 1rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--gold-primary);
  font-size: 1.4rem;
  font-weight: 400;
  flex: none;
}
.faq-item[open] summary::after {
  content: "–";
}
.faq-item p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item a {
  color: var(--gold-light);
}

.pillar-card h3,
.pillar-card h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* ===================================================================
   SECCIÓN 2: MANIFIESTO RESUMIDO & CITA TESTIMONIAL
   =================================================================== */
.manifiesto-resumen-section {
  background: radial-gradient(ellipse at 50% 0%, rgba(var(--gold-rgb), 0.08) 0%, var(--bg-surface) 70%);
  border-top: 1px solid rgba(var(--gold-rgb), 0.1);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.1);
}

.manifiesto-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.manifesto-proclamation {
  background: rgba(10, 36, 58, 0.88);
  border: 1px solid rgba(var(--gold-rgb), 0.25);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
}

.manifesto-proclamation::before {
  content: '“';
  font-family: var(--font-editorial);
  font-size: 6rem;
  color: var(--gold-primary);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
}

.manifesto-excerpt {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.manifesto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.btn-primary {
  background: linear-gradient(135deg, #fbeec2, var(--gold-primary));
  color: var(--text-on-gold);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out), filter var(--dur-ui) var(--ease-out);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 170, 50, 0.4);
}

/* Variante compacta (estados ciudades en app.js): reduce padding pero
   mantiene el target táctil mínimo 44x44px de web-standards.md */
.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  min-height: 44px;
  min-width: 44px;
}

.btn-secondary {
  background: rgba(var(--text-rgb), 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  border-radius: var(--radius-full);
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), transform var(--dur-press) var(--ease-out);
}

.btn-secondary:hover {
  background: rgba(var(--gold-rgb), 0.15);
  border-color: var(--gold-light);
  color: var(--text-primary);
}

.quote-toscano-card {
  background: linear-gradient(180deg, #1b4363 0%, #112f49 100%);
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  position: relative;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.quote-toscano-card h3,
.quote-toscano-card h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.quote-toscano-card blockquote {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text-primary);
  margin: 0 0 1.5rem;
}

.quote-toscano-card .quote-author {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
  text-transform: uppercase;
  font-weight: 600;
}

/* ===================================================================
   SECCIÓN 3: CIUDADES PARTICIPANTES
   =================================================================== */
.ciudades-section {
  background-color: var(--bg-deep);
}

.cities-toolbar {
  margin: 3rem auto 3.5rem;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cities-search-bar {
  position: relative;
  width: 100%;
}

.cities-search-bar input {
  width: 100%;
  background: rgba(8, 30, 50, 0.9);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  border-radius: var(--radius-full);
  padding: 1rem 1.5rem 1rem 3.2rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.cities-search-bar input:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 20px rgba(var(--gold-rgb), 0.3);
}

.cities-search-bar .search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.filter-btn {
  background: rgba(var(--text-rgb), 0.04);
  border: 1px solid rgba(var(--text-rgb), 0.1);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out);
}

.filter-btn:hover {
  border-color: rgba(var(--gold-rgb), 0.4);
  color: var(--text-primary);
}

.filter-btn.active {
  background: rgba(var(--gold-rgb), 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  box-shadow: 0 0 12px rgba(var(--gold-rgb), 0.2);
}

.cities-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto 1.5rem;
  padding: 0 0.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.cities-count-badge {
  color: var(--gold-primary);
  font-weight: 600;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.city-card {
  background: var(--bg-card);
  border: 1px solid rgba(var(--text-rgb), 0.07);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
  position: relative;
}

.city-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--gold-rgb), 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.city-card.featured {
  border-color: rgba(var(--gold-rgb), 0.35);
  background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.06) 0%, var(--bg-card) 60%);
}

.city-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.city-flag-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.badge-featured {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(var(--gold-rgb), 0.15);
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.city-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.city-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.city-info-row .info-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.city-card-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(var(--text-rgb), 0.06);
}

.btn-card-poster {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.65rem 1rem;
  background: rgba(var(--gold-rgb), 0.08);
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  color: var(--gold-light);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out);
}

.btn-card-poster:hover {
  background: var(--gold-primary);
  color: var(--text-on-gold);
  border-color: var(--gold-primary);
}

.empty-cities-notice {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px dashed rgba(var(--gold-rgb), 0.3);
  border-radius: var(--radius-lg);
}

.empty-cities-notice .empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.empty-cities-notice h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-cities-notice p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Panel Google Form: pasos + nota + estado pendiente */
.gform-steps {
  margin: 1.25rem 0 1.5rem;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.6rem;
  color: var(--text-muted);
}
.gform-steps li::marker {
  color: var(--gold-primary);
  font-weight: 700;
}
.gform-note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--gold-light);
}
a.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.all-posters-cta {
  text-align: center;
  margin-top: 3.5rem;
}

/* Aviso de inscripciones aún cerradas: aire entre subtítulo y CTA
   (el reset global deja margin:0; solo afecta a este header). */
.ciudades-section .section-header .btn-primary {
  margin-top: 1.25rem;
}

/* ===================================================================
   SECCIÓN 4: CONVOCA EN TU CIUDAD
   =================================================================== */
.convoca-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 100%);
  border-top: 1px solid rgba(var(--gold-rgb), 0.1);
}

.convoca-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4.5rem;
  align-items: flex-start;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.steps-list li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-badge {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-primary);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  background: rgba(var(--gold-rgb), 0.08);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.steps-list h3,
.steps-list h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.steps-list p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.form-box {
  background: var(--bg-card);
  border: 1px solid rgba(var(--gold-rgb), 0.25);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.form-box h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-box p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(8, 30, 50, 0.85);
  border: 1px solid rgba(var(--gold-rgb), 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 15px rgba(var(--gold-rgb), 0.25);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

/* ===================================================================
   SECCIÓN 5: ADHESIÓN DE ENTIDADES
   =================================================================== */
.adhesion-section {
  background-color: var(--bg-surface);
  border-top: 1px solid rgba(var(--text-rgb), 0.06);
}

.adhesion-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4.5rem;
  align-items: flex-start;
}

.entity-badges-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.entity-badge {
  background: rgba(var(--text-rgb), 0.04);
  border: 1px solid rgba(var(--gold-rgb), 0.25);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===================================================================
   SECCIÓN 6: DONACIONES OFICIALES
   =================================================================== */
.donaciones-section {
  background: radial-gradient(ellipse at 50% 100%, rgba(var(--gold-rgb), 0.12) 0%, var(--bg-deep) 70%);
  border-top: 1px solid rgba(var(--gold-rgb), 0.15);
}

.donation-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.donation-card {
  background: linear-gradient(180deg, #1b4363 0%, #112f49 100%);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  border-radius: var(--radius-lg);
  padding: 4rem 3.5rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
  text-align: center;
  position: relative;
}

.donation-card h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.donation-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.amount-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.amount-pill {
  background: rgba(var(--text-rgb), 0.05);
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), transform var(--dur-press) var(--ease-out);
}

.amount-pill:hover {
  background: rgba(var(--gold-rgb), 0.15);
  border-color: var(--gold-light);
}

.amount-pill.active {
  background: var(--gold-primary);
  color: var(--text-on-gold);
  border-color: var(--gold-primary);
  box-shadow: 0 0 20px rgba(var(--gold-rgb), 0.4);
}

.custom-amount-input {
  display: none;
  max-width: 220px;
  margin: 0 auto 2rem;
  background: rgba(8, 30, 50, 0.9);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-full);
  padding: 0.85rem 1.5rem;
  color: var(--text-primary);
  font-size: 1.2rem;
  text-align: center;
  outline: none;
}

.paypal-form-action {
  margin-bottom: 2rem;
}

.btn-paypal-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #fbeec2, var(--gold-primary));
  color: var(--text-on-gold);
  border: none;
  border-radius: var(--radius-full);
  padding: 1.1rem 3rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(var(--gold-rgb), 0.35);
  transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out), filter var(--dur-ui) var(--ease-out);
}

.btn-paypal-submit:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(var(--gold-rgb), 0.5);
}

.alt-donation-methods {
  border-top: 1px solid rgba(var(--text-rgb), 0.08);
  padding-top: 2rem;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.alt-donation-methods strong {
  color: var(--gold-light);
}

/* ===================================================================
   MODALES (MANIFIESTO, GALERÍA, CANCIÓN)
   =================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 22, 36, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: var(--bg-card);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(var(--gold-rgb), 0.15);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.active .modal-window {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.8rem 2.2rem;
  border-bottom: 1px solid rgba(var(--text-rgb), 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 2.2rem;
  overflow-y: auto;
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 1rem;
}

.modal-body p {
  margin-bottom: 1.25rem;
}

.modal-footer {
  padding: 1.5rem 2.2rem;
  border-top: 1px solid rgba(var(--text-rgb), 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background: rgba(10, 36, 58, 0.6);
}

/* Lightbox Galería */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gallery-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(var(--text-rgb), 0.08);
  position: relative;
  aspect-ratio: 4 / 3;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-thumb:hover img {
  transform: scale(1.06);
}

/* Modal Canción */
.video-embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  border: 1px solid rgba(var(--gold-rgb), 0.3);
}

.video-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lyrics-box {
  background: rgba(6, 22, 36, 0.66);
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  border-radius: var(--radius-md);
  padding: 2rem;
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-primary);
  text-align: center;
}

.btn-submit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  background: linear-gradient(135deg, #fbeec2, var(--gold-primary));
  color: var(--text-on-gold);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out), filter var(--dur-ui) var(--ease-out);
}

.btn-submit:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 170, 50, 0.4);
}

.privacy-note {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 1.25rem;
}

/* ===================================================================
   PIE DE PÁGINA
   =================================================================== */
.site-footer {
  background: #0e2c45;
  border-top: 1px solid rgba(var(--text-rgb), 0.06);
  padding: 5rem 2rem 2.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h3,
.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.footer-col a,
.footer-col .footer-link-btn {
  display: block;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.footer-col a:hover,
.footer-col .footer-link-btn:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(var(--text-rgb), 0.05);
  padding-top: 2rem;
}

.bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}

.legal-links a {
  color: var(--text-dim);
  text-decoration: none;
}

.legal-links a:hover {
  color: var(--text-muted);
}

/* ===================================================================
   ANIMACIONES GLOBALES
   =================================================================== */
@keyframes flamePulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(255, 160, 40, 0.7)); }
  50% { transform: scale(1.12); filter: drop-shadow(0 0 12px rgba(255, 200, 60, 0.95)); }
}

/* ===================================================================
   RESPONSIVE DESIGN & OPTIMIZACIONES MÓVILES
   =================================================================== */

body.menu-locked {
  overflow: hidden;
}

@media (max-width: 992px) {
  .presentacion-grid,
  .manifiesto-layout,
  .convoca-grid,
  .adhesion-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: rgba(7, 26, 44, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    gap: 1.25rem;
    align-items: center;
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.25);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-links.mobile-open {
    display: flex;
    animation: mobileFadeIn 0.3s ease;
  }

  .nav-links.mobile-open a,
  .nav-links.mobile-open button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 280px;
  }

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

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

@media (max-width: 768px), (max-height: 500px) and (orientation: landscape) {
  /* Cabecera Hero en móvil: 1 pantalla de alto (100dvh) para activación fluida en 1 solo scroll */
  .hero-scroll-container {
    height: 100vh;
    height: 100dvh;
    position: relative;
    overflow: hidden;
  }

  .hero-sticky-frame {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: 100%;
  }

  .section {
    padding: 5rem 1.25rem;
  }

  /* Cabecera Hero en móvil */
  .hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    margin-bottom: 0.85rem;
  }

  .hero-title {
    font-size: clamp(2.1rem, 8.8vw, 3.8rem);
    letter-spacing: 0.08em;
    gap: 0.15em 0.3em;
  }

  .hero-tagline {
    font-size: clamp(1.05rem, 4.2vw, 1.4rem);
    margin-top: 1.2rem;
  }

  .scroll-prompt {
    margin-top: 2rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }

  /* Tipografías y tarjetas */
  .lead-text {
    font-size: 1.2rem;
    line-height: 1.55;
  }

  .body-text {
    font-size: 0.95rem;
  }

  .manifesto-proclamation,
  .quote-toscano-card,
  .form-box,
  .donation-card {
    padding: 2.2rem 1.4rem;
  }

  .manifesto-excerpt {
    font-size: 1.15rem;
  }

  .manifesto-actions {
    flex-direction: column;
  }

  .manifesto-actions .btn-primary,
  .manifesto-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Formulario a 1 sola columna en pantallas móviles */
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Inputs accesibles para touch en móvil (mínimo 16px para evitar auto-zoom en iOS) */
  .form-group input,
  .form-group select,
  .form-group textarea,
  .cities-search-bar input {
    font-size: 16px;
    padding: 0.95rem 1.1rem;
  }

  /* Buscador de ciudades */
  .cities-toolbar {
    margin: 2rem 0;
  }

  .filter-pills {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  }

  .filter-pills::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .cities-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Donaciones */
  .amount-selector {
    gap: 0.5rem;
  }

  .amount-pill {
    padding: 0.65rem 1.2rem;
    font-size: 1rem;
    flex: 1 1 40%;
  }

  .btn-paypal-submit {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Modales en móvil */
  .modal-overlay {
    padding: 1rem;
  }

  .modal-window {
    max-height: 94vh;
  }

  .modal-header {
    padding: 1.25rem 1.25rem;
  }

  .modal-header h3 {
    font-size: 1.15rem;
  }

  .modal-body {
    padding: 1.25rem;
    font-size: 0.92rem;
  }

  .lyrics-box {
    padding: 1.25rem;
    font-size: 1.05rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  /* Footer */
  .footer-links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bottom-row {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .amount-pill {
    flex: 1 1 100%;
  }
}

/* ===================================================================
   ACCESIBILIDAD: PREFERS-REDUCED-MOTION (WCAG 2.2 AA)
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .flame-icon,
  .flame-corona-glow,
  .floating-ember,
  .sparkle-cross,
  .scroll-wheel,
  .dynamic-light-halo {
    animation: none !important;
  }

  .hero-scroll-container {
    height: auto !important;
    min-height: 100vh;
  }

  .hero-sticky-frame {
    position: relative !important;
    height: auto !important;
    min-height: 90vh;
  }

  .hero-center-content {
    position: relative !important;
    padding: 7rem 1.5rem 3rem;
  }

  .scroll-prompt {
    display: none !important;
  }
}

/* Apple HIG: Reduce Transparency — el cristal funcional cae a opaco */
@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .modal-overlay {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-header {
    background: var(--bg-deep);
  }
}

/* ===================================================================
   Movimiento — emil-design-eng + animate
   · feedback de pulsacion: el boton confirma que te ha oido
   · hover gateado a puntero fino (en tactil el hover salta al tocar)
   · entrada escalonada: 60ms entre tarjetas
   · prefers-reduced-motion: fuera los desplazamientos, dentro color y
     opacidad. No es "cero animacion".
   =================================================================== */
.btn:active,
.btn-nav:active,
.btn-primary:active,
.btn-secondary:active,
.btn-paypal-submit:active,
.btn-submit:active,
.amount-pill:active,
.btn-card-poster:active {
  transform: scale(0.97);
}

/* Hover solo donde hay puntero fino: en tactil, :hover se queda pegado
   despues de tocar. */
@media (hover: hover) and (pointer: fine) {
  .pillar-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--gold-rgb), 0.5);
  }
  .city-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--gold-rgb), 0.5);
  }
}

/* Entrada de las tarjetas del bloque de presentacion, escalonada */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.pillar-card {
  animation: riseIn var(--dur-enter) var(--ease-out) both;
}
.pillar-card:nth-child(2) { animation-delay: 60ms; }
.pillar-card:nth-child(3) { animation-delay: 120ms; }

@media (prefers-reduced-motion: reduce) {
  .pillar-card {
    animation: none;
  }
  .btn:active, .btn-nav:active, .btn-primary:active, .btn-secondary:active,
  .btn-paypal-submit:active, .btn-submit:active, .amount-pill:active,
  .btn-card-poster:active {
    transform: none;
  }
  .pillar-card:hover, .city-card:hover {
    transform: none;
  }
}
