/* Leslie Pilates
   Paleta: el café y el naranja de Senda Pilates (donde Leslie da clases) sobre blanco.
   Tipografía: Bricolage Grotesque (títulos, en minúsculas) + Hanken Grotesk (texto). */
:root {
  --white: #ffffff;
  --linen: #faf6f2;
  --sand: #efe5db;
  --espresso: #2b1a12;
  --brown: #5c3d2b;      /* café Senda */
  --orange: #cf5a22;     /* naranja Senda, para fondos y detalles grandes */
  --orange-ink: #c2511c; /* un poco más oscuro, para botones con texto blanco (contraste AA) */
  --muted: #7d6a5e;
  --line: #e6dcd2;
  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --text: "Hanken Grotesk", system-ui, sans-serif;
  --r-lg: 28px;
  --r-md: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--espresso); font: 400 1.0625rem/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2.5px solid var(--orange-ink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 0.98; font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.15; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: 0 1.6rem; border-radius: 999px; border: 0; background: var(--orange-ink); color: #fff; font: 600 1rem/1 var(--text); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--brown); }
.btn:active { transform: scale(.98); }
.btn.dark { background: var(--espresso); }
.btn.dark:hover { background: var(--brown); }
.btn.light { background: #fff; color: var(--espresso); }
.btn.light:hover { background: var(--sand); }
.btn.line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.line:hover { background: rgb(43 26 18 / .06); }
.btn.sage { background: var(--orange-ink); }
.btn[disabled] { opacity: .6; cursor: wait; }
.text-link { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; text-decoration-color: var(--orange); }
.text-link:hover { color: var(--orange-ink); }

/* ---------- barra superior ---------- */
.promo { background: var(--espresso); color: #f3e7dc; font-size: .9rem; text-align: center; padding: .55rem 16px; }
.promo a { color: #fff; font-weight: 600; text-underline-offset: 3px; }

/* ---------- header ---------- */
header.top { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / .9); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
header.top.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: baseline; gap: .35rem; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.05em; color: var(--espresso); }
.logo small { font-family: var(--text); font-weight: 500; font-size: .8rem; letter-spacing: 0; color: var(--orange-ink); }
.logo-dot { display: none; }
.nav-links { display: flex; gap: 1.8rem; align-items: center; font-size: .97rem; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--espresso); }
.nav-links .btn { min-height: 44px; padding: 0 1.25rem; font-size: .95rem; }
@media (max-width: 820px) { .nav-links .hide-sm { display: none; } .nav-links { gap: 1rem; } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem); }
.hero-kicker { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .95rem; color: var(--brown); margin-bottom: 1.6rem; }
.hero-kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.hero h1 { font-size: clamp(3.3rem, 8.2vw, 7.4rem); font-weight: 800; letter-spacing: -0.05em; line-height: .9; }
.hero h1 .soft { color: var(--brown); font-weight: 500; }
.hero-lead { font-size: 1.2rem; max-width: 36ch; margin: 1.8rem 0 2.2rem; color: #4a3428; }
.hero-actions { display: flex; gap: 1.2rem 1.6rem; flex-wrap: wrap; align-items: center; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin-top: 2.8rem; border-top: 1px solid var(--line); }
.facts div { padding: 1.1rem 1.4rem 0 0; }
.facts div + div { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--display); font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1.1; }
.facts span { font-size: .9rem; color: var(--muted); }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 60%; border-radius: var(--r-lg); background: var(--sand); }
.sticker { position: absolute; top: -22px; left: -22px; width: 124px; height: 124px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; align-content: center; text-align: center; font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.05; letter-spacing: -0.02em; transform: rotate(-10deg); box-shadow: 0 10px 30px rgb(207 90 34 / .35); padding: 1rem; }
.sticker b { display: block; font-size: 1.9rem; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .hero-media { order: -1; margin: 0 0 .5rem; }
  .hero-media img { aspect-ratio: 5/4; object-position: center 72%; }
  .sticker { top: auto; bottom: -26px; left: auto; right: 14px; width: 104px; height: 104px; font-size: .92rem; }
  .sticker b { font-size: 1.6rem; }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
  .facts div { padding-right: .7rem; }
  .facts div + div { padding-left: .7rem; }
  .facts strong { font-size: 1.15rem; }
  .facts span { font-size: .8rem; display: block; line-height: 1.3; margin-top: .2rem; }
}

/* ---------- marquee (único movimiento automático) ---------- */
.marquee { background: var(--orange); color: #fff; overflow: hidden; padding: 1.1rem 0; }
.marquee-track { display: flex; width: max-content; }
.marquee span { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -0.03em; white-space: nowrap; display: inline-flex; align-items: center; }
.marquee span::after { content: ""; width: .42em; height: .42em; border-radius: 50%; background: #f6c7b0; margin: 0 1.1em; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: slide 38s linear infinite; }
  @keyframes slide { to { transform: translateX(-50%); } }
}

/* ---------- secciones ---------- */
section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.linen { background: var(--linen); }
.dark { background: var(--espresso); color: #f6ece3; }
.dark .muted { color: #c9b3a4; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head p { max-width: 40ch; font-size: 1.1rem; }

/* ---------- clase de la semana ---------- */
.featured { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--linen); border-radius: var(--r-lg); overflow: hidden; }
.featured-media { position: relative; min-height: 380px; background: var(--sand); }
.featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-media .badge { position: absolute; left: 1.2rem; top: 1.2rem; background: #fff; border-radius: 999px; padding: .45rem .9rem; font-weight: 600; font-size: .88rem; }
.featured-body { padding: clamp(1.8rem, 4vw, 3.2rem); display: flex; flex-direction: column; justify-content: center; }
.featured-body h3 { font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.04em; line-height: .95; margin-bottom: 1rem; }
.featured-body > p { color: #4a3428; font-size: 1.1rem; max-width: 40ch; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.6rem; margin: 1.8rem 0 2rem; padding: 1.4rem 0; border-block: 1px solid var(--line); }
.specs dt { font-size: .85rem; color: var(--muted); }
.specs dd { font-weight: 600; }
.featured-body .btn { align-self: flex-start; }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } .featured-media { min-height: 0; aspect-ratio: 5/4; } }

/* ---------- biblioteca ---------- */
.filters { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.chip { border: 0; background: #fff; border-radius: 999px; padding: .55rem 1.05rem; font: 500 .93rem var(--text); cursor: pointer; color: var(--brown); box-shadow: inset 0 0 0 1px var(--line); }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--brown); }
.chip.on { background: var(--espresso); color: #fff; box-shadow: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem 1.3rem; }
.grid.shelf { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 3 * 1.3rem) / 4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1.2rem; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.grid.shelf .card { scroll-snap-align: start; }
@media (max-width: 960px) { .grid.shelf { grid-auto-columns: 42%; } }
@media (max-width: 600px) { .grid.shelf { grid-auto-columns: 74%; } }
.card { background: none; border: 0; padding: 0; text-align: left; color: inherit; cursor: pointer; display: flex; flex-direction: column; }
.thumb { aspect-ratio: 4/5; position: relative; border-radius: var(--r-md); overflow: hidden; display: grid; place-items: center; background: var(--sand); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.card:hover .thumb img, .card:focus-visible .thumb img { transform: scale(1.045); }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(43 26 18 / .38), transparent 42%); }
.thumb .play, .thumb .dur, .thumb .tag { z-index: 1; }
.thumb .play { width: 58px; height: 58px; border-radius: 50%; background: rgb(255 255 255 / .95); display: grid; place-items: center; transform: scale(.9); opacity: 0; transition: opacity .25s, transform .25s; }
.card:hover .play, .card:focus-visible .play, .locked .play { opacity: 1; transform: none; }
.thumb .play svg { width: 18px; margin-left: 3px; }
.locked .play svg { margin-left: 0; width: 17px; }
.thumb .dur { position: absolute; right: .8rem; bottom: .8rem; background: rgb(255 255 255 / .95); color: var(--espresso); font-weight: 600; font-size: .82rem; padding: .3rem .65rem; border-radius: 999px; }
.thumb .tag { position: absolute; left: .8rem; top: .8rem; background: rgb(255 255 255 / .95); font-size: .8rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; }
.thumb .tag.free { background: var(--orange-ink); color: #fff; }
.card .body { padding: 1rem .15rem 0; }
.card .meta { font-size: .85rem; color: var(--orange-ink); font-weight: 600; }
.card h3 { margin: .25rem 0 .35rem; font-size: 1.35rem; }
.card p { color: var(--muted); font-size: .94rem; line-height: 1.5; }

/* ---------- en vivo ---------- */
.live { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(200px, 17vw)); gap: 1rem; }
.live figure { border-radius: var(--r-md); overflow: hidden; background: var(--sand); }
.live img { width: 100%; height: 100%; object-fit: cover; }
.live .a { grid-row: span 2; }
.live .b { grid-column: span 2; }
.live .c { grid-row: span 2; }
.live .a img { object-position: center 70%; }
.live .c img { object-position: center 70%; }
.live .d img, .live .e img { object-position: center 55%; }
@media (max-width: 760px) {
  .live { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 180px; }
  .live .a, .live .c { grid-row: span 2; }
  .live .b { grid-column: span 2; }
}

/* ---------- reseña ---------- */
.review { max-width: 980px; }
.stars { color: var(--orange); font-size: 1.4rem; letter-spacing: .18em; margin-bottom: 1.4rem; }
.review blockquote { font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.12; letter-spacing: -0.03em; }
.review blockquote::before { content: "“"; }
.review blockquote::after { content: "”"; }
.review figcaption { margin-top: 1.8rem; color: #c9b3a4; }
.review figcaption a { color: #fff; }

/* ---------- Leslie ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; border-radius: var(--r-lg); background: var(--sand); }
.about h2 { margin-bottom: 1.6rem; }
.about-text p { font-size: 1.15rem; max-width: 44ch; margin-bottom: 1.1rem; color: #4a3428; }
.about-links { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-top: 2rem; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- cómo funciona (es secuencia real) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; counter-reset: s; }
.step { counter-increment: s; background: #fff; border-radius: var(--r-md); padding: 1.8rem; }
.step::before { content: counter(s); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--orange); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: 2.4rem; }
.step h3 { font-size: 1.6rem; }
.step p { color: var(--muted); margin-top: .5rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- precio ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.pricing h2 { margin-bottom: 1.4rem; }
.pricing-copy p { font-size: 1.15rem; max-width: 40ch; }
.price-card { background: #fff; color: var(--espresso); border-radius: var(--r-lg); padding: clamp(1.8rem, 4vw, 2.8rem); }
.price-card .label { font-weight: 600; color: var(--orange-ink); }
.price { font-family: var(--display); font-weight: 800; font-size: clamp(4.8rem, 10vw, 7rem); letter-spacing: -0.06em; line-height: 1; margin: .4rem 0 .2rem; }
.price small { font-family: var(--text); font-size: 1.05rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: .3rem; }
.includes { list-style: none; margin: 1.6rem 0 2rem; display: grid; gap: .8rem; }
.includes li { display: flex; gap: .75rem; align-items: flex-start; }
.includes li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: .1rem; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8 13.6 4.4 10l-1.2 1.2L8 16l9-9-1.2-1.2z'/%3E%3C/svg%3E") center/14px no-repeat; }
.price-card .btn { width: 100%; min-height: 58px; font-size: 1.05rem; }
.price-card .fine { font-size: .87rem; margin-top: 1rem; text-align: center; color: var(--muted); }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

/* ---------- preguntas ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); }
.faq-wrap .muted { margin-top: 1.2rem; max-width: 30ch; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.35rem 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--linen); color: var(--orange-ink); font-size: 1.3rem; transition: transform .2s, background .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--sand); }
.faq details p { color: var(--muted); margin-top: .8rem; max-width: 58ch; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- cierre ---------- */
.closing { background: var(--orange); color: #fff; }
.closing-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.closing h2 { font-size: clamp(3.2rem, 8vw, 6.6rem); font-weight: 800; letter-spacing: -0.05em; line-height: .9; }
.closing p { font-size: 1.15rem; margin: 1.6rem 0 2.2rem; max-width: 36ch; color: #fff3ea; }
.closing .btn.light { color: var(--orange-ink); }
.closing-photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: center 60%; border-radius: var(--r-lg); background: #e9a27f; }
@media (max-width: 860px) { .closing-inner { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer { background: var(--espresso); color: #c9b3a4; padding: 3.5rem 0 2.5rem; font-size: .95rem; }
.foot { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: start; }
footer .logo { color: #fff; }
footer .logo small { color: #f6c7b0; }
footer .foot p { margin-top: .6rem; max-width: 32ch; }
footer nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
footer nav a { text-decoration: none; color: #f6ece3; }
footer nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .85rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- reproductor ---------- */
.modal { position: fixed; inset: 0; background: rgb(43 26 18 / .9); display: none; place-items: center; padding: 16px; z-index: 60; }
.modal.open { display: grid; }
.modal-box { width: min(980px, 100%); background: #fff; border-radius: var(--r-md); overflow: hidden; }
.modal-video { aspect-ratio: 16/9; background: var(--espresso); display: grid; place-items: center; color: #e2cfc2; text-align: center; padding: 1rem; }
.modal-video iframe { width: 100%; height: 100%; border: 0; }
.modal-info { padding: 1.2rem 1.4rem 1.4rem; display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.modal-close { background: var(--linen); border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; line-height: 1; color: var(--brown); flex: none; }

/* ---------- página de clases ---------- */
.lib-head { padding: 3.5rem 0 1.8rem; }
.lib-head h1 { font-size: clamp(3rem, 7vw, 5.4rem); font-weight: 800; letter-spacing: -0.05em; }
.notice { background: var(--linen); border-radius: var(--r-md); padding: 1rem 1.2rem; margin-bottom: 1.8rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ---------- entrar ---------- */
.auth { min-height: 72vh; display: grid; place-items: center; padding: 3rem 0; }
.auth-box { width: min(440px, 100%); background: var(--linen); border-radius: var(--r-lg); padding: 2.4rem; }
.auth-box h2 { font-size: 2.4rem; margin-bottom: .8rem; }
.auth-box input { width: 100%; min-height: 52px; padding: 0 1rem; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; margin: 1.2rem 0 1rem; background: #fff; }
.auth-box input:focus { outline: 2.5px solid var(--orange-ink); border-color: transparent; }
.auth-box .btn { width: 100%; }
.msg { margin-top: 1rem; font-size: .93rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
