/* Workout Timer · web
   Misma estética que la app: azul noche, Chakra Petch e iconos Phosphor (servidos desde la propia web). */

@font-face {
    font-family: 'Chakra Petch';
    src: url('../fonts/chakrapetch-bold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Chakra Petch';
    src: url('../fonts/chakrapetch-semibold.woff') format('woff');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Phosphor';
    src: url('../fonts/phosphor-fill.woff') format('woff');
    font-display: block;
}

:root {
    --bg: #0B0E17;
    --surface: #151A27;
    --surface2: #1E2436;
    --line: #262D42;
    --text: #F4F6FB;
    --muted: #8A93AB;
    --dim: #59617A;
    --work: #FF6B3D;
    --rest: #2DD4BF;
    --acc1: #7C5CFF;
    --acc2: #FF4D8D;
    --prep: #FFC23D;
    --cool: #38BDF8;
    --cycle: #A78BFA;
    --brand: linear-gradient(90deg, var(--acc1), var(--acc2));
    --display: 'Chakra Petch', system-ui, sans-serif;
    --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --radius: 22px;
    --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 17px/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--rest); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; justify-content: center; }
.ph { font-family: 'Phosphor'; font-style: normal; font-weight: normal; line-height: 1; display: inline-block; }

.skip {
    position: absolute; left: 12px; top: -60px; z-index: 50;
    background: var(--surface2); padding: 10px 16px; border-radius: 12px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* --- Cabecera ------------------------------------------------------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(11, 14, 23, 0.82);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(38, 45, 66, 0.6);
}
.bar { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 0.02em; }
.brand b { color: var(--acc2); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); }
.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang a {
    text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 13px;
    color: var(--muted); padding: 4px 10px; border-radius: 999px;
}
.lang a[aria-current] { background: var(--surface2); color: var(--text); }

/* --- Portada ------------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 72px; }
.hero::before {
    content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
    background: radial-gradient(circle, rgba(255, 107, 61, 0.22), rgba(255, 107, 61, 0) 60%);
    pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; inset: auto auto -30% -20%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.18), rgba(124, 92, 255, 0) 60%);
    pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--rest);
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--work); }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); margin: 14px 0 18px; }
.grad {
    background: linear-gradient(90deg, var(--work), var(--acc2) 55%, var(--acc1));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 1.15rem; max-width: 34em; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store {
    display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px;
    border-radius: 16px; background: var(--text); color: var(--bg); text-decoration: none;
    font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.1;
}
.store .ph { font-size: 28px; }
.store small { display: block; font-weight: 600; font-size: 11.5px; letter-spacing: 0.04em; opacity: 0.75; }
.store:hover { transform: translateY(-1px); }
.store.is-soon { background: var(--surface2); color: var(--text); border: 1px solid var(--line); cursor: default; }
.store.is-soon:hover { transform: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 26px 0 0; }
.chips li {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 11px;
    border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
    font-family: var(--display); font-weight: 600; font-size: 14px;
}
.chips .ph { color: var(--rest); font-size: 16px; }

/* Móviles con captura */
.phone {
    margin: 0; border-radius: 34px; padding: 8px; background: #1A1F2E;
    border: 1px solid #2E3550;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.phone img { border-radius: 26px; width: 100%; }
.hero-phones { position: relative; height: 600px; }
.hero-phones .phone { position: absolute; width: 280px; }
.phone-front { right: 6%; top: 0; z-index: 2; }
.phone-back { right: 40%; top: 50px; transform: rotate(-7deg); opacity: 0.92; }

/* --- Secciones ------------------------------------------------------------------------------ */
.section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.08rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 24px 22px; }
.feature h3 { font-size: 1.25rem; margin: 18px 0 8px; }
.feature p { color: var(--muted); font-size: 0.97rem; }
.tile { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-size: 24px; }
.tile-work  { color: var(--work);  background: rgba(255, 107, 61, 0.16); }
.tile-rest  { color: var(--rest);  background: rgba(45, 212, 191, 0.16); }
.tile-acc1  { color: #C4B5FD;      background: rgba(124, 92, 255, 0.18); }
.tile-acc2  { color: var(--acc2);  background: rgba(255, 77, 141, 0.16); }
.tile-prep  { color: var(--prep);  background: rgba(255, 194, 61, 0.16); }
.tile-cool  { color: var(--cool);  background: rgba(56, 189, 248, 0.16); }
.tile-cycle { color: var(--cycle); background: rgba(167, 139, 250, 0.16); }

/* Cómo funciona */
.steps-band { background: linear-gradient(180deg, rgba(21, 26, 39, 0), rgba(21, 26, 39, 0.7) 30%, rgba(21, 26, 39, 0.7) 70%, rgba(21, 26, 39, 0)); }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { text-align: center; padding: 0 12px; }
.step-num {
    display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
    font-family: var(--display); font-weight: 700; font-size: 28px;
    border: 5px solid var(--work); border-right-color: var(--rest);
}
.steps li:nth-child(2) .step-num { border-color: var(--rest); border-right-color: var(--work); }
.steps h3 { font-size: 1.4rem; margin: 16px 0 8px; }
.steps p { color: var(--muted); }

/* Capturas */
.shots {
    display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 8px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)) 28px;
    scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
/* En escritorio caben las cinco; en pantallas estrechas se desplazan en horizontal */
.shot { flex: 0 0 calc((min(100vw, var(--wrap)) - 40px - 88px) / 5); min-width: 190px; margin: 0; scroll-snap-align: center; }
.shot .phone { border-radius: 30px; padding: 7px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); }
.shot .phone img { border-radius: 23px; }
.shot figcaption { text-align: center; margin-top: 14px; font-family: var(--display); font-weight: 600; color: var(--muted); }

/* Precio */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { padding: 28px 26px; }
.plan h3 { font-size: 1.15rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.plan-price { font-family: var(--display); font-weight: 700; font-size: 2.4rem; margin: 10px 0 12px; }
.plan p:last-child { color: var(--muted); }
.plan.is-highlight {
    border-color: transparent;
    background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand) border-box;
    border: 2px solid transparent;
}
.plan.is-highlight h3 { color: var(--acc2); }
.note { color: var(--dim); font-size: 0.95rem; margin-top: 22px; }

/* Llamada final */
.cta-box {
    text-align: center; padding: 56px 24px; border-radius: 32px;
    background: radial-gradient(120% 120% at 50% 0%, rgba(255, 107, 61, 0.18), rgba(21, 26, 39, 0.9) 60%);
    border: 1px solid var(--line);
}
.cta-box img { margin: 0 auto 20px; border-radius: 26px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.cta-box p { color: var(--muted); margin-top: 10px; }
.cta-box .stores { justify-content: center; }
.section.cta { padding-top: 24px; }

/* --- Pie ------------------------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; margin-top: 24px; }
.foot { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand strong { display: block; font-family: var(--display); font-size: 17px; }
.foot-brand span { color: var(--muted); font-size: 14px; }
.foot-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-links > a { color: var(--muted); font-size: 15px; }
.foot-links > a:hover { color: var(--text); }
.copy { grid-column: 1 / -1; color: var(--dim); font-size: 13.5px; }

/* --- Política de privacidad ---------------------------------------------------------------- */
.legal { max-width: 800px; padding-top: 40px; padding-bottom: 40px; }
.legal .back {
    display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none;
    font-family: var(--display); font-weight: 600; font-size: 15px; margin-bottom: 26px;
}
.legal .back:hover { color: var(--text); }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
.legal .updated { color: var(--dim); margin: 10px 0 22px; font-size: 0.95rem; }
.legal .lead { margin-bottom: 26px; }
.legal section { margin-top: 36px; }
.legal h2 { font-size: 1.45rem; margin-bottom: 12px; }
.legal p, .legal li { color: #C9CEDC; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 12px 0; }
.legal li { margin: 6px 0; }
.legal li::marker { color: var(--work); }
.legal a { color: var(--rest); }
.legal .links { list-style: none; padding: 0; }
.legal .links a::after { content: ' ↗'; }
.summary { padding: 22px 24px; border-color: rgba(45, 212, 191, 0.35); }
.summary h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.summary h2 .ph { color: var(--rest); }
.summary ul { margin-bottom: 0; }

/* --- Adaptación a pantallas pequeñas -------------------------------------------------------- */
@media (max-width: 1020px) {
    .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .nav { display: none; }
    .hero { padding-top: 40px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-phones { height: 520px; max-width: 460px; margin: 0 auto; width: 100%; }
    .hero-phones .phone { width: 240px; }
    .phone-front { right: 4%; }
    .phone-back { right: auto; left: 4%; }
    .plans { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .brand span { font-size: 17px; }
    .section { padding: 64px 0; }
    .features { grid-template-columns: 1fr; }
    .hero-phones { height: 440px; }
    .hero-phones .phone { width: 200px; }
    .phone-front { right: 0; }
    .phone-back { left: 0; top: 40px; }
    .store { font-size: 17px; }
    .foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .store:hover { transform: none; }
}
