/* ==========================================================================
   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: #716A90; /* 5.1:1 sobre blanco, 4.7:1 sobre bg-alt */
  --accent: #EC6608;
  --accent-btn: #C25205; /* naranja de botón: 4.7:1 con texto blanco */
  --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-ink); 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-btn); color: #fff; border-color: var(--accent-btn); box-shadow: 0 6px 20px rgba(236, 102, 8, .28); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); box-shadow: 0 10px 28px rgba(236, 102, 8, .34); }
.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 { color: var(--accent-btn); text-decoration: 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 ---- */
/* Fondo casi opaco en vez de backdrop-filter: el blur se recalculaba en cada frame del scroll sobre la cinta animada y el parallax, y el navbar temblaba */
/* Reserva el espacio de la barra de scroll: abrir un modal (overflow hidden) o pasar a una página corta no corre el navbar */
html { scrollbar-gutter: stable; }

.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transform: translateZ(0); }
.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: 8px 12px; min-height: 36px; 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: #A64604; 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-note { color: var(--on-dark-soft); font-size: 15px; max-width: 560px; margin: 18px auto 0; line-height: 1.5; }
.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); }
.stats-verticals { list-style: none; margin: 0; padding: 14px 0 18px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.stats-verticals li { font-size: 13px; font-weight: 600; color: var(--secondary); font-style: italic; }
.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(odd) { 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: 540px; margin: 0 auto; overflow: visible; }
.mesa text { font-family: var(--font-body); font-weight: 600; }
.mesa text.t-head { font-family: var(--font-head); }
.mesa .mesa-orbit { animation: mesa-rot 70s linear infinite; }
.mesa .mesa-orbit-rev { animation: mesa-rot 40s linear infinite reverse; }
.mesa .mesa-flow { animation: mesa-flow 1.4s linear infinite; }
.mesa .mesa-halo { animation: mesa-pulse 4.5s ease-in-out infinite; }
.mesa .mesa-node { transition: transform .35s var(--ease); }
.mesa .mesa-node:hover { transform: scale(1.06); }
@keyframes mesa-rot { to { transform: rotate(360deg); } }
@keyframes mesa-flow { to { stroke-dashoffset: -28; } }
@keyframes mesa-pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.12); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mesa .mesa-orbit, .mesa .mesa-orbit-rev, .mesa .mesa-flow, .mesa .mesa-halo { animation: none; } }
.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: 20px; 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: #0F6B75; 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-start; gap: 4px; min-height: 180px; padding: 58px 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-btn); color: #fff; }
.city-card .city-count { display: inline-block; font-size: 14px; font-weight: 500; color: var(--ink-soft); margin-bottom: 2px; }
.city-card .city-count b { font-weight: 800; color: var(--accent); }
.city-card.is-active .city-count { color: var(--on-dark-soft); }
.city-card.is-active .city-count b { color: var(--accent); }
.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-final .eyebrow, .on-dark .eyebrow, .section-dark .eyebrow { color: var(--accent); }
.cta-final .lead { color: #fff; opacity: .92; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-final .btn-secondary { background: #fff; color: var(--ink); border-color: #fff; }
.cta-final .btn-secondary:hover { background: #F3F0FA; border-color: #F3F0FA; color: var(--ink); }
.cta-final .cta-links a { color: #fff; opacity: .85; }
.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; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); grid-template-areas: ". head" "toc body"; column-gap: clamp(32px, 6vw, 80px); row-gap: 0; align-items: start; justify-content: center; }
.legal-head { grid-area: head; margin-bottom: 28px; }
.legal-head h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.legal-head .updated { color: var(--ink-muted); font-size: 14px; }
.legal-toc { grid-area: toc; }
.legal-layout .legal { grid-area: body; }
.legal-layout[hidden] { display: none; }
.legal-toc { position: sticky; top: 92px; font-size: 14px; }
.legal-toc-title { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; }
.legal-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; border-left: 2px solid var(--line); }
.legal-toc li a { display: block; padding: 4px 0 4px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); }
.legal-toc li a:hover { color: var(--accent-ink); border-left-color: var(--accent); text-decoration: none; }
.legal-toc-other { margin-top: 18px; font-weight: 600; }
.legal .lead { font-size: 18px; margin-bottom: 24px; }
.legal-summary { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 8px; }
.legal-summary-title { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.legal-summary ul { margin: 0; }
.legal-summary li { color: var(--ink); }
.legal section { scroll-margin-top: 90px; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; grid-template-areas: "head" "toc" "body"; } .legal-toc { position: static; margin-bottom: 28px; } .legal-toc ol { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .legal-toc ol { grid-template-columns: 1fr; } }
.form-legend { font-size: 13.5px; font-style: italic; color: var(--ink-soft); margin-top: 12px; }
.form-legend a { color: var(--accent-ink); }
.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(20px); }
.js .reveal-stagger > * { transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 40ms); }
.js .reveal-stagger:not(.is-visible) > * { opacity: 0; transform: translateY(16px); }
.js .reveal-stagger.is-visible > * { transition-delay: 0s; transition-duration: .25s; }
@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; }
}

/* ---------- Ciudades: listado de 100, buscador y filtros ---------- */
.city-tools { display: flex; flex-direction: column; gap: 14px; margin: 0 0 36px; }
.city-search { position: relative; display: block; max-width: 520px; }
.city-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.city-search input { width: 100%; padding: 14px 16px 14px 46px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.city-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(236, 102, 8, .15); }
.city-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: all .2s var(--ease); }
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.chip.is-on { background: var(--dark); border-color: var(--dark); color: #fff; }
.city-tools-note { font-size: 14px; max-width: 760px; }
.city-region { margin-top: 36px; }
.city-region[hidden] { display: none; }
.city-region-title { display: flex; align-items: baseline; gap: 12px; font-size: 24px; margin-bottom: 16px; }
.city-region-count { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--ink-soft); background: var(--bg-alt); border-radius: 999px; padding: 3px 10px; }
button.city-card { font: inherit; cursor: pointer; width: 100%; -webkit-appearance: none; appearance: none; }
.city-card[hidden], .city-item[hidden] { display: none; }
.city-item { display: flex; flex-direction: column; gap: 8px; }
.city-item > .city-card { flex: 1; }
/* Alto fijo de 2 líneas: con 1 o 2 links, las tarjetas de una fila quedan alineadas */
.city-links { display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; padding: 0 6px; font-size: 12.5px; line-height: 1.5; min-height: calc(2 * 1.5em + 2px); }
.city-link { color: var(--accent-ink); font-weight: 600; }
.city-link.city-add { color: var(--ink-soft); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.city-link:hover { color: var(--accent-ink); }
.city-card .city-count { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.city-card .city-count b { color: var(--ink); font-weight: 700; }
.city-card .city-count.is-proxy b { color: var(--secondary-ink); }
.city-card .city-count.is-none { color: var(--ink-soft); font-style: italic; }
.city-card.is-active .city-count, .city-card.is-active .city-count b { color: var(--on-dark-soft); }
.city-empty { padding: 32px 0; }
.modal-city { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--accent-ink); }

/* ---------- Confidencialidad / NDA ---------- */
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.nda-cards { margin-top: 8px; }
.nda-download { position: relative; overflow: hidden; }
.nda-dl-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; position: relative; }
@media (max-width: 900px) { .nda-dl-layout { grid-template-columns: 1fr; } }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .dl-grid { grid-template-columns: 1fr; } }
.dl { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #fff; transition: transform .25s var(--ease), background .25s, border-color .25s; }
.dl:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); border-color: var(--accent); text-decoration: none; }
.dl-kind { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--secondary); }
.dl-label { font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.dl-sub { font-size: 13px; color: var(--on-dark-soft); }
.nda-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: pt; }
@media (max-width: 900px) { .nda-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nda-points { grid-template-columns: 1fr; } }
.nda-points li { counter-increment: pt; display: grid; gap: 6px; padding: 22px 22px 22px 60px; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.nda-points li::before { content: counter(pt, decimal-leading-zero); position: absolute; left: 20px; top: 20px; font-family: var(--font-head); font-weight: 800; color: var(--accent); font-size: 18px; }
.nda-points strong { color: var(--ink); font-size: 17px; }
.nda-points span { color: var(--ink-soft); font-size: 15.5px; }
.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); flex: none; transition: transform .25s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 18px; color: var(--ink-soft); margin: 0; }
.link-arrow { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--secondary); margin-top: 12px; }
.on-dark .link-arrow { color: var(--secondary); }

/* ==========================================================================
   Plataforma de Desafíos · capa pública (generada por tools/desafios/build.py)
   ========================================================================== */
.dsf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .dsf-grid { grid-template-columns: minmax(0, 1fr); } }
.dsf-all { margin-top: 24px; text-align: right; }
.dsf-cat-title { font-size: clamp(32px, 5vw, 52px); }
.dsf-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); display: grid; grid-template-rows: auto auto 1fr auto auto auto; gap: 14px; min-width: 0; }
.dsf-card h3 { font-size: 20px; line-height: 1.25; }
.dsf-card h3 a { color: var(--ink); }
.dsf-card-top { display: grid; justify-items: start; gap: 12px; }
.dsf-tags { display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }
.dsf-tag { font-size: 13px; font-weight: 600; color: var(--ink-soft); background: var(--bg-alt); border-radius: 999px; padding: 4px 11px; }
.dsf-demo-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--secondary-ink); border-radius: 4px; padding: 3px 8px; white-space: nowrap; }
.dsf-slot { border: 2px dashed rgba(27, 6, 65, .18); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: center; justify-items: start; color: var(--ink-soft); }
.dsf-slot .eyebrow { margin-bottom: 0; }
.dsf-slot h3 { font-size: 20px; color: var(--ink); }

/* Owner: siempre visible (decisión D1) */
.dsf-owner { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dsf-owner .av { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 14px; }
.dsf-owner .txt { display: grid; line-height: 1.35; min-width: 0; }
.dsf-owner .txt b { font-size: 14.5px; color: var(--ink); }
.dsf-owner .txt span, .dsf-owner .txt a { font-size: 13px; color: var(--ink-muted); }
.dsf-owner .txt a { color: var(--accent-ink); font-weight: 600; }
.dsf-owner.lg .av { width: 56px; height: 56px; font-size: 18px; }
.dsf-owner.lg .txt b { font-size: 17px; }
.dsf-owner.lg .txt span, .dsf-owner.lg .txt a { font-size: 14px; }

/* Mini hoja de ruta en tarjetas */
.dsf-mini { display: grid; gap: 6px; }
.dsf-mini-bar { display: grid; grid-template-columns: 4fr 1.25fr 2.2fr; gap: 5px; }
.dsf-mini-bar span { display: grid; grid-auto-flow: column; gap: 3px; }
.dsf-mini-bar i { height: 6px; border-radius: 99px; background: rgba(27, 6, 65, .1); display: block; }
.dsf-mini-bar i.d { background: rgba(236, 102, 8, .5); }
.dsf-mini-bar i.c { background: var(--accent-btn); }
.dsf-mini-lbl { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink-muted); }
.dsf-mini-lbl b { color: var(--ink); }
.dsf-seats { display: grid; gap: 6px; }
.dsf-seats-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.dsf-bar { height: 6px; border-radius: 99px; background: rgba(27, 6, 65, .1); overflow: hidden; }
.dsf-bar b { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

/* Ficha */
.dsf-head { padding: calc(var(--nav-h) + 24px) 0 40px; }
.dsf-head .wrap { display: grid; gap: 18px; }
.dsf-head h1 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.12; max-width: 24ch; }
.dsf-back { font-size: 14px; font-weight: 600; }
.dsf-route { padding: clamp(40px, 6vw, 64px) 0; }
.dsf-route .wrap { display: grid; gap: 28px; }
.dsf-route-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; }
.dsf-route-head h2 { font-size: clamp(24px, 3.4vw, 34px); color: #fff; margin-bottom: 8px; }
.dsf-route-head p { color: var(--on-dark-soft); max-width: 56ch; }
.dsf-route-now { font-size: 14px; font-weight: 700; color: var(--accent); }
.dsf-phases { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 1.25fr) minmax(0, 2.2fr); gap: 14px; }
.dsf-phase { display: grid; gap: 10px; align-content: start; min-width: 0; }
.dsf-phase-tag { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-soft); padding-bottom: 8px; border-bottom: 2px dashed rgba(255, 255, 255, .24); margin: 0; }
.dsf-phase-tag b { color: var(--secondary); letter-spacing: .02em; text-transform: none; font-weight: 600; }
.dsf-phase.live .dsf-phase-tag { border-bottom-style: solid; border-bottom-color: var(--accent); }
.dsf-phase.live .dsf-phase-tag b { color: var(--accent); }
.dsf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.dsf-step { background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); border-radius: 12px; padding: 14px; display: grid; gap: 6px; align-content: start; font-size: 14px; color: var(--on-dark-soft); min-width: 0; }
.dsf-step .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; border: 2px solid rgba(255, 255, 255, .3); color: var(--on-dark); }
.dsf-step strong { color: #fff; font-family: var(--font-head); font-size: 15px; }
.dsf-step strong em { font-style: normal; font-family: var(--font-body); font-size: 12.5px; color: var(--accent); }
.dsf-step .note { font-size: 12.5px; color: var(--on-dark-muted); }
.dsf-step.done .n { background: rgba(255, 255, 255, .14); border-color: transparent; }
.dsf-step.now { background: rgba(236, 102, 8, .14); border-color: var(--accent); }
.dsf-step.now .n { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; box-shadow: 0 0 0 5px rgba(236, 102, 8, .24); }
.dsf-route-cta { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 18px 20px; }
.dsf-route-cta p { color: var(--on-dark); flex: 1 1 320px; margin: 0; }
.dsf-route-cta b { color: #fff; }
@media (max-width: 900px) {
  .dsf-phases { grid-template-columns: minmax(0, 1fr); }
  .dsf-steps { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .dsf-steps { grid-template-columns: minmax(0, 1fr); } }
.dsf-detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .dsf-detail { grid-template-columns: minmax(0, 1fr); } }
.dsf-main { display: grid; gap: 30px; min-width: 0; }
.dsf-block { display: grid; gap: 10px; }
.dsf-block h2 { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.dsf-block ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.dsf-howto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .dsf-howto { grid-template-columns: minmax(0, 1fr); } }
.dsf-howto > div { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.dsf-howto b { font-family: var(--font-head); font-size: 16px; }
.dsf-howto p { font-size: 15px; color: var(--ink-soft); }
.dsf-link { justify-self: start; color: var(--accent-ink); font-weight: 600; font-size: 15px; padding: 6px 0; min-height: 36px; text-decoration: underline; text-underline-offset: .15em; }
.dsf-nota { font-size: 14px; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: 16px; }
.dsf-panel { border-radius: var(--radius); padding: 26px; display: grid; gap: 18px; position: sticky; top: calc(var(--nav-h) + 16px); }
@media (max-width: 900px) { .dsf-panel { position: static; } }
.dsf-panel .status-pill { justify-self: start; margin: 0; background: rgba(35, 183, 197, .16); color: #8BE3EB; }
.dsf-panel dl { margin: 0; display: grid; gap: 10px; font-size: 15px; }
.dsf-panel dl div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.dsf-panel dt { color: var(--on-dark-soft); }
.dsf-panel dd { margin: 0; font-weight: 600; color: #fff; }
.dsf-panel .dsf-seats-top { color: var(--on-dark-soft); }
.dsf-panel .dsf-bar { background: rgba(255, 255, 255, .14); }
.dsf-nda { display: grid; gap: 6px; font-size: 14px; color: var(--on-dark-soft); }
.dsf-nda a { color: var(--secondary); font-weight: 600; }
/* Mapa de hipótesis clave (North Star: hipótesis clarificadas) */
.dsf-hyp-lead { font-size: 15px; color: var(--ink-soft); }
.dsf-hyps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.dsf-hyp { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: start; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.dsf-hyp-n { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 14px; background: var(--bg-alt); color: var(--ink); }
.dsf-hyp p { margin: 0; font-weight: 500; color: var(--ink); }
.dsf-hyp-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.dsf-dvf, .dsf-est { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.dsf-dvf.dvf-D { background: rgba(35, 183, 197, .12); color: #0E6169; }
.dsf-dvf.dvf-V { background: rgba(236, 102, 8, .1); color: #8F3C02; }
.dsf-dvf.dvf-F { background: rgba(27, 6, 65, .08); color: var(--ink); }
.dsf-est { background: var(--bg-alt); color: var(--ink-soft); }
.est-rechazada .dsf-est { background: #FDECEA; color: #A8231A; }
.est-modificada .dsf-est { background: #FFF4E5; color: #8A4A00; }
.est-agregada .dsf-est { background: #E8F5E9; color: #256B29; }
.est-rechazada p { text-decoration: line-through; text-decoration-color: rgba(168, 35, 26, .5); }
/* Landing: una ciudad por continente (edición activa + Norteamérica, Europa, Asia-Pacífico, África) */
.city-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .city-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .city-grid-5 > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .city-grid-5 { grid-template-columns: 1fr; } }

/* ---- Desafíos: "Cuánto tiempo te lleva" y kit de aprobación interna ---- */
.dsf-time-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 12px; }
@media (max-width: 820px) { .dsf-time-grid { grid-template-columns: minmax(0, 1fr); } }
.dsf-time-g { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.dsf-time-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.dsf-time-h b { color: var(--ink); letter-spacing: 0; text-transform: none; font-size: 15px; }
.dsf-block .dsf-time-g ul { list-style: none; padding: 0; gap: 8px; }
.dsf-time-g li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; font-size: 15px; color: var(--ink-soft); }
.dsf-time-g li .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-alt); color: var(--ink); font-size: 12px; font-weight: 700; }
.dsf-time-g li b { color: var(--ink); white-space: nowrap; font-size: 14px; }
.dsf-time-total { font-size: 15px; color: var(--ink-soft); }
.dsf-time-total b { color: var(--ink); font-size: 18px; }
.dsf-time-more a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: .15em; }
.dsf-slot .dsf-link { font-size: 14px; }

.dsf-kit-lead { max-width: 720px; }
.dsf-kit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.dsf-kit { display: grid; gap: 40px; max-width: 960px; }
.dsf-onepager dl { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 8px 24px; }
.dsf-onepager dl > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dsf-onepager dl > div:last-child { border-bottom: 0; }
.dsf-onepager dt { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.dsf-onepager dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 640px) { .dsf-onepager dl { padding: 4px 16px; } .dsf-onepager dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.dsf-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .dsf-rules { grid-template-columns: minmax(0, 1fr); } }
.dsf-rules li { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 10px; }
.dsf-rules .n { grid-row: span 2; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-ink); color: #fff; font-size: 13px; font-weight: 700; }
.dsf-rules b { font-family: var(--font-head); }
.dsf-rules p { font-size: 15px; color: var(--ink-soft); }
.dsf-kit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dsf-kit-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .dsf-kit-grid, .dsf-kit-grid.three { grid-template-columns: minmax(0, 1fr); } }
.dsf-kit-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 6px; align-content: start; }
.dsf-kit-card h3 { font-size: 18px; }
.dsf-kit-card p { font-size: 15px; color: var(--ink-soft); }
.dsf-kit-step { font-size: 12px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted) !important; }
.dsf-mail { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.dsf-block .btn[data-copy] { justify-self: start; }

@media print {
  .site-nav, .site-footer, .no-print, .skip-link, dialog { display: none !important; }
  body { background: #fff; }
  .dsf-head { padding: 0 0 12px; }
  .dsf-kit { gap: 20px; }
  .dsf-block, .dsf-onepager dl > div, .dsf-rules li { break-inside: avoid; }
}
.dsf-main .dsf-time-grid { grid-template-columns: minmax(0, 1fr); }
.dsf-rules.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .dsf-rules.three { grid-template-columns: minmax(0, 1fr); } }
.dsf-f1 .dsf-rules .n { background: var(--dark, #1B0641); }
.dsf-f1-note { font-size: 14px; color: var(--ink-muted); }
