/* Choreo Studio · landing
   Paleta: piso de estudio (gris frío claro), tinta, escenario oscuro (el del editor)
   y los colores de cinta de marcaje de los bailarines, usados solo en las fichas. */

@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --floor: #eceef2;
  --floor-2: #e2e5eb;
  --paper: #f7f8fa;
  --ink: #16171c;
  --ink-2: #4a4e59;
  --ink-3: #6b7080;
  --line: #d3d7df;
  --stage: #141419;
  --stage-2: #1d1d24;
  --stage-line: #2c2c36;
  --stage-text: #ecebe6;
  --stage-muted: #a3a3ad;
  --cue: #2563eb;
  --cue-hover: #1d4fd6;
  --cue-soft: #dbe5fd;
  --focus: #2563eb;

  --display: "Bricolage", "Inter", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1280px;
  --gutter: clamp(18px, 4vw, 40px);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--floor);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 12px; }
.muted { color: var(--ink-3); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--cue); color: #fff; }
.btn-primary:hover { background: var(--cue-hover); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--floor); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 18px; }
.btn-block { width: 100%; }

/* Encabezado */
.top {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(236, 238, 242, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 26px; }
.brand-mark circle:nth-child(1) { fill: #27d8e8; }
.brand-mark circle:nth-child(2) { fill: #ff3b8d; }
.brand-mark circle:nth-child(3) { fill: #ffd629; }
.top-nav { display: flex; gap: 28px; margin-left: auto; }
.top-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.top-nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--r-sm); position: relative; }
.menu-bars, .menu-bars::before, .menu-bars::after { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.menu-bars { top: 21px; }
.menu-bars::before, .menu-bars::after { content: ""; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  font-weight: 720;
  letter-spacing: -0.022em;
  max-width: 13ch;
}
.lead { margin-top: 28px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

.mini-stage { margin: 0; background: var(--stage); border-radius: var(--r-lg); padding: 18px 18px 20px; box-shadow: 0 30px 60px -30px rgba(20, 22, 40, .55); }
.mini-floor { width: 100%; height: auto; display: block; }
.mini-floor .floor { fill: #0c0c10; stroke: var(--stage-line); }
.mini-floor .grid path { stroke: #1f1f28; stroke-width: 1; fill: none; }
.mini-floor .center-line { stroke: #34343f; stroke-dasharray: 4 5; }
.mini-floor .front-line { stroke: var(--cue); stroke-width: 2; }
.mini-floor .floor-label { fill: #7c7c88; font: 600 10px/1 var(--body); letter-spacing: .12em; }
.token circle { stroke: rgba(0, 0, 0, .35); stroke-width: 1.5; }
.token text { font: 800 11px/1 var(--body); fill: #121216; }
.token { transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
.formation-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.formation-picker button {
  min-height: 38px; padding: 0 15px; border-radius: 999px;
  background: var(--stage-2); border: 1px solid var(--stage-line); color: var(--stage-muted);
  font-size: 14px; font-weight: 500; transition: background-color .15s, color .15s, border-color .15s;
}
.formation-picker button:hover { color: var(--stage-text); border-color: #45454f; }
.formation-picker button[aria-pressed="true"] { background: var(--stage-text); color: var(--stage); border-color: var(--stage-text); }
.mini-stage figcaption { margin-top: 14px; font-size: 13.5px; color: var(--stage-muted); line-height: 1.5; }
.mini-stage :focus-visible { outline-color: #8fb0ff; }

/* Secciones */
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.06; letter-spacing: -0.02em; }
.section-head p { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 38em; }

/* Recorrido (banda oscura: el escenario) */
.tour { background: var(--stage); color: var(--stage-text); padding: clamp(64px, 9vw, 120px) 0; }
.section-head-dark p { color: var(--stage-muted); }
.tour-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--stage-2); border: 1px solid var(--stage-line); border-radius: 999px; margin-bottom: 22px; }
.tour-tabs button { min-height: 40px; padding: 0 18px; border: 0; background: transparent; color: var(--stage-muted); border-radius: 999px; font-weight: 600; font-size: 15px; }
.tour-tabs button:hover { color: var(--stage-text); }
.tour-tabs button[aria-selected="true"] { background: var(--stage-text); color: var(--stage); }
.tour :focus-visible { outline-color: #8fb0ff; }
.tour-caption { margin-top: 18px; color: var(--stage-muted); font-size: 15.5px; max-width: 60em; }

/* Capturas */
.shot { display: block; padding: 0; border: 0; background: none; width: 100%; text-align: left; border-radius: var(--r-md); overflow: hidden; }
.shot img { width: 100%; }
.zoomable { cursor: zoom-in; }
.shot-frame { border: 1px solid var(--stage-line); background: #0c0c10; padding: 6px; border-radius: var(--r-lg); }
.shot-frame img { border-radius: calc(var(--r-lg) - 6px); }
.steps .shot { box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 24px 48px -28px rgba(20, 22, 40, .45); border: 1px solid #c9ced8; background: var(--stage); }

/* Pasos (secuencia real) */
.steps { padding: clamp(72px, 10vw, 136px) 0; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(64px, 9vw, 120px); }
.step { display: grid; gap: 32px; }
.step-text { max-width: 34em; }
.step-n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font: 800 17px/1 var(--body); color: #111; margin-bottom: 18px;
}
.step:nth-child(1) .step-n { background: #27d8e8; }
.step:nth-child(2) .step-n { background: #ff3b8d; }
.step:nth-child(3) .step-n { background: #ffd629; }
.step:nth-child(4) .step-n { background: #00e58b; }
.step:nth-child(5) .step-n { background: #ff7b2f; }
.step h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.025em; }
.step-text > p { margin-top: 14px; color: var(--ink-2); }
.step-text > p.step-meta { margin-top: 16px; font-size: 14.5px; color: var(--ink-3); padding-left: 14px; border-left: 2px solid var(--line); }
.step-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.step-flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.step-flip .step-text { order: 2; }
.shot-stack { position: relative; min-height: 470px; padding-top: 70px; }
.stack-back { width: min(100%, 660px); }
.stack-front { position: absolute; top: 0; right: 0; width: 240px; box-shadow: 0 30px 60px -20px rgba(10, 12, 30, .55) !important; }
.shot-small { max-width: 519px; justify-self: start; }

/* Local-first */
.local { padding: clamp(56px, 7vw, 96px) 0; background: var(--paper); border-block: 1px solid var(--line); }
.local-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.local h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.03em; max-width: 14ch; }
.local p { font-size: 18px; color: var(--ink-2); }
.local p + p { margin-top: 16px; font-size: 16px; }

/* Público */
.audience { padding: clamp(56px, 7vw, 96px) 0; }
.audience-title { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.02em; margin-bottom: 28px; }
.audience-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.audience-list li { padding: 22px 24px 0 0; color: var(--ink-2); font-size: 15.5px; }
.audience-list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.audience-list strong { display: block; color: var(--ink); font: 700 19px/1.2 var(--display); margin-bottom: 8px; letter-spacing: -0.01em; }

/* Planes */
.plans { padding: clamp(72px, 9vw, 120px) 0; background: var(--floor-2); }
.plans-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; max-width: none; flex-wrap: wrap; }
.plans-head > div:first-child { max-width: 700px; }
.currency { display: inline-flex; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.currency button { min-height: 36px; padding: 0 16px; border: 0; background: transparent; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-3); }
.currency button[aria-pressed="true"] { background: var(--ink); color: var(--floor); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; }
.plan h3 { font: 800 15px/1 var(--body); letter-spacing: .06em; }
.plan-for { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; min-height: 3em; }
.price { margin: 18px 0 22px; display: flex; align-items: baseline; gap: 8px; }
.price .amount { font: 750 46px/1 var(--display); letter-spacing: -0.03em; }
.price .per { color: var(--ink-3); font-size: 14.5px; }
.plan ul { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; font-size: 15.5px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--cue); border-bottom: 2px solid var(--cue); transform: rotate(-45deg); }
.plan-featured { background: var(--stage); color: var(--stage-text); border-color: var(--stage); }
.plan-featured .plan-for, .plan-featured .price .per { color: var(--stage-muted); }
.plan-featured ul { border-top-color: var(--stage-line); }
.plan-featured li::before { border-color: #7aa2ff; }
.plan-featured :focus-visible { outline-color: #8fb0ff; }
.plan-soon { margin-top: 22px; padding: 14px 16px; background: var(--floor); border-radius: var(--r-sm); font-size: 14px; color: var(--ink-3); }

/* FAQ */
.faq { padding: clamp(72px, 9vw, 120px) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); }
.faq h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.03em; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 600 18px/1.35 var(--body); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list details p { padding: 0 44px 24px 0; color: var(--ink-2); max-width: 40em; }

/* Cierre */
.closing { background: var(--stage); color: var(--stage-text); padding: clamp(72px, 10vw, 128px) 0; }
.closing-inner { text-align: center; display: grid; justify-items: center; gap: 20px; }
.closing h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.035em; max-width: 16ch; }
.closing p { color: var(--stage-muted); font-size: 18px; margin-bottom: 12px; }
.closing :focus-visible { outline-color: #8fb0ff; }

/* Pie */
.foot { padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); background: var(--floor); }
.foot-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.foot .muted { font-size: 14.5px; margin-top: 10px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14.5px; }
.foot-nav a { color: var(--ink-2); text-decoration: none; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 14, .92); display: grid; place-items: center; padding: calc(56px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
.lightbox[hidden] { display: none; }
.lightbox-dialog { max-width: min(1600px, 100%); max-height: 100%; overflow: auto; }
.lightbox img { max-height: calc(100vh - 100px); width: auto; margin: 0 auto; border-radius: var(--r-md); }
.lightbox-close { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #3a3a44; background: #1d1d24; display: grid; place-items: center; }
.lightbox-close svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2; fill: none; }
.lightbox :focus-visible { outline-color: #8fb0ff; }

/* Legales y 404 */
.doc { padding: clamp(48px, 7vw, 88px) 0 96px; }
.doc-inner { max-width: 720px; }
.doc h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.doc .updated { margin-top: 14px; color: var(--ink-3); font-size: 15px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; }
.doc .back { margin-top: 48px; }
.notfound { min-height: 70vh; display: grid; align-content: center; gap: 18px; }
.notfound h1 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.035em; line-height: 1.02; max-width: 14ch; }
.notfound p { color: var(--ink-2); font-size: 18px; margin-bottom: 8px; }

/* Responsivo */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .mini-stage { max-width: 640px; }
  .step-split, .step-flip { grid-template-columns: 1fr; }
  .step-flip .step-text { order: 0; }
  .audience-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience-list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .audience-list li { padding-bottom: 20px; }
  .plan-grid { grid-template-columns: 1fr; max-width: 560px; }
  .faq-grid, .local-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top-inner { height: 60px; gap: 12px; }
  .menu-toggle { display: block; }
  .top-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--floor); border-bottom: 1px solid var(--line);
  }
  .top-nav.open { display: flex; }
  .top-nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .top-actions { margin-left: auto; }
  .shot-stack { min-height: 0; padding-top: 0; display: grid; gap: 16px; }
  .stack-front { position: static; width: min(100%, 300px); }
  .audience-list { grid-template-columns: 1fr; }
  .audience-list li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .foot-inner { grid-template-columns: 1fr; }
  .tour-tabs button { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.top-actions-end { margin-left: auto; }

/* Ajustes finos */
.btn, .brand { white-space: nowrap; }
.zoomable { position: relative; }
@media (hover: none) {
  .zoomable::after {
    content: ""; position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%;
    background: rgba(20, 20, 26, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  }
}
@media (max-width: 420px) {
  .brand { font-size: 17px; }
  .top-actions .btn-sm { padding: 0 14px; font-size: 14px; }
}
@media (max-width: 760px) {
  .lightbox { place-items: center start; }
  .lightbox-dialog { max-width: 100vw; overflow: auto; -webkit-overflow-scrolling: touch; }
  .lightbox img { max-width: none; max-height: none; height: min(72vh, 900px); width: auto; }
}

/* Franja de datos bajo el hero */
.proof { border-block: 1px solid var(--line); background: var(--paper); }
.proof-list { list-style: none; margin: 0 auto; padding: 18px var(--gutter); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; font-size: 14.5px; color: var(--ink-3); }
.proof-list strong { display: block; color: var(--ink); font: 700 17px/1.25 var(--display); letter-spacing: -0.01em; }
@media (max-width: 760px) { .proof-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Aviso de revisión en las páginas legales */
.doc .review-note { margin-top: 20px; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--cue); border-radius: var(--r-sm); background: var(--paper); font-size: 14.5px; }
