/* Web pública de Total Fitness: mismos colores que la app (gris claro, blanco, naranja). */
:root {
    --paper: #f4f5f7;
    --white: #ffffff;
    --ink: #1a1d24;
    --slate: #5e6573;
    --line: #e3e6eb;
    --orange: #fa5e33;
    --orange-dark: #e04a20;
    --peach: #ffe9e1;
    --radius-s: 10px;
    --radius-m: 16px;
    --radius-l: 28px;
    --wrap: 1160px;
    --font: "Archivo", system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans Devanagari", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Titulares: Archivo ancho y muy grueso, como la rotulación de los discos de pesas. */
.display, h1, h2 {
    font-stretch: 125%;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.02;
    margin: 0 0 .45em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 .35em; line-height: 1.25; }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 34em; }
.muted { color: var(--slate); }
:lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2, :lang(hi) h1, :lang(hi) h2 { line-height: 1.25; letter-spacing: 0; }

/* Botones */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px; border-radius: 14px;
    font: 700 1rem/1 var(--font); text-decoration: none; white-space: nowrap;
    border: 0; cursor: pointer;
}
.btn i { font-size: 1.35rem; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-store { background: var(--ink); color: var(--white); }
.btn-store:hover { background: #000; }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cabecera */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(244, 245, 247, .88);
    backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-stretch: 112%; font-size: 1.1rem; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 24px; margin: 0 auto 0 12px; padding: 0; list-style: none; }
.nav a { text-decoration: none; font-weight: 600; color: var(--slate); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.site-header .btn { padding: 11px 18px; font-size: .95rem; }

/* Portada: cabecera con la rutina de ejemplo */
.hero { padding: 64px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 32px; }
.hero-visual { position: relative; display: flex; justify-content: flex-end; padding-bottom: 40px; }
.phone {
    width: min(300px, 100%); aspect-ratio: 1206 / 2622; overflow: hidden;
    border-radius: 40px; border: 9px solid var(--ink); background: var(--ink);
    box-shadow: 0 30px 60px -20px rgba(26, 29, 36, .35);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.routine-card {
    position: absolute; left: 0; bottom: 0; width: min(340px, 78%);
    background: var(--white); border-radius: 22px; padding: 18px 18px 8px;
    box-shadow: 0 24px 48px -16px rgba(26, 29, 36, .28), 0 0 0 1px var(--line);
}
.routine-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.routine-card header i { font-size: 1.4rem; color: var(--orange); background: var(--peach); border-radius: 10px; padding: 7px; }
.routine-card header strong { display: block; font-weight: 800; }
.routine-card header span { display: block; font-size: .85rem; color: var(--slate); }
.routine-card ol { list-style: none; margin: 0; padding: 0; }
.routine-card li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.routine-card li img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; background: var(--paper); }
.routine-card li a { font-weight: 600; font-size: .95rem; line-height: 1.25; text-decoration: none; }
.routine-card li a:hover { color: var(--orange); }
.routine-card .sets { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--orange); white-space: nowrap; }

/* La única animación: las líneas de la rutina aparecen una tras otra al cargar. */
@media (prefers-reduced-motion: no-preference) {
    .routine-card li { animation: line-in .45s cubic-bezier(.2, .7, .3, 1) both; }
    .routine-card li:nth-child(1) { animation-delay: .35s; }
    .routine-card li:nth-child(2) { animation-delay: .6s; }
    .routine-card li:nth-child(3) { animation-delay: .85s; }
    .routine-card li:nth-child(4) { animation-delay: 1.1s; }
}
@keyframes line-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Secciones */
.section { padding: 88px 0; }
.section-white { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 40px; }

/* Así funciona: tres pasos en orden */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps-row li { counter-increment: step; }
.steps-row li::before {
    content: counter(step); display: block; margin-bottom: 14px;
    font-stretch: 125%; font-weight: 900; font-size: 3.4rem; line-height: 1; color: var(--orange);
}
.steps-row p { color: var(--slate); margin: 0; }

/* Biblioteca en la portada */
.split { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chip {
    display: inline-flex; align-items: baseline; gap: 8px;
    padding: 10px 16px; border-radius: 999px; background: var(--white);
    box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; font-weight: 600;
}
.chip small { color: var(--slate); font-weight: 500; font-variant-numeric: tabular-nums; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--orange); }
.chip-active, .chip-active:hover { background: var(--peach); color: var(--orange-dark); box-shadow: none; }

/* Rutina del mes en la portada */
.month-teaser { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--white); border-radius: var(--radius-l); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.month-teaser img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.month-teaser > div { padding: 40px; align-self: center; }

/* Más funciones: lista a dos columnas */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 56px; margin: 0; padding: 0; list-style: none; }
.features li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.features i { font-size: 1.6rem; color: var(--orange); background: var(--peach); border-radius: 14px; width: 48px; height: 48px; display: grid; place-items: center; }
.features p { color: var(--slate); margin: 0; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 0; }
.quotes figure { margin: 0; }
.quotes blockquote { margin: 0 0 12px; font-size: 1.1rem; }
.quotes figcaption { color: var(--slate); font-weight: 600; }
.stars { color: var(--orange); margin-bottom: 10px; letter-spacing: 2px; }

/* Llamada final */
.cta-band { background: var(--orange); color: var(--white); border-radius: var(--radius-l); padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta-band h2 { margin: 0 0 .3em; }
.cta-band p { margin: 0; opacity: .92; max-width: 32em; }
.cta-band .btn-store { background: var(--white); color: var(--ink); }
.cta-band .btn-store:hover { background: var(--paper); }

/* Páginas interiores */
.page { padding-top: 28px; padding-bottom: 88px; }
.crumbs { font-size: .9rem; color: var(--slate); margin-bottom: 24px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 6px; }
.page-head { margin-bottom: 32px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }

.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ex-card { display: block; height: 100%; background: var(--white); border-radius: var(--radius-m); box-shadow: 0 0 0 1px var(--line); text-decoration: none; overflow: hidden; }
.ex-card:hover { box-shadow: 0 0 0 2px var(--orange); }
.ex-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper); }
.ex-card span { display: block; padding: 12px 14px 14px; font-weight: 600; line-height: 1.3; }
.group-block { margin-top: 56px; }
.group-block h2 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.group-block h2 a { text-decoration: none; }
.group-block h2 a:hover { color: var(--orange); }
.group-block h2 small { font: 500 1rem/1 var(--font); color: var(--slate); }

/* Ficha de ejercicio */
.ex-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; }
.ex-media { position: sticky; top: 92px; display: grid; gap: 14px; }
.ex-media figure { margin: 0; background: var(--white); border-radius: var(--radius-l); box-shadow: 0 0 0 1px var(--line); padding: 18px; }
.ex-media img { width: 100%; height: auto; }
.ex-media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-m); display: block; }
.ex-body h2 { font-size: 1.45rem; margin-top: 40px; }
.ex-body > h2:first-child { margin-top: 0; }
.ex-body > p, .ex-body .prose { color: #353a45; max-width: 38em; }
.step-list { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; max-width: 38em; }
.step-list li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.step-list li::before {
    content: counter(s); width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800; color: var(--orange);
    box-shadow: inset 0 0 0 2px var(--orange); background: var(--white);
}
.step-list li span { padding-top: 6px; }
.app-card { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; margin-top: 48px; background: var(--white); border-radius: var(--radius-l); padding: 22px; box-shadow: 0 0 0 1px var(--line); }
.app-card .phone { width: 96px; border-width: 4px; border-radius: 18px; box-shadow: none; }
.app-card h2 { font-size: 1.3rem; margin: 0 0 .3em; }
.app-card p { color: var(--slate); margin: 0 0 14px; }
.app-card .btn { padding: 11px 16px; font-size: .95rem; }

/* Rutina del mes */
.month-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 56px; }
.month-hero img { width: 100%; border-radius: var(--radius-l); aspect-ratio: 16 / 10; object-fit: cover; }
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.day { background: var(--white); border-radius: var(--radius-l); box-shadow: 0 0 0 1px var(--line); padding: 22px; }
.day h2 { font-size: 1.3rem; margin-bottom: 12px; }
.day ol { margin: 0; padding: 0; list-style: none; counter-reset: d; }
.day li { counter-increment: d; border-top: 1px solid var(--line); }
.day li a { display: grid; grid-template-columns: 24px 48px 1fr; gap: 12px; align-items: center; padding: 10px 0; text-decoration: none; font-weight: 600; line-height: 1.25; }
.day li a::before { content: counter(d); color: var(--orange); font-weight: 800; }
.day li a:hover { color: var(--orange); }
.day li img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; background: var(--paper); }

/* Días de la rutina del mes: sin ejercicios (contenido PRO) */
.day-locked h2 { margin-bottom: 2px; }
.day-locked > p.muted { margin: 0 0 12px; }
.day-locked li { padding: 12px 0; display: flex; gap: 12px; align-items: center; }
.day-locked li::before { content: counter(d); color: var(--orange); font-weight: 800; width: 24px; }
.day-locked li span { height: 12px; border-radius: 6px; background: var(--paper); flex: 1; }
.day-locked li:nth-child(2n) span { max-width: 70%; }
.day-locked li:nth-child(3n) span { max-width: 82%; }
.lock { margin: 12px 0 0; display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--orange-dark); }

/* Pie */
.site-footer { background: var(--ink); color: #c9cdd4; padding: 56px 0 40px; margin-top: 0; }
.site-footer .wrap { display: grid; gap: 28px; }
.site-footer .brand { color: var(--white); }
.site-footer p { margin: 0; max-width: 30em; }
.site-footer a { color: #c9cdd4; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; }
.foot-row a[aria-current] { color: var(--white); font-weight: 700; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid #2d313b; font-size: .88rem; }
.site-footer .btn-store { background: #2d313b; }

/* Móvil y tableta */
@media (max-width: 960px) {
    .hero .wrap, .split, .month-hero, .ex-layout { grid-template-columns: 1fr; }
    .hero { padding-top: 40px; }
    .hero-visual { justify-content: center; }
    .split .phone { display: none; }
    .ex-media { position: static; grid-row: 1; }
    .month-teaser { grid-template-columns: 1fr; }
    .month-teaser img { min-height: 0; aspect-ratio: 16 / 9; }
    .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .nav { display: none; }
    .site-header .wrap { justify-content: space-between; gap: 12px; }
    .site-header .btn { padding: 10px 14px; font-size: .88rem; }
    .brand { font-size: 1rem; }
    .ex-media { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; align-items: start; }
    .ex-media figure { padding: 8px; border-radius: var(--radius-m); }
    .ex-media iframe { grid-column: 1 / -1; }
    .section { padding: 64px 0; }
    .steps-row, .features, .quotes { grid-template-columns: 1fr; gap: 28px; }
    .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .hero-visual { padding-bottom: 0; flex-direction: column; align-items: center; gap: 0; }
    .hero-visual .phone { width: 220px; }
    .routine-card { position: relative; width: 100%; margin-top: -90px; }
    .month-teaser > div { padding: 28px; }
    .app-card { grid-template-columns: 1fr; }
    .app-card .phone { display: none; }
}

/* /ig: enlace de la bio de Instagram */
.ig-links { max-width: 440px; text-align: center; padding-top: 48px; }
.ig-links .ig-icon { margin: 0 auto 16px; border-radius: 22px; }
.ig-links h1 { font-size: 2.2rem; margin-bottom: .2em; }
.ig-links .lead { margin: 0 auto 28px; }
.ig-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ig-links .btn { width: 100%; justify-content: center; }
