/* Brío Estudio · demo de gimnasio (Fuerte y Claro)
   Identidad: camiseta deportiva — azul cobalto + naranja voltaje sobre crema. */
:root {
  --cream: #fbf7f0;
  --cream-2: #f2ebdf;
  --ink: #0b0b3d;
  --ink-2: #3b3d63;
  --cobalt: #1b1bb3;
  --cobalt-d: #11117a;
  --hot: #ff5a1f;
  --hot-d: #d9430e;
  --line: #e2d8c8;
  --ok: #0f8a5f;
  --bad: #c81e4a;
  --r: 14px;
  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bar-h: 34px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 70px); }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.55 var(--body); padding-top: var(--bar-h); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--cobalt); }
h1, h2, h3 { font-family: var(--display); line-height: .95; margin: 0; letter-spacing: .005em; text-transform: uppercase; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 2px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { left: 8px; top: calc(var(--bar-h) + 8px); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Barra de demo */
.demobar { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--bar-h); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 12px;
  background: #111; color: #eee; font: 600 12.5px/1.2 var(--body); white-space: nowrap; overflow: hidden; }
.demobar span { overflow: hidden; text-overflow: ellipsis; }
.demobar a { color: #ffd166; flex: none; }
@media (max-width: 520px) {
  :root { --bar-h: 46px; }
  .demobar { flex-wrap: wrap; align-content: center; white-space: normal; text-align: center; gap: 2px 10px; }
}

/* Cabecera */
.top { position: sticky; top: var(--bar-h); z-index: 40; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cobalt); font: 900 26px/1 var(--display); text-transform: uppercase; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo span { color: var(--ink); }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { font: 700 16px/1 var(--cond); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { background: var(--cream-2); }
.top .btn { margin-left: auto; }
@media (min-width: 900px) { .nav { display: flex; } .top .btn { margin-left: 8px; } }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 700 17px/1 var(--cond); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-hot { background: var(--hot); color: #fff; box-shadow: 0 4px 0 var(--hot-d); }
.btn-hot:hover { background: #ff6a33; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 19px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--cobalt); font: 600 15px var(--body); text-decoration: underline; cursor: pointer; justify-self: start; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 40px 0 56px;
  background: linear-gradient(115deg, transparent 0 62%, var(--cream-2) 62% 100%); }
.hero-in { display: grid; gap: 28px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 700 15px var(--cond); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 0 rgba(255,90,31,.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(255,90,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,31,0); } }
.hero h1 { font-size: clamp(54px, 15vw, 116px); font-weight: 900; color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--cobalt); }
.hero h1 .hl { color: #fff; background: var(--hot); padding: 0 .12em; display: inline-block; transform: skewX(-8deg); }
.lead { font-size: 19px; max-width: 34em; color: var(--ink-2); margin: 18px 0 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 15px; color: var(--ink-2); margin: 14px 0 0; }
.hero-art { position: relative; max-width: 420px; justify-self: center; width: 100%; }
.hero-svg { display: block; width: 100%; height: auto; }
.kb { transform-origin: 210px 110px; animation: swing 3.2s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.ekg { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.6s ease-out .3s infinite; }
@keyframes draw { 60%, 100% { stroke-dashoffset: 0; } }
.sticker { position: absolute; right: 2%; top: 4%; width: 108px; height: 108px; border-radius: 50%; background: var(--hot); color: #fff; display: grid; place-content: center; text-align: center;
  transform: rotate(12deg); box-shadow: 0 6px 0 var(--hot-d); font: 700 14px/1.05 var(--cond); text-transform: uppercase; }
.sticker b { font: 900 30px/1 var(--display); }
@media (min-width: 900px) {
  .hero { padding: 64px 0 80px; }
  .hero-in { grid-template-columns: 1.15fr .85fr; }
}

/* Ticker */
.ticker { background: var(--ink); color: #fff; overflow: hidden; border-block: 4px solid var(--hot); }
.ticker-track { display: flex; width: max-content; animation: tick 30s linear infinite; }
.ticker span { font: 900 30px/1 var(--display); text-transform: uppercase; padding: 14px 22px; display: flex; align-items: center; gap: 22px; }
.ticker span::after { content: ""; width: 14px; height: 14px; background: var(--c); transform: rotate(45deg); }
@keyframes tick { to { transform: translateX(-50%); } }

/* Secciones */
.sec { padding: 64px 0; }
.sec-tint { background: var(--cream-2); }
.sec-dark { background: var(--ink); color: #fff; }
.sec-blue { background: var(--cobalt); color: #fff; }
.sec-head { margin-bottom: 26px; }
.eyebrow { margin: 0 0 8px; font: 700 15px var(--cond); color: var(--hot); text-transform: uppercase; letter-spacing: .14em; }
.sec-blue .eyebrow { color: #ffd166; }
.sec h2 { font-size: clamp(42px, 9vw, 72px); font-weight: 900; }
.sec-sub { margin: 10px 0 0; color: var(--ink-2); max-width: 40em; }
.sec-dark .sec-sub, .sec-dark .fine { color: #c9c9e8; }
.fine { font-size: 14px; color: var(--ink-2); margin: 20px 0 0; }

/* Filtros y días */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: thin; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink);
  font: 700 15px/1 var(--cond); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.chip i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); transform: rotate(45deg); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.daytabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; }
.daytab { flex: none; display: grid; justify-items: center; gap: 2px; min-width: 62px; padding: 8px 10px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font-family: var(--cond); }
.daytab small { font: 700 12px var(--cond); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.daytab b { font: 900 26px/1 var(--display); }
.daytab[aria-selected="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.daytab[aria-selected="true"] small { color: #cfd0ff; }

/* Horario */
.sched { display: grid; gap: 12px; }
.day-col { display: none; gap: 10px; align-content: start; }
.day-col.is-on { display: grid; }
.day-col h3 { display: none; font-size: 24px; padding-bottom: 8px; border-bottom: 3px solid var(--ink); }
.day-col h3 small { display: block; font: 600 14px var(--cond); letter-spacing: .06em; color: var(--ink-2); }
.day-col .empty { color: var(--ink-2); font-size: 15px; padding: 12px; border: 2px dashed var(--line); border-radius: var(--r); margin: 0; }
.cls { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; width: 100%; text-align: left; padding: 14px 14px 14px 18px; border-radius: var(--r);
  background: #fff; border: 2px solid var(--line); color: var(--ink); font: inherit; cursor: pointer; overflow: hidden; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.cls::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--c); }
.cls:hover:not([disabled]) { border-color: var(--c); transform: translateY(-2px); box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 30%, transparent); }
.cls .time { grid-row: span 3; font: 900 30px/1 var(--display); min-width: 3.1em; }
.cls .time small { display: block; font: 700 13px var(--cond); color: var(--ink-2); }
.cls .nm { font: 900 22px/1 var(--display); text-transform: uppercase; color: var(--c); }
.cls .meta { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.cls .spots { justify-self: start; margin-top: 4px; font: 700 13px/1 var(--cond); text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; border-radius: 999px; background: #e9f6f0; color: var(--ok); }
.cls .spots.low { background: #fff0e8; color: var(--hot-d); }
.cls.is-full .spots, .cls.is-past .spots { background: #f1ecef; color: var(--bad); }
.cls[disabled] { cursor: not-allowed; opacity: .62; }
.cls[disabled]:hover { transform: none; }
.sched-empty { padding: 20px; border: 2px dashed var(--line); border-radius: var(--r); color: var(--ink-2); }
@media (min-width: 1000px) {
  .sec-head { margin-bottom: 32px; }
  #horario .daytabs { display: none; }
  .sched { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
  .day-col, .day-col.is-on { display: grid; }
  .day-col h3 { display: block; }
  .cls { grid-template-columns: 1fr; padding: 12px 10px 12px 14px; gap: 3px; }
  .cls .time { grid-row: auto; font-size: 24px; }
  .cls .time small { display: inline; margin-left: 4px; }
  .cls .nm { font-size: 19px; }
  .cls .meta { font-size: 13px; }
  .cls .spots { font-size: 12px; padding: 5px 8px; }
}

/* Tipos */
.types { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.type { background: #fff; border-radius: var(--r); padding: 22px; border-top: 8px solid var(--c); }
.type h3 { font-size: 32px; color: var(--c); }
.type p { margin: 10px 0 0; color: var(--ink-2); }
.inten { display: flex; align-items: center; gap: 5px; font: 700 13px var(--cond); text-transform: uppercase; letter-spacing: .06em; }
.inten b { width: 22px; height: 8px; border-radius: 4px; background: var(--cream-2); }
.inten b.on { background: var(--c); }
.inten span { margin-left: 6px; }

/* Planes */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.plan { position: relative; display: grid; gap: 14px; background: #17175a; border: 2px solid #2a2a7a; border-radius: 18px; padding: 24px; }
.plan.is-hot { background: var(--cobalt); border-color: var(--hot); box-shadow: 0 8px 0 var(--hot); }
.plan-tag { position: absolute; top: -14px; left: 20px; margin: 0; background: var(--hot); color: #fff; font: 700 13px/1 var(--cond); text-transform: uppercase; letter-spacing: .08em; padding: 7px 12px; border-radius: 999px; }
.plan h3 { font-size: 34px; }
.price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price b { font: 900 46px/1 var(--display); color: #ffd166; }
.price span { font: 700 15px var(--cond); text-transform: uppercase; letter-spacing: .06em; color: #c9c9e8; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan li { padding-left: 24px; position: relative; font-size: 15.5px; }
.plan li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 8px; border-left: 3px solid var(--hot); border-bottom: 3px solid var(--hot); transform: rotate(-45deg); }

/* Coaches */
.coaches { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.coach { display: grid; grid-template-columns: 76px 1fr; gap: 16px; background: #fff; border: 2px solid var(--line); border-radius: var(--r); padding: 18px; }
.avatar { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; font: 900 32px/1 var(--display); color: #fff; transform: rotate(-4deg); }
.a0 { background: var(--hot); } .a1 { background: var(--cobalt); } .a2 { background: #0f9d7a; } .a3 { background: #e0245e; } .a4 { background: #b07800; }
.coach h3 { font-size: 26px; }
.coach p { margin: 4px 0 0; font-size: 15.5px; color: var(--ink-2); }
.coach .role { font: 700 14px var(--cond); text-transform: uppercase; letter-spacing: .08em; color: var(--hot-d); }
.coach .spec { font-weight: 600; color: var(--ink); }

/* Estudio */
.two { display: grid; gap: 40px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 56px; } }
.facil { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.facil li { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; background: #fff; border-radius: 12px; padding: 14px; }
.facil svg { grid-row: span 2; width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--cobalt); fill: #fff; color: #fff; }
.facil b { font: 700 18px/1.1 var(--cond); text-transform: uppercase; letter-spacing: .03em; }
.facil span { font-size: 14.5px; color: var(--ink-2); }
.rules { margin: 0; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 10px; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; background: #fff; border-radius: 12px; padding: 12px 14px; }
.rules li::before { content: counter(r, decimal-leading-zero); font: 900 28px/1 var(--display); color: var(--hot); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 2px solid var(--line); border-radius: var(--r); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; position: relative; font: 700 19px/1.25 var(--cond); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 900 30px/1 var(--display); color: var(--hot); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--ink-2); }

/* Visítanos */
.hours { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 6px; }
.hours li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.hours b { font: 700 18px var(--cond); text-transform: uppercase; letter-spacing: .04em; }
.place { margin: 0 0 22px; }
.map { margin: 0; border-radius: 18px; overflow: hidden; background: #14148f; border: 3px solid rgba(255,255,255,.2); }
.map svg { display: block; width: 100%; height: auto; }
.map p { margin: 0; padding: 12px 16px; font-size: 14px; color: #dcdcff; }

.foot { background: var(--ink); color: #c9c9e8; padding: 28px 0; font-size: 14.5px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot p { margin: 0; }
.foot a { color: #ffd166; }

/* Hojas (dialog) */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 92vh; border-radius: 22px 22px 0 0; background: var(--cream); color: var(--ink); box-shadow: 0 -10px 40px rgba(0,0,0,.25); }
.sheet::backdrop { background: rgba(11,11,61,.6); }
.sheet[open] { animation: up .28s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 640px) { .sheet { margin: auto; border-radius: 22px; } }
.sheet-in { position: relative; padding: 24px 20px 26px; display: grid; gap: 14px; }
.sheet h2 { font-size: 36px; padding-right: 40px; }
.step { display: grid; gap: 14px; }
.step[hidden] { display: none; }
.x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--cream-2); font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
.sheet label { display: grid; gap: 6px; font: 700 15px var(--cond); text-transform: uppercase; letter-spacing: .05em; }
.sheet label small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-2); }
.sheet input:not([type=checkbox]), .sheet textarea { font: 500 17px var(--body); padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); width: 100%; }
.sheet input:focus, .sheet textarea:focus { outline: none; border-color: var(--cobalt); }
.sheet .check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; text-transform: none; letter-spacing: 0; font: 500 16px var(--body); background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; }
.sheet .check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--hot); }
.sheet .check small { display: block; font-size: 14px; }
.summary { background: #fff; border-left: 6px solid var(--c, var(--hot)); border-radius: 12px; padding: 12px 14px; }
.summary b { display: block; font: 900 24px/1.05 var(--display); text-transform: uppercase; color: var(--c, var(--ink)); }
.summary span { display: block; font-size: 15px; color: var(--ink-2); }
.err { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fde8ee; color: var(--bad); font-weight: 600; }
.picklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 52vh; overflow-y: auto; }
.done-badge { margin: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-size: 30px; font-weight: 900; }
.wa-box { display: grid; gap: 10px; background: #fff; border: 2px dashed var(--line); border-radius: 14px; padding: 14px; }
.wa-box p { margin: 0; font-size: 15px; color: var(--ink-2); }
.wa-msg { margin: 0; padding: 12px 14px; border-radius: 12px 12px 12px 2px; background: #dcf8c6; color: #111; font-size: 15.5px; white-space: pre-wrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ekg { stroke-dashoffset: 0; }
  .ticker-track { flex-wrap: wrap; width: auto; height: 58px; overflow: hidden; justify-content: center; }
}

/* Pago en línea de planes: botón principal + enlace secundario para dudas */
.plan > a.btn { text-align: center; text-decoration: none; }
.plan-ask { font: 600 14px/1.3 var(--body, inherit); background: none; border: 0; color: inherit; opacity: .8; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 0 0; justify-self: center; }
.plan-ask:hover { opacity: 1; }

/* Fotos de muestra (Unsplash): hero circular y estudio */
.hero-photo { aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 10px solid var(--cobalt); box-shadow: 14px 14px 0 var(--hot); }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.studio-photos { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-bottom: 8px; }
.studio-photos figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.studio-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.studio-photos figcaption { position: absolute; left: 10px; bottom: 10px; background: var(--hot); color: #fff; font: 700 15px/1 var(--cond); text-transform: uppercase; letter-spacing: .04em; padding: 7px 10px; border-radius: 8px; }
@media (min-width: 900px) { .studio-photos { grid-template-columns: repeat(4, 1fr); } }
.studio-photos + .fine { margin-bottom: 40px; }

/* Logo (SVG en img/logo.svg) */
.logo-img { display: block; flex: none; width: 38px; height: 38px; }
