/* Web comercial de ANLO FUEL (anlofuel.com). Misma marca que la app: Barlow, fondos oscuros, morado pastel. */
/* Tipografías alojadas aquí (licencia SIL OFL, fonts/OFL.txt): la web no carga nada de Google. */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url(/web/fonts/barlow-condensed-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(/web/fonts/barlow-condensed-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(/web/fonts/barlow-condensed-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(/web/fonts/barlow-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(/web/fonts/barlow-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(/web/fonts/barlow-latin-600-normal.woff2) format('woff2'); }
:root {
  --bg: #121316;
  --surface: #1a1c20;
  --surface-2: #22242a;
  --line: #2c2e35;
  --text: #f4f4f6;
  --muted: #9ea2ab;
  --accent: #bca8ff;
  --accent-deep: #6b4fd8;
  --ink: #15121f;
  --display: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(36px, 5vw, 60px); }
h3 { font-size: 24px; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
section { padding: clamp(80px, 12vw, 150px) var(--gut); max-width: var(--wrap); margin: 0 auto; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 14px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--ink); font: 600 17px/1 var(--body); text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 82%, #fff); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 11px; }
.btn-big { min-height: 60px; padding: 0 34px; font-size: 19px; }

/* Cabecera */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gut); background: rgba(18, 19, 22, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--accent); }
.logo svg { width: 30px; height: 30px; }
.logo span { font: 700 24px/1 var(--display); color: var(--text); letter-spacing: .02em; }
.logo b, .foot-logo b { color: var(--accent); font-weight: 700; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a, .link-quiet { color: var(--muted); text-decoration: none; font-size: 16px; }
.nav nav a:hover, .link-quiet:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 18px; }

/* Portada */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: end; min-height: calc(100vh - 70px); min-height: calc(100svh - 70px); padding-top: clamp(56px, 8vw, 100px); padding-bottom: 72px; }
.hero h1 { font-size: clamp(52px, 7vw, 96px); line-height: .92; letter-spacing: -.005em; max-width: 12ch; }
.lead { margin-top: 28px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-profile { margin: 0; align-self: stretch; display: flex; align-items: flex-end; }
.hero-profile svg { width: 100%; height: auto; overflow: visible; }
.grid line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; }
.axis text { fill: var(--muted); font: 500 14px var(--body); }
.profile-line { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.45, .05, .25, 1) .3s forwards; }
.profile-area { opacity: 0; animation: fade 1.2s ease 1.9s forwards; }
.profile-marks circle { fill: var(--bg); stroke: var(--accent); stroke-width: 3; }
.profile-marks text { fill: var(--muted); font: 500 14px var(--body); text-anchor: middle; }
.profile-marks .pop { opacity: 0; animation: pop .5s ease forwards; }
.profile-marks > g:nth-child(1) .pop { animation-delay: .9s; }
.profile-marks > g:nth-child(2) .pop { animation-delay: 1.35s; }
.profile-marks > g:nth-child(3) .pop { animation-delay: 1.8s; }
.profile-drop path { fill: var(--text); transform-origin: 0 -8px; transform: scale(0); animation: drop .7s cubic-bezier(.3, 1.6, .5, 1) 2.55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop { to { transform: scale(1); } }

/* Banda de deportes */
.sports { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.sports-track { display: flex; gap: 56px; width: max-content; animation: slide 38s linear infinite; }
.sports span { font: 600 28px/1 var(--display); color: var(--muted); white-space: nowrap; }
.sports span:nth-child(odd) { color: var(--text); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Historia con scroll */
.story { max-width: none; padding: 0; }
.story-sticky { max-width: var(--wrap); margin: 0 auto; padding: clamp(80px, 10vw, 120px) var(--gut); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.story-copy h2 { margin-bottom: 36px; }
.story-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.story-steps h3 { margin-bottom: 8px; }
.story-steps p { color: var(--muted); max-width: 46ch; }
.story-dots { display: none; }
.story-visual { position: relative; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px 22px 14px; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; font: 600 22px var(--display); }
.day-total { color: var(--muted); font: 500 17px var(--body); }
.day-total b { color: var(--text); font: 700 30px var(--display); }
.day-chart { width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.hours line { stroke: var(--line); }
.hours text { fill: var(--muted); font: 500 14px var(--body); text-anchor: middle; }
.meal text { fill: var(--muted); font: 500 13px var(--body); text-anchor: middle; }
.meal .base { fill: #3a3d46; }
.meal .extra { fill: var(--accent); transform-box: fill-box; transform-origin: bottom; }
.effort-band { fill: rgba(188, 168, 255, .1); stroke: rgba(188, 168, 255, .35); stroke-dasharray: 4 5; }
.effort-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1; }
.effort-label { fill: var(--text); font: 600 15px var(--body); text-anchor: middle; }
.intra circle { fill: var(--accent); }
.intra text { fill: var(--ink); font: 700 12px var(--body); text-anchor: middle; }
.intra .intra-label { fill: var(--accent); font: 600 14px var(--body); text-anchor: end; }
.day-note { color: var(--muted); font-size: 13px; margin-top: 6px; }

.phone { width: 270px; border-radius: 40px; padding: 10px; background: #0d0e10; border: 1px solid #34363d; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.phone-screen { --demo: var(--accent); position: relative; border-radius: 31px; background: #16171a; padding: 18px 16px 64px; min-height: 500px; overflow: hidden; font-size: 13px; }
.ph-top { display: flex; align-items: center; gap: 8px; font: 600 15px var(--display); letter-spacing: .02em; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ph-logo { width: 22px; height: 22px; border-radius: 7px; background: var(--demo); transition: background .4s; }
.ph-kicker { color: var(--demo); font: 600 13px var(--display); letter-spacing: .1em; text-transform: uppercase; margin-top: 16px; transition: color .4s; }
.ph-title { font: 700 24px/1.05 var(--display); margin: 4px 0 12px; }
.ph-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 8px; }
.ph-card-soft { background: color-mix(in srgb, var(--demo) 13%, transparent); border-color: color-mix(in srgb, var(--demo) 40%, transparent); }
.ph-meal { font-weight: 600; font-size: 14px; }
.ph-meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.4; }
.ph-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 10px 0 4px; }
.ph-week span { text-align: center; padding: 7px 0; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.ph-week .on { background: var(--demo); border-color: var(--demo); color: var(--ink); font-weight: 600; transition: background .4s; }
.ph-btn { margin-top: 12px; text-align: center; padding: 10px; border-radius: 12px; background: var(--demo); color: var(--ink); font-weight: 600; transition: background .4s; }
.ph-tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 12px 6px 16px; border-top: 1px solid var(--line); background: #16171a; color: var(--muted); font-size: 11px; }
.ph-tabs .on { color: var(--demo); font-weight: 600; transition: color .4s; }
.phone-story { display: none; }

/* Modo con scroll (solo con JS y sin reducción de movimiento) */
.js-story .story { height: 420vh; }
.js-story .story-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding-top: 90px; padding-bottom: 40px; }
.js-story .story-steps { position: relative; display: block; min-height: 200px; }
.js-story .story-steps li { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(18px); transition: opacity .45s, transform .45s; pointer-events: none; }
.js-story .story-steps li.on { opacity: 1; transform: none; pointer-events: auto; }
.js-story .story-dots { display: flex; gap: 8px; margin-top: 18px; }
.js-story .story-dots i { width: 28px; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.js-story .story-dots i.on { background: var(--accent); }
.js-story .phone-story { display: block; position: absolute; right: -18px; bottom: -40px; transform: translateY(40px) rotate(3deg); opacity: 0; transition: opacity .6s, transform .7s cubic-bezier(.2, .9, .3, 1); scale: .78; transform-origin: bottom right; }
.js-story .day { transition: opacity .5s, transform .6s; }
.js-story .effort-band, .js-story .effort-label { opacity: 0; transition: opacity .5s; }
.js-story .effort-line { stroke-dashoffset: calc(1 - var(--p0, 0)); }
.js-story .meal .extra { transform: scaleY(0); transition: transform .7s cubic-bezier(.2, .9, .3, 1) var(--d, 0s); }
.js-story .intra .pop, .js-story .intra-label { opacity: 0; transition: opacity .4s; }
.js-story .intra > g:nth-child(2) .pop { transition-delay: .08s; }
.js-story .intra > g:nth-child(3) .pop { transition-delay: .16s; }
.js-story .intra > g:nth-child(4) .pop { transition-delay: .24s; }
.js-story .intra-label { transition-delay: .3s; }
.story[data-step] .effort-band, .story[data-step] .effort-label { opacity: 1; }
.story[data-step="1"] .meal .extra, .story[data-step="2"] .meal .extra, .story[data-step="3"] .meal .extra { transform: none; }
.story[data-step="2"] .intra .pop, .story[data-step="2"] .intra-label, .story[data-step="3"] .intra .pop, .story[data-step="3"] .intra-label { opacity: 1; }
.story[data-step="3"] .phone-story { opacity: 1; transform: none; }
.story[data-step="3"] .day { opacity: .55; transform: translateX(-24px) scale(.97); }

/* Calculadora */
.calc { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; border-top: 1px solid var(--line); }
.calc-copy p { color: var(--muted); margin-top: 16px; max-width: 40ch; }
.calc-box { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 26px; }
.calc-field { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: baseline; }
.calc-field span { color: var(--muted); }
.calc-field output { font: 700 26px var(--display); }
.calc-field input { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); height: 28px; }
.calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.calc-result p { color: var(--muted); font-size: 16px; }
.calc-result b { display: block; font: 700 clamp(52px, 7vw, 84px)/1 var(--display); color: var(--accent); }
.calc-note { color: var(--muted); font-size: 14px; }

/* Funciones: lista a un lado y pantalla de ejemplo al otro */
.features h2 { max-width: 16ch; }
.feat-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 36px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.feat-switch button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); font: 600 16px var(--body); padding: 11px 22px; border-radius: 999px; cursor: pointer; transition: color .3s; white-space: nowrap; }
.feat-switch button[aria-selected="true"] { color: var(--ink); }
.feat-switch-pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--accent); transition: transform .4s cubic-bezier(.3, .9, .3, 1); }
.feat-switch.app .feat-switch-pill { transform: translateX(100%); }
.feat-pane { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; margin-top: 44px; }
.feat-pane[hidden] { display: none; }
.feat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feat-list > li { border-bottom: 1px solid var(--line); }
.feat-list button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 18px 0 18px 22px; cursor: pointer; position: relative; font: inherit; }
.feat-list button::before { content: ''; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: var(--line); transition: background .3s; }
.feat-list button > b { display: block; font: 600 23px/1.15 var(--display); color: var(--muted); transition: color .3s; }
.feat-list button > span { display: block; color: var(--muted); max-width: 46ch; opacity: 0; overflow: hidden; }
.feat-list button[aria-pressed="true"] > b, .feat-list button:hover > b { color: var(--text); }
.feat-list button[aria-pressed="true"]::before { background: var(--accent); }
.feat-list button[aria-pressed="true"] > span { opacity: 1; margin-top: 6px; }
.feat-list button > span { max-height: 0; transition: max-height .45s ease, opacity .35s, margin .35s; }
.feat-list button[aria-pressed="true"] > span { max-height: 140px; }

.scenes { position: relative; }
.scene { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .45s cubic-bezier(.2, .9, .3, 1); pointer-events: none; }
.scene.on { position: relative; opacity: 1; transform: none; }

/* Pantalla del panel */
.screen-desk { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.desk-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #16171a; }
.desk-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3d46; }
.desk-bar span { margin-left: 10px; color: var(--muted); font-size: 13px; }
.screen-desk .scenes { padding: 22px; min-height: 360px; }
.sc-title { font: 700 22px var(--display); margin-bottom: 14px; }
.sc-title-2 { margin-top: 18px; }
.sc-note { color: var(--muted); font-size: 13px; margin-top: 10px; }
.sc-btn { display: inline-block; margin-top: 16px; padding: 10px 16px; border-radius: 11px; background: var(--accent); color: var(--ink); font-weight: 600; font-size: 15px; }
.sc-btn-ghost { background: none; color: var(--text); border: 1px solid var(--line); }
.wk { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; margin-top: 8px; font-size: 15px; }
.wk-on { border-color: var(--accent); background: rgba(188, 168, 255, .08); }
.wk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; height: 34px; align-items: end; }
.wk-days i { display: block; height: max(var(--h), 3px); border-radius: 3px; background: #3a3d46; }
.wk-on .wk-days i { background: var(--accent); }
.pl { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.pl div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; display: grid; gap: 4px; }
.pl b { color: var(--muted); font-size: 13px; }
.pl span { font: 700 19px var(--display); }
.pl em { font-style: normal; color: var(--muted); font-size: 11.5px; line-height: 1.2; }
.pl .tr { border-color: rgba(188, 168, 255, .5); background: rgba(188, 168, 255, .08); }
.pl .tr em { color: var(--accent); }
.ai { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 10px; }
.ai-line { height: 10px; border-radius: 5px; width: var(--w); background: linear-gradient(90deg, #3a3d46 0 40%, rgba(188, 168, 255, .55) 50%, #3a3d46 60% 100%); background-size: 300% 100%; animation: shimmer 2.4s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.ai-data { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top: 14px; font-size: 14px; }
.ai-data span { color: var(--muted); }
.lib { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lib div { border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: grid; gap: 4px; font-size: 14px; }
.lib i { display: block; height: 62px; border-radius: 9px; background: linear-gradient(135deg, #3a3550, #2a2c33); }
.lib span { color: var(--muted); font-size: 13px; }
.frm div { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; font-size: 14.5px; }
.frm i { height: 12px; background: repeating-linear-gradient(180deg, var(--muted) 0 2px, transparent 2px 5px); opacity: .6; }
.frm b { font-weight: 500; }
.frm span { color: var(--accent); font-size: 13px; border: 1px solid rgba(188, 168, 255, .4); padding: 3px 9px; border-radius: 999px; }
.srv { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; font-size: 15px; }
.srv span { color: var(--muted); font-size: 14px; text-align: right; }
.cal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cal div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.cal span { color: var(--muted); font-size: 12.5px; }
.cal b { font: 600 17px var(--display); }

/* Móvil de las funciones */
.phone-feat { justify-self: center; }
.phone-feat .scenes { min-height: 380px; }
.ing { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.ing span { color: var(--muted); }
.swap { border-color: var(--demo); background: color-mix(in srgb, var(--demo) 12%, transparent); }
.chk { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.chk i { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--muted); }
.chk.on i { background: var(--demo); border-color: var(--demo); }
.chk.on span { color: var(--muted); text-decoration: line-through; }
.chk b { color: var(--muted); font-weight: 500; }
.scene-lock { text-align: center; padding-top: 26px; }
.lock-time { font: 600 58px/1 var(--display); }
.lock-date { color: var(--muted); margin-bottom: 30px; }
.notif { display: flex; gap: 10px; text-align: left; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
.notif .ph-logo { flex: none; }
.notif p { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.scene.on .notif { animation: slidein .6s cubic-bezier(.2, .9, .3, 1) .15s both; }
@keyframes slidein { from { opacity: 0; transform: translateY(-16px); } }
.spark { width: 100%; height: 80px; margin-bottom: 4px; }
.spark path { fill: none; stroke: var(--demo); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.scene.on .spark path { transition: stroke-dashoffset 1.2s ease .1s; stroke-dashoffset: 0; }
.home { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 18px 6px; }
.home i { aspect-ratio: 1; border-radius: 12px; background: #2a2c33; }
.home .me { background: var(--demo); }
.scene.on .home .me { animation: popin .5s cubic-bezier(.3, 1.6, .5, 1) .2s both; }
@keyframes popin { from { transform: scale(0); } }

/* Tu marca */
.brand { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; }
.brand-copy p { color: var(--muted); margin-top: 16px; max-width: 42ch; }
.swatches { display: flex; gap: 12px; margin-top: 30px; }
.swatches button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 3px var(--bg); transition: border-color .2s, transform .2s; }
.swatches button[aria-checked="true"] { border-color: var(--c); transform: scale(1.08); }
.phone-brand { transform: rotate(-3deg); }

/* Pasos */
.steps ol { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; position: relative; }
.steps li { counter-increment: s; padding-top: 58px; position: relative; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--accent); color: var(--accent); font: 700 20px var(--display); z-index: 1; }
.steps ol::before { content: ''; position: absolute; top: 20px; left: 20px; right: 20px; height: 1px; background: var(--line); }
.steps ol::after { content: ''; position: absolute; top: 20px; left: 20px; height: 1px; background: var(--accent); width: calc((100% - 40px) * var(--steps-p, 0)); transition: width .2s linear; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); }

/* Precios */
.pricing-sub { color: var(--muted); margin-top: 16px; max-width: 56ch; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg); }
.plan-mid { background: var(--surface); border-color: var(--accent); }
.plan h3 { font-size: 28px; }
.price { color: var(--muted); }
.price b { font: 700 64px/1 var(--display); color: var(--text); margin-right: 6px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--accent); border-radius: 2px; }
.plan .btn { width: 100%; }
.pricing-foot { color: var(--muted); margin-top: 24px; font-size: 16px; }

.brand-extra { font-size: 16px; border-left: 2px solid var(--accent); padding-left: 14px; }
.setup { margin-top: 56px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); display: grid; gap: 26px; }
.setup-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.setup-head h3 { font-size: 30px; }
.setup-head p { color: var(--muted); }
.setup-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.setup-items h4 { font: 600 21px/1.2 var(--display); margin: 0 0 6px; color: var(--accent); }
.setup-items p { color: var(--muted); font-size: 16px; }
.setup .btn { justify-self: start; }
@media (max-width: 960px) { .setup-items { grid-template-columns: 1fr; gap: 20px; } .brand-extra { border-left: 0; padding-left: 0; } }

/* Quién */
.who { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.who p { color: var(--muted); font-size: 20px; max-width: 54ch; }

/* Preguntas */
.faq { max-width: 860px; }
.faq h2 { margin-bottom: 30px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 600 22px/1.25 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 66ch; }

/* Cierre */
.final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.final-mark { width: 92px; height: 92px; color: var(--accent); }
.final-mark path:first-child { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.45, .05, .25, 1); }
.final-drop { fill: var(--text); transform-origin: 50px 60px; transform: scale(0); transition: transform .6s cubic-bezier(.3, 1.6, .5, 1) 1.1s; }
.final.seen .final-mark path:first-child { stroke-dashoffset: 0; }
.final.seen .final-drop { transform: scale(1); }
.final h2 { max-width: 14ch; }
.final p { color: var(--muted); max-width: 46ch; }

/* Pie */
.foot { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gut) 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 24px; }
.foot-logo { font: 700 24px var(--display); letter-spacing: .02em; }
.foot-brand p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.foot-links { display: grid; gap: 8px; text-align: right; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--text); }
.foot-legal { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }

/* Tableta y móvil */
@media (max-width: 960px) {
  .nav nav { display: none; }
  .nav-actions { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .hero h1 { max-width: 12ch; }
  .story-sticky, .calc, .who { grid-template-columns: 1fr; gap: 32px; }
  .feat-pane { grid-template-columns: 1fr; gap: 28px; }
  .feat-list .screen-desk { margin: 4px 0 18px; }
  .feat-list .phone-feat { margin: 4px auto 18px; width: 250px; }
  .feat-list .phone-feat .phone-screen { min-height: 440px; }
  .feat-list .phone-feat .scenes { min-height: 330px; }
  .screen-desk .scenes { min-height: 0; padding: 16px; }
  .wk { grid-template-columns: 110px 1fr; font-size: 14px; }
  .brand { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .brand-copy p { margin-inline: auto; }
  .swatches { justify-content: center; }
  .steps ol { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps ol::before, .steps ol::after { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 460px; }
  .js-story .story-sticky { align-content: start; gap: 18px; padding-top: 78px; }
  .js-story .story-copy h2 { font-size: 30px; margin-bottom: 14px; }
  .js-story .story-steps { min-height: 170px; }
  .js-story .story-steps h3 { font-size: 21px; }
  .js-story .story-steps p { font-size: 16px; }
  .js-story .story-visual { order: -1; }
  .js-story .day { padding: 14px 12px 8px; border-radius: 18px; }
  .js-story .phone-story { right: 50%; top: -8px; bottom: auto; translate: 50% 0; scale: .48; transform-origin: top center; }
  .story[data-step="3"] .day { transform: scale(.96); opacity: .4; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .nav { gap: 12px; }
  .link-quiet { display: none; }
  .logo span { font-size: 21px; }
  .btn-small { padding: 0 12px; font-size: 14px; }
  .hero-ctas .btn { width: 100%; }
  .steps ol { grid-template-columns: 1fr; }
  .calc-result { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .foot-links { text-align: left; }
  .feat-switch { display: grid; width: 100%; }
  .feat-switch button { padding: 11px 8px; font-size: 14.5px; }
  .pl { grid-template-columns: repeat(4, 1fr); }
  .cal { grid-template-columns: 1fr; }
  .lib i { height: 44px; }
  .sports span { font-size: 22px; }
  .day-head { font-size: 18px; }
  .day-total b { font-size: 24px; }
}

/* Menos movimiento: todo quieto y en su estado final */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sports-track { animation: none; }
}
