/* ============================================================
   SOMOS MX Quintana Roo — Sistema visual
   Magenta institucional #D80060  →  oklch(0.566 0.227 6.6)
   Blanco base · Negro para contraste
   Display: Sora · Cuerpo: Inter
   ============================================================ */

:root {
  --accent: oklch(0.566 0.227 6.6);
  --accent-fuerte: oklch(0.47 0.188 6.2);
  --accent-oscuro: oklch(0.38 0.15 6.2);
  --accent-suave: oklch(0.946 0.028 349.5);
  --bg: #ffffff;
  --surface: oklch(0.975 0.002 300);
  --fg: oklch(0.178 0 90);
  --muted: oklch(0.473 0.003 308.4);
  --border: oklch(0.91 0.004 300);
  --footer-bg: oklch(0.42 0.17 6.2);
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --max-w: 1200px;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(17, 17, 17, 0.08);
  --shadow-magenta: 0 14px 34px rgba(216, 0, 96, 0.28);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--accent-fuerte); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.salto-contenido {
  position: absolute;
  left: 16px; top: -60px;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 2000;
  transition: top 0.2s ease;
}
.salto-contenido:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ============ HEADER ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.site-header.con-scroll { box-shadow: 0 8px 30px rgba(17, 17, 17, 0.06); }

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img {
  width: clamp(88px, 8vw, 112px);
  height: auto;
  object-fit: contain;
}

.nav-principal { margin-left: auto; }.nav-principal ul {
  list-style: none;
  display: flex;
  gap: 6px;
}
.nav-principal a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.nav-principal a:hover { background: var(--accent-suave); color: var(--accent-fuerte); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-height: 48px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-magenta {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-magenta);
}
.btn-magenta:hover { background: var(--accent-fuerte); transform: translateY(-1px); box-shadow: 0 18px 40px rgba(216, 0, 96, 0.34); }

.btn-blanco {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.btn-blanco:hover { border-color: var(--accent); color: var(--accent-fuerte); transform: translateY(-1px); }

.btn-cta-header { padding: 11px 22px; font-size: 13px; letter-spacing: 0.06em; min-height: 42px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
}
.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  content: "";
  transition: transform 0.25s ease, opacity 0.25s ease;
  position: relative;
}
.nav-toggle-lines::before { position: absolute; top: -7px; left: 0; }
.nav-toggle-lines::after { position: absolute; top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { transform: translateY(-7px) rotate(90deg); }

.menu-movil { border-top: 1px solid var(--border); background: var(--bg); }
.menu-movil ul { list-style: none; padding: 8px 20px; }
.menu-movil a {
  display: block;
  padding: 14px 8px;
  color: var(--fg);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.menu-movil .btn-cta-movil { margin: 16px 20px 20px; display: flex; }

.menu-movil .btn-cta-movil,
.menu-movil .btn-cta-movil:visited {
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}
.menu-movil .btn-cta-movil:hover,
.menu-movil .btn-cta-movil:focus,
.menu-movil .btn-cta-movil:active {
  background: var(--accent-fuerte);
  color: #ffffff;
}
.menu-movil .btn-cta-movil:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.menu-movil .btn-cta-movil:active { transform: translateY(1px); }

/* ============ HERO SLIDER ============ */

.hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

.hero-viewport {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 86vh;
  overflow: hidden;
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.75s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-cta-link {
  position: absolute;
  right: 6%;
  bottom: 11%;
  width: clamp(220px, 30%, 340px);
  height: clamp(56px, 9%, 84px);
  display: block;
  border-radius: 12px;
}
.hero-cta-link:focus-visible { outline: 3px solid #ffffff; outline-offset: -4px; }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(17, 17, 17, 0.28);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s;
  z-index: 6;
}
.hero-arrow:hover { background: rgba(216, 0, 96, 0.85); border-color: transparent; }

.hero-arrow-prev { left: clamp(20px, 3vw, 32px); }
.hero-arrow-next { right: clamp(20px, 3vw, 32px); }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.hero-dot.activo { width: 30px; background: #ffffff; }

.hero-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(17, 17, 17, 0.14);
  z-index: 5;
}
.hero-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
}

/* ============ SECCIONES ============ */

.seccion { padding: 96px 20px; }

#quienes-somos, #quintana-roo, #participa, #formulario, #preguntas, #inicio { scroll-margin-top: 132px; }

.contenedor { max-width: var(--max-w); margin: 0 auto; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-fuerte);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  margin-bottom: 20px;
}

.lead {
  font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  color: var(--muted);
  max-width: 60ch;
}

.seccion-cabecera { margin-bottom: 56px; max-width: 760px; }

/* ============ QUIÉNES SOMOS ============ */

.quienes-somos { background: var(--bg); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-lado {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.split-foto {
  position: relative;
}
.split-foto img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split-foto::after {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 40%;
  height: 40%;
  border-radius: var(--radius);
  background: var(--accent-suave);
  z-index: -1;
}

.valores {
  list-style: none;
  margin: 36px 0;
  border-top: 1px solid var(--border);
}
.valores li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.valores-num {
  grid-row: 1 / 3;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 6px;
}
.valores h3 { font-size: 1.15rem; margin-bottom: 4px; }
.valores p { color: var(--muted); font-size: 15px; }

.filosofia {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.5;
  font-weight: 600;
  color: var(--fg);
  border-left: 4px solid var(--accent);
  padding-left: 24px;
  max-width: 44ch;
}

/* ============ TODO QUINTANA ROO ============ */

.quintana-roo { background: var(--surface); }

.qr-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 48px;
  align-items: start;
}

.qr-mapa {
  background: var(--accent-suave);
  border: 1px solid color-mix(in oklch, var(--accent) 18%, transparent);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 14px 38px rgba(216, 0, 96, 0.10);
  display: flex;
  justify-content: center;
}
.qr-mapa img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.qr-lista ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 26px;
  counter-reset: muni;
}
.qr-lista li {
  counter-increment: muni;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 6px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
}
.qr-lista li::before {
  content: counter(muni);
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.qr-foto { grid-column: 1 / -1; }
.qr-foto img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.qr-cta { margin-top: 48px; text-align: center; }

/* ============ FORMAS DE PARTICIPAR ============ */

.formas { background: var(--bg); }

.formas-foto { margin-bottom: 40px; }
.formas-foto img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.formas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.forma-tarjeta {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.forma-tarjeta:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.forma-tarjeta:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.forma-icono {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--accent-suave);
  color: var(--accent-fuerte);
  margin-bottom: 18px;
}
.forma-tarjeta h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.forma-tarjeta p { color: var(--muted); font-size: 15px; flex-grow: 1; }
.forma-link {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--accent-fuerte);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.forma-link::after {
  content: "→";
  transition: transform 0.2s ease;
}
.forma-tarjeta:hover .forma-link::after { transform: translateX(4px); }

/* ============ FORMULARIO ============ */

.formulario-seccion { background: var(--accent-suave); }

.form-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 64px;
  align-items: start;
}

.form-intro {
  position: sticky;
  top: 148px;
}

.form-intro .form-nota {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
  max-width: 38ch;
  border-top: 1px solid color-mix(in oklch, var(--accent) 25%, transparent);
  padding-top: 16px;
}

.form-pasos {
  margin-top: 40px;
}
.form-pasos h3 {
  font-size: 1.05rem;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}
.form-pasos ol {
  list-style: none;
  border-top: 1px solid color-mix(in oklch, var(--accent) 25%, transparent);
}
.form-pasos li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in oklch, var(--accent) 25%, transparent);
  align-items: baseline;
}
.paso-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.form-pasos li p {
  font-size: 15px;
  color: var(--fg);
  line-height: 1.5;
}

.form-panel {
  background: var(--bg);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 40px;
}

.campo { margin-bottom: 22px; }

.campo label,
.campo legend {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--fg);
}
.req { color: var(--accent); }

.campo input[type="text"],
.campo input[type="tel"],
.campo input[type="email"],
.campo select,
.campo textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--fg);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 52px;
}
.campo textarea { resize: vertical; min-height: 96px; }
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 16%, transparent);
}

.campo-error { display: none; color: var(--accent-oscuro); font-size: 13px; margin-top: 6px; }
.campo.validado-invalido .campo-error { display: block; }

.radio-grupo { border: 0; padding: 0; margin-bottom: 22px; }
.radio-opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.radio-opcion,
.checkbox-opcion {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.radio-opcion:hover, .checkbox-opcion:hover { border-color: var(--accent); }

.radio-opcion input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}
.checkbox-opcion input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.radio-opcion.seleccionada {
  border-color: var(--accent);
  background: var(--accent-suave);
}

.checkbox-opcion span { font-size: 14px; color: var(--muted); line-height: 1.5; }

.consentimiento .checkbox-opcion { align-items: center; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-acciones { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.form-acciones .btn-enviar { width: 100%; }

.form-estado { font-size: 14px; color: var(--muted); }
.form-estado.error { color: var(--accent-oscuro); }
.form-estado.exito { color: #0a7d3d; }

.btn-enviar:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.form-exito[hidden] { display: none; }

.form-exito {
  text-align: center;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.exito-icono {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  box-shadow: var(--shadow-magenta);
}
.form-exito h3 { font-size: 1.6rem; }
.form-exito p { color: var(--muted); max-width: 46ch; }

/* ============ FAQ ============ */

.faq { background: var(--bg); }

.faq-columna { max-width: 820px; }

.acordeon { border-top: 1px solid var(--border); }

.acordeon details {
  border-bottom: 1px solid var(--border);
}
.acordeon summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 44px 24px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}
.acordeon details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.acordeon summary:hover { color: var(--accent-fuerte); }

.respuesta { padding: 0 4px 24px 4px; max-width: 65ch; }
.respuesta p { color: var(--muted); }

/* ============ CTA FINAL ============ */

.cta-final { background: var(--bg); padding: 40px 20px 96px; }

.cta-foto img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.cta-cabecera {
  max-width: 800px;
  margin: 56px auto 32px;
  text-align: center;
}
.cta-cabecera h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
.cta-cabecera .lead {
  margin: 0 auto;
  text-align: center;
}

.cta-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ============ FOOTER ============ */

.site-footer {
  background: var(--footer-bg);
  color: #ffffff;
  padding: 72px 20px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo img {
  width: clamp(92px, 9vw, 112px);
  height: auto;
  object-fit: contain;
  margin-bottom: 16px;
}
.footer-lema {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-descripcion { font-size: 14px; color: rgba(255, 255, 255, 0.78); max-width: 34ch; }

.site-footer h3 {
  font-size: 14px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}
.site-footer a { color: #ffffff; text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: #ffb3d1; }

.footer-nav ul, .redes { list-style: none; }
.footer-nav li, .redes li { margin-bottom: 10px; }
.footer-nav a, .redes a { font-size: 15px; color: rgba(255, 255, 255, 0.92); }

.footer-participa p { font-size: 14px; color: rgba(255, 255, 255, 0.78); margin-bottom: 18px; }

.site-footer .btn-footer,
.site-footer .btn-footer:visited {
  background: #ffffff;
  color: var(--accent);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}
.site-footer .btn-footer:hover,
.site-footer .btn-footer:focus,
.site-footer .btn-footer:active {
  background: var(--accent-suave);
  color: var(--accent-fuerte);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
.site-footer .btn-footer:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}
.site-footer .btn-footer:active { transform: translateY(1px); }

.footer-correo {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-all;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}
.footer-legal .sep { margin: 0 8px; }
.footer-legal a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal a:hover { color: #ffb3d1; }

/* ============ REVELADO AL HACER SCROLL ============ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */

@media (min-width: 1024px) {
  .nav-principal {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
  }
  .header-inner .btn-cta-header { margin-left: auto; }
}

@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .qr-grid { grid-template-columns: 1fr; gap: 40px; }
  .qr-foto { grid-column: 1 / -1; }
  .qr-mapa { max-width: 520px; justify-self: center; }
  .form-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-intro { position: static; }
  .formas-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 820px) {
  .seccion { padding: 72px 20px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .nav-principal { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .btn-cta-header { display: none; }

  .header-inner { padding: 8px 16px; }
  .brand img { width: clamp(72px, 22vw, 92px); }

  .hero-viewport { max-height: 62vh; }

  .hero-dots { bottom: 14px; gap: 8px; }
  .hero-arrow { width: 42px; height: 42px; }
  .hero-arrow-prev { left: 12px; }
  .hero-arrow-next { right: 12px; }

  .radio-opciones { grid-template-columns: 1fr; }
  .formas-grid { grid-template-columns: 1fr; }

  .form-panel { padding: 26px 20px; }

  .cta-acciones { flex-direction: column; align-items: center; }
  .cta-acciones .btn { width: 100%; max-width: 420px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-legal { flex-direction: column; }
}

@media (max-width: 430px) {
  .qr-lista ol { grid-template-columns: 1fr; }
  .hero-cta-link { right: 4%; bottom: 9%; width: 40%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============ SUBPÁGINAS LEGALES ============ */

.pagina-legal .site-header { position: sticky; }

.hero-legal {
  background: var(--accent-suave);
  padding: 72px 20px 88px;
}
.hero-legal .contenedor { max-width: 1000px; text-align: center; }
.hero-legal .eyebrow { margin-bottom: 20px; }
.hero-legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 20px;
}
.hero-legal .lead {
  margin: 0 auto;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}
.fecha-legal {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-fuerte);
}
.fecha-legal::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.lectura {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 20px 96px;
}

.documento-intro {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 70ch;
  margin-bottom: 48px;
}

.seccion-legal {
  margin-bottom: 44px;
  scroll-margin-top: 132px;
}
.seccion-legal h2 {
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.6rem);
  margin-bottom: 16px;
  padding-top: 8px;
}
.seccion-legal p {
  color: var(--fg);
  max-width: 72ch;
  margin-bottom: 14px;
}
.seccion-legal ul {
  list-style: none;
  margin: 14px 0;
}
.seccion-legal ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--fg);
  max-width: 72ch;
}
.seccion-legal ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.seccion-legal ol {
  margin: 14px 0;
  padding-left: 24px;
}
.seccion-legal ol li {
  margin-bottom: 10px;
  color: var(--fg);
  max-width: 72ch;
}

.dato-negrita { font-weight: 600; color: var(--fg); }

.enlace-legal {
  color: var(--accent-fuerte);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}
.enlace-legal:hover { color: var(--accent-oscuro); }

.bloque-importante {
  background: var(--accent-suave);
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  padding: 22px 26px;
  margin: 20px 0;
}
.bloque-importante p { margin-bottom: 0; }

.consentimiento-extra { margin-top: 6px; }
.consentimiento-extra .checkbox-opcion span { font-size: 14px; }
.enlace-consentimiento { color: var(--accent-fuerte); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .hero-legal { padding: 56px 20px 64px; }
  .lectura { padding: 48px 16px 72px; }
  .seccion-legal { margin-bottom: 36px; }
}
