/* ==========================================================================
   Anti-Pitch · hoja de estilos compartida (landing, ciudades, legal)
   Tokens de marca alineados a crossingoverlatam.bio
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F7F6FB;
  --dark: #0D0221;
  --dark-2: #160A33;
  --ink: #1B0641;
  --ink-soft: #5E5680;
  --ink-muted: #8C86A8;
  --accent: #EC6608;
  --accent-ink: #B84E04;      /* naranja oscurecido: texto chico sobre blanco con AA */
  --secondary: #23B7C5;
  --secondary-ink: #137E89;   /* turquesa oscurecido: texto sobre blanco con AA */
  --green: #56B655;
  --line: rgba(27, 6, 65, .10);
  --line-dark: rgba(255, 255, 255, .12);
  --on-dark: #F3F0FA;
  --on-dark-soft: rgba(243, 240, 250, .74);
  --on-dark-muted: rgba(243, 240, 250, .56);

  --font-head: 'Archivo', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif;

  --max: 1120px;
  --gutter: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(13, 2, 33, .06), 0 4px 16px rgba(13, 2, 33, .06);
  --shadow-md: 0 8px 32px rgba(13, 2, 33, .12);
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- Reset mínimo ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--accent-ink); text-decoration: none; text-underline-offset: .15em; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(236, 102, 8, .25); }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; }
h1 { font-size: clamp(44px, 7vw, 92px); letter-spacing: -.035em; line-height: .98; }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
h3 { font-size: 21px; line-height: 1.25; }
p { max-width: 68ch; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.center p, .center .lead { margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Skip link ---- */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; transition: top .15s; }
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1.2; letter-spacing: .005em;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn-primary::after { content: ''; position: absolute; inset: -2px; z-index: -1; background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .32) 50%, transparent 68%); transform: translateX(-130%); transition: transform .7s var(--ease); }
.btn-primary:hover::after { transform: translateX(130%); }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 6px 20px rgba(236, 102, 8, .25); }
.btn-primary:hover { background: #D45C06; border-color: #D45C06; box-shadow: 0 10px 28px rgba(236, 102, 8, .32); }
.btn-secondary { background: transparent; color: var(--ink); border-color: rgba(27, 6, 65, .28); }
.btn-secondary:hover { border-color: var(--ink); background: rgba(27, 6, 65, .04); }
.btn-ghost { background: transparent; color: var(--accent-ink); padding-left: 10px; padding-right: 10px; }
.btn-ghost:hover { text-decoration: underline; transform: none; }
.on-dark .btn-secondary { color: var(--on-dark); border-color: rgba(255, 255, 255, .38); }
.on-dark .btn-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.on-dark .btn-ghost { color: var(--on-dark-soft); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Nav ---- */
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-nav .inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 18px; letter-spacing: -.01em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav-links a { display: inline-block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.nav-links a:hover { background: var(--bg-alt); text-decoration: none; }
.nav-links a[aria-current="true"] { color: var(--accent-ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg-alt); }
.lang-switch button { padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); letter-spacing: .04em; }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; color: var(--ink); }
.menu-toggle:hover { background: var(--bg-alt); }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; font-size: 16px; }
  .nav-links .nav-cta-mobile { margin-top: 10px; }
  .menu-toggle { display: inline-flex; }
  .nav-actions .nav-cta-desktop { display: none; }
}
@media (min-width: 861px) { .nav-links .nav-cta-mobile { display: none; } }

/* ---- Secciones ---- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark, .on-dark { background: var(--dark); color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark .lead, .on-dark .muted { color: var(--on-dark-soft); }
.on-dark a { color: var(--on-dark); }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.on-dark .eyebrow { color: var(--secondary); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 16px; }

/* ---- Grillas y tarjetas ---- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(236, 102, 8, .13), transparent 62%); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(236, 102, 8, .35); }
.card:hover::after { opacity: 1; }
.card:hover .icon-badge { background: var(--accent); color: #fff; transform: rotate(-6deg) scale(1.06); }
.on-dark .card::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(35, 183, 197, .16), transparent 62%); }
.on-dark .card:hover { border-color: rgba(35, 183, 197, .45); background: rgba(255, 255, 255, .07); }
.card h3 { margin-top: 4px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }
.card .card-cta { margin-top: auto; padding-top: 8px; }
.on-dark .card { background: rgba(255, 255, 255, .05); border-color: var(--line-dark); box-shadow: none; }
.on-dark .card p { color: var(--on-dark-soft); }
.step-num { font-family: var(--font-head); font-weight: 800; font-size: 13px; letter-spacing: .08em; color: var(--accent); }
.on-dark .step-num { color: var(--secondary); }
.icon-badge { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(236, 102, 8, .10); color: var(--accent-ink); transition: background .3s, color .3s, transform .35s var(--ease); }
.icon-badge svg { width: 22px; height: 22px; }
.on-dark .icon-badge { background: rgba(35, 183, 197, .14); color: var(--secondary); }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); padding: clamp(72px, 11vw, 140px) 0 clamp(56px, 8vw, 96px); isolation: isolate; }
.bg-layer { position: absolute; inset: 0; z-index: -1; pointer-events: none; will-change: transform; }
.hero .bg-glow { inset: -30% -10% -10% -10%; background:
  radial-gradient(42% 55% at 18% 35%, rgba(236, 102, 8, .34) 0%, rgba(236, 102, 8, 0) 70%),
  radial-gradient(38% 50% at 82% 25%, rgba(35, 183, 197, .30) 0%, rgba(35, 183, 197, 0) 70%),
  radial-gradient(30% 40% at 60% 85%, rgba(86, 182, 85, .14) 0%, rgba(86, 182, 85, 0) 70%); }
.bg-grid { background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 100%); mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 100%); }
.bg-orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; }
.section-dark { position: relative; overflow: hidden; isolation: isolate; }
.section-dark .bg-glow { background: radial-gradient(40% 50% at 85% 15%, rgba(35, 183, 197, .22) 0%, rgba(35, 183, 197, 0) 70%), radial-gradient(36% 46% at 10% 90%, rgba(236, 102, 8, .20) 0%, rgba(236, 102, 8, 0) 70%); inset: -20% 0; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.js .hero-inner > * { animation: rise .9s var(--ease) both; }
.js .hero-inner > :nth-child(2) { animation-delay: .08s; }
.js .hero-inner > :nth-child(3) { animation-delay: .18s; }
.js .hero-inner > :nth-child(4) { animation-delay: .28s; }
.js .hero-inner > :nth-child(5) { animation-delay: .4s; }
.hero-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.hero .eyebrow { color: var(--secondary); margin-bottom: 22px; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { color: var(--on-dark-soft); font-size: clamp(18px, 2.3vw, 23px); max-width: 640px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-cta .btn { min-width: 220px; }
.hero-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); font-size: 14px; font-weight: 500; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--secondary); }

/* ---- Contadores ---- */
.stats { background: var(--dark); color: var(--on-dark); border-top: 1px solid var(--line-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 24px; border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: 0; }
.stat-num { font-family: var(--font-head); font-weight: 900; font-size: clamp(36px, 4.6vw, 56px); line-height: 1; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 4px; }
.stat-num .suffix { font-size: .45em; color: var(--secondary); font-weight: 800; }
.stat-label { margin-top: 8px; font-size: 14px; color: var(--on-dark-soft); }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat { padding: 22px 18px; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); } }

/* ---- Marquee ---- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); margin: 0 0 36px; }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 18px; padding: 0 18px; font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 3vw, 34px); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.marquee-item .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.marquee-item.is-soon { color: var(--ink-muted); }
.marquee-item.is-soon .dot { background: var(--secondary); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } }

/* ---- Diagrama "la mesa" ---- */
.mesa { width: 100%; max-width: 520px; margin: 0 auto; }
.mesa text { font-family: var(--font-body); font-weight: 600; }
.format-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 900px) { .format-layout { grid-template-columns: 1fr; } .format-layout .mesa { order: -1; max-width: 420px; } }
.steps { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); transition: transform .35s var(--ease), background .3s, border-color .3s; }
.step:hover { transform: translateX(6px); background: rgba(255, 255, 255, .08); border-color: rgba(35, 183, 197, .45); }
.step .step-num { font-size: 26px; line-height: 1; letter-spacing: -.02em; padding-top: 2px; }
.step h3 { color: #fff; font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--on-dark-soft); font-size: 15px; }

/* ---- Próximo evento ---- */
.event-panel { display: grid; grid-template-columns: 1.2fr 1fr; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.event-main { padding: clamp(28px, 4vw, 44px); }
.event-side { padding: clamp(28px, 4vw, 44px); background: var(--bg-alt); border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.event-dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; margin: 24px 0 28px; }
.event-dl div { border-top: 2px solid var(--line); padding-top: 12px; }
.event-dl dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px; }
.event-dl dd { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(35, 183, 197, .12); color: var(--secondary-ink); font-size: 13px; font-weight: 700; }
.status-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 4px rgba(35, 183, 197, .18); }
.event-side h3 { font-size: 18px; }
.event-side p { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 820px) { .event-panel { grid-template-columns: 1fr; } .event-side { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .event-dl { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; } .hero-cta .btn { min-width: 0; width: 100%; } .event-side .btn { width: 100%; } }

/* ---- Apoyo / logos ---- */
.backers { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px 56px; margin-top: 20px; }
.backers a { display: inline-flex; align-items: center; opacity: .72; transition: opacity .2s; filter: grayscale(1); }
.backers a:hover { opacity: 1; filter: none; }
.backers img { max-height: 40px; width: auto; }

/* ---- Ciudades (teaser y listado) ---- */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.city-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 180px; padding: 22px 22px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; text-align: left; }
.city-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(236, 102, 8, .4); text-decoration: none; }
.city-card:hover .city-hint { gap: 10px; }
.city-card .city-hint { transition: gap .25s var(--ease); }
.city-card .city-name { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
.city-card .city-country { font-size: 14px; color: var(--ink-soft); }
.city-card .city-status { position: absolute; top: 16px; left: 18px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft); }
.city-card.is-active { background: var(--dark); border-color: var(--dark); }
.city-card.is-active .city-name, .city-card.is-active .city-country { color: #fff; }
.city-card.is-active .city-country { color: var(--on-dark-soft); }
.city-card.is-active .city-status { background: var(--accent); color: #fff; }
.city-card .city-hint { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--accent-ink); display: inline-flex; gap: 6px; align-items: center; }
.city-card.is-active .city-hint { color: var(--secondary); }

.city-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .city-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .city-grid-4 { grid-template-columns: 1fr; } }

/* ---- CTA final ---- */
.cta-final { background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.cta-final::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 50% 100%, rgba(236, 102, 8, .22) 0%, rgba(236, 102, 8, 0) 70%); }
.cta-final h2 { color: #fff; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.cta-links { display: flex; gap: 8px 28px; justify-content: center; flex-wrap: wrap; margin-top: 22px; font-size: 15px; }
.cta-links a { color: var(--on-dark-soft); font-weight: 600; }
.cta-links a:hover { color: #fff; }

/* ---- Newsletter (oculto hasta tener endpoint) ---- */
.newsletter-form { display: flex; gap: 10px; max-width: 520px; margin: 24px auto 0; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1 1 240px; min-height: 48px; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.newsletter-form input[type="email"]:focus { border-color: var(--accent); outline: none; }
.newsletter-consent { display: flex; align-items: flex-start; gap: 8px; max-width: 520px; margin: 12px auto 0; font-size: 13.5px; color: var(--ink-soft); text-align: left; }
.newsletter-consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.form-msg { margin-top: 12px; font-size: 14px; font-weight: 600; }
.form-msg.ok { color: #2E7D32; }
.form-msg.err { color: #C62828; }

/* ---- Footer ---- */
.site-footer { background: linear-gradient(180deg, var(--dark) 0%, #07011A 100%); color: var(--on-dark-soft); padding: 64px 0 28px; font-size: 14.5px; }
.site-footer a { color: var(--on-dark-soft); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { max-width: 34ch; color: var(--on-dark-soft); font-size: 14.5px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col button { padding: 0; color: var(--on-dark-soft); font-weight: 500; text-align: left; }
.footer-col button:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 13.5px; color: var(--on-dark-muted); }
.footer-bottom a { color: var(--on-dark-soft); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Modales (dialog nativo + Tally) ---- */
dialog.modal { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(600px, 100vw); height: 100dvh; max-height: none; max-width: none; padding: 0; border: 0; border-radius: 0; background: #fff; color: var(--ink); box-shadow: -24px 0 80px rgba(13, 2, 33, .35); overflow: hidden;
  transform: translateX(100%); opacity: .6; transition: transform .5s var(--ease), opacity .35s var(--ease), overlay .5s allow-discrete, display .5s allow-discrete; }
dialog.modal[open] { display: flex; flex-direction: column; }
dialog.modal.is-open { transform: none; opacity: 1; }
dialog.modal::backdrop { background: rgba(13, 2, 33, 0); backdrop-filter: blur(0); transition: background .45s var(--ease), backdrop-filter .45s var(--ease); }
dialog.modal.is-open::backdrop { background: rgba(13, 2, 33, .62); backdrop-filter: blur(5px); }
.modal-head { position: relative; }
.modal-head::before { content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--secondary)); }
.modal-body { flex: 1; }
.modal-body iframe { height: 100%; min-height: 480px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 16px 28px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 24px; margin: 6px 0 6px; }
.modal-head p { font-size: 15px; color: var(--ink-soft); }
.modal-close { flex: none; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft); }
.modal-close:hover { background: var(--bg-alt); color: var(--ink); }
.modal-close svg { width: 20px; height: 20px; }
.modal-body { overflow: auto; padding: 8px 12px 16px; -webkit-overflow-scrolling: touch; }
.modal-body iframe { width: 100%; min-height: 560px; border: 0; display: block; }
.modal-foot { padding: 12px 28px 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { dialog.modal { width: 100vw; } .modal-head { padding: 22px 16px 12px 20px; } }

/* ---- Páginas legales ---- */
.legal { max-width: 720px; margin: 0 auto; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.legal .updated { color: var(--ink-muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16.5px; }
.legal ul { padding-left: 22px; margin: 8px 0 16px; display: grid; gap: 8px; }
.legal strong { color: var(--ink); }

/* ---- Revelado al scroll (solo con JS y sin reduced-motion) ---- */
.js .reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(32px); }
.js .reveal-stagger > * { transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js .reveal-stagger:not(.is-visible) > * { opacity: 0; transform: translateY(32px); }
.js .reveal-stagger.is-visible > * { transition-delay: 0s; transition-duration: .35s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal:not(.is-visible), .js .reveal-stagger:not(.is-visible) > * { opacity: 1; transform: none; transition: none; }
  .js .hero-inner > * { animation: none; }
  .bg-layer { transform: none !important; }
  dialog.modal { transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
