/* =============================================================
   1. Tokens — Pulso: hormigón claro, tinta, azul cobalto como señal
   Layout: tipografía condensada gigante a la izquierda, tablero de datos a la derecha; horario como grilla
   ============================================================= */
:root {
  --concrete: #ecebe6;
  --slab: #dedcd4;
  --white: #fbfaf7;
  --ink: #141414;
  --graphite: #3b3b38;
  --cobalt: #2338d9;
  --cobalt-soft: #dfe3ff;
  --chalk: #f2f1ec;
  --line: rgba(20, 20, 20, .14);
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

/* 2. Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--concrete); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; line-height: .95; font-weight: 400; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
fieldset { border: 0; padding: 0; min-width: 0; }

/* 3. Utilities */
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: var(--white); z-index: 99; }
.skip-link:focus { top: 1rem; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--cobalt); }
.muted { color: var(--graphite); max-width: 54ch; }
.note { font-size: .82rem; color: var(--graphite); margin-top: 1rem; }

/* 4. Components */
.demo-bar { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; justify-content: center; padding: .55rem max(16px, env(safe-area-inset-right, 0px)) .55rem max(16px, env(safe-area-inset-left, 0px)); background: var(--cobalt); color: #fff; font-size: .82rem; text-align: center; }
.demo-bar a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .8rem 1.4rem; font-weight: 800; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; border: 0; cursor: pointer; transition: transform .25s var(--ease-out), background .25s var(--ease-out); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-line { border: 2px solid var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn.is-off { opacity: .45; pointer-events: none; }

.nav { position: sticky; top: 0; z-index: 20; background: var(--concrete); border-bottom: 2px solid var(--ink); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; flex-wrap: wrap; }
.logo { font-family: var(--display); font-size: 1.6rem; letter-spacing: .04em; }
.logo span { color: var(--cobalt); }
.nav nav { display: flex; gap: 1.3rem; align-items: center; font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.nav nav a:not(.nav-cta) { display: none; }
.nav-cta { background: var(--ink); color: var(--white); padding: .5rem .9rem; }

/* 5. Sections */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: end; }
.hero-grid > * { min-width: 0; }
.status { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .8rem; border: 2px solid var(--ink); font-weight: 700; font-size: .85rem; background: var(--white); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--graphite); }
.status.open .dot { background: #1c9b4b; box-shadow: 0 0 0 4px rgba(28, 155, 75, .2); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(28, 155, 75, 0); } }
.hero h1 { font-family: var(--display); font-size: clamp(3.2rem, 8.5vw, 7rem); overflow-wrap: anywhere; text-transform: uppercase; margin-block: 1.2rem 1.2rem; letter-spacing: .005em; }
.hero h1 span { color: var(--cobalt); }
.lead { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 48ch; color: var(--graphite); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 2px solid var(--ink); background: var(--white); }
.stat { padding: 1rem; border-right: 2px solid var(--ink); display: grid; gap: .2rem; }
.stat:nth-child(3) { border-right: 0; }
.stat b { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--graphite); }
.photo-slot { grid-column: 1 / -1; aspect-ratio: 16 / 10; max-width: 100%; border-top: 2px solid var(--ink); display: grid; place-items: end start; padding: .8rem;
  background: repeating-linear-gradient(135deg, var(--slab) 0 14px, var(--chalk) 14px 28px); }
.photo-slot span { background: var(--ink); color: var(--white); font-size: .75rem; font-weight: 700; padding: .25rem .6rem; }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { display: grid; gap: .6rem; margin-bottom: 2rem; }
.section h2 { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4.4rem); text-transform: uppercase; }
.section.dark { background: var(--ink); color: var(--chalk); }
.section.dark .eyebrow { color: #93a0ff; }
.section.accent { background: var(--cobalt); color: #fff; }
.section.accent .eyebrow, .section.accent .note { color: #dfe3ff; }

.plans { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.plan { background: var(--white); border: 2px solid var(--ink); padding: 1.5rem; display: grid; gap: .7rem; align-content: start; position: relative; }
.plan h3 { font-family: var(--display); font-size: 2rem; text-transform: uppercase; }
.amount { font-family: var(--display); font-size: 2.6rem; font-variant-numeric: tabular-nums; }
.amount small { font-family: var(--sans); font-size: .85rem; color: var(--graphite); }
.plan ul { padding-left: 1.1rem; display: grid; gap: .3rem; color: var(--graphite); }
.plan.featured { background: var(--ink); color: var(--white); }
.plan.featured .amount small, .plan.featured ul { color: #cfcfca; }
.badge { justify-self: start; background: var(--cobalt); color: #fff; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: .25rem .6rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.chip { min-height: 44px; padding: .5rem 1rem; border: 2px solid #5b5b57; background: transparent; color: var(--chalk); font-weight: 700; cursor: pointer; }
.chip.is-on { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.table-scroll { overflow-x: auto; }
.schedule { width: 100%; min-width: 640px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.schedule th, .schedule td { border: 1px solid #3a3a37; padding: .85rem .6rem; text-align: center; font-weight: 700; font-size: .92rem; }
.schedule thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: #b9b9b3; }
.schedule tbody th { font-family: var(--display); font-weight: 400; font-size: 1.2rem; color: #93a0ff; }
.schedule td[data-c] { transition: opacity .25s, background .25s; }
.schedule td[data-c="funcional"] { background: rgba(147, 160, 255, .14); }
.schedule td[data-c="spinning"] { background: rgba(242, 241, 236, .08); }
.schedule td[data-c="box"] { background: rgba(35, 56, 217, .35); }
.schedule td[data-c="pilates"] { background: rgba(242, 241, 236, .16); }
.schedule td.is-dim { opacity: .15; }

.two-col { display: grid; gap: 2rem; align-items: start; }
.two-col > * { min-width: 0; }
.quiz { background: var(--white); border: 2px solid var(--ink); padding: 1.4rem; display: grid; gap: 1.3rem; }
legend { font-weight: 800; margin-bottom: .6rem; }
.options { display: flex; flex-wrap: wrap; gap: .5rem; }
.options label { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem .9rem; border: 2px solid var(--slab); cursor: pointer; font-weight: 600; }
.options label:has(input:checked) { border-color: var(--cobalt); background: var(--cobalt-soft); }
.options input { accent-color: var(--cobalt); }
.result { background: var(--ink); color: var(--white); padding: 1.2rem; display: grid; gap: .4rem; }
.result b { font-family: var(--display); font-weight: 400; font-size: 2rem; text-transform: uppercase; }
.result span { color: #cfcfca; }

.trial { display: grid; gap: 2rem; align-items: start; }
.trial > * { min-width: 0; }
.trial-form { background: var(--white); color: var(--ink); padding: 1.4rem; display: grid; gap: 1rem; border: 2px solid var(--ink); }
.field { display: grid; gap: .35rem; }
.field label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--graphite); }
.field input, .field select { width: 100%; min-height: 48px; padding: .6rem .8rem; border: 2px solid var(--slab); background: var(--chalk); }
.field input:focus, .field select:focus { outline: none; border-color: var(--cobalt); }

.faq { display: grid; gap: 1rem; }
.faq div { border-top: 2px solid var(--ink); padding-top: 1rem; }
.faq dt { font-weight: 800; }
.faq dd { color: var(--graphite); }

.footer { background: var(--ink); color: var(--chalk); padding-block: 2.5rem; }
.footer-inner { display: grid; gap: .4rem; font-size: .9rem; }
.footer a { text-decoration: underline; text-underline-offset: 3px; }

.demo-bar .back { color: inherit; font-weight: 700; text-decoration: none; padding: .2rem .7rem; border: 1px solid currentColor; border-radius: 999px; margin-right: auto; }

/* 8. Responsive */
@media (min-width: 720px) {
  .nav nav a:not(.nav-cta) { display: inline; }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faq { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 7fr 5fr; }
  .two-col, .trial { grid-template-columns: 5fr 6fr; gap: 4rem; }
}

/* 9. Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .status.open .dot { animation: none; }
}
