/* =========================================================
   YETI EN MOTO — Design tokens
   ========================================================= */
:root{
  --bg: #07080a;
  --bg-soft: #0c0e11;
  --bg-elev: #121418;
  --bg-card: #16181d;
  --bg-card-hover: #1c1f26;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);

  --text: #f5f6f8;
  --text-dim: #a2a6b0;
  --text-dimmer: #6b6f79;

  /* La paleta es blanco/negro/gris. Azul, verde y rojo quedan reservados
     únicamente para detalles mínimos (pines del mapa, íconos de los chips HUD). */
  --accent-blue: #5b7cfa;
  --accent-green: #3f9f74;
  --accent-red: #e5654f;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.16,.84,.32,1);
  --container: 1180px;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font: inherit; color: inherit; background:none; border:none; cursor:pointer; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0; font-weight:600; letter-spacing:-0.01em; }
p{ margin:0; }

.container{
  width:100%;
  max-width: var(--container);
  margin-inline:auto;
  padding-inline: clamp(16px, 4vw, 24px);
}

.only-desktop{ display:none; }
@media (min-width:768px){ .only-desktop{ display:inline; } }

.skip-link{
  position:absolute; left:-999px; top:0; background:var(--text); color:#0a0b0d;
  padding:12px 18px; border-radius:0 0 12px 0; z-index:999; font-weight:600;
}
.skip-link:focus{ left:0; }

::selection{ background: rgba(255,255,255,0.25); color:var(--text); }

/* =========================================================
   Reveal-on-scroll base state (JS adds .is-visible)
   ========================================================= */
.reveal-up{
  opacity:0;
  transform: translateY(28px);
}
.reveal-up.is-visible{
  opacity:1;
  transform:none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
/* Stat cards: fade only — transform on scroll caused layout jank with counters */
.stat-card.reveal-up{
  transform:none;
}
.stat-card.reveal-up.is-visible{
  transform:none;
}
@media (prefers-reduced-motion: reduce){
  .reveal-up{ opacity:1; transform:none; }
}

/* =========================================================
   Buttons / badges
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight:600; font-size:0.92rem;
  white-space:nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.btn--primary{
  background: var(--text);
  color:#0a0b0d;
}
.btn--ghost{
  border:1px solid var(--border-strong);
  color: var(--text);
}

.store-badge{
  display:flex; align-items:center; gap:10px;
  background: var(--bg-card);
  border:1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.store-badge svg{ width:26px; height:26px; flex-shrink:0; }
.store-badge span{ display:flex; flex-direction:column; font-weight:600; font-size:0.98rem; line-height:1.15; }
.store-badge small{ font-weight:500; font-size:0.68rem; color: var(--text-dim); }

/* =========================================================
   Nav
   ========================================================= */
.nav{
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(7,8,10,0.55);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.nav.is-scrolled{
  background: rgba(7,8,10,0.85);
  border-bottom-color: var(--border);
}
.nav__inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 76px;
  gap: 20px;
}
.brand{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.brand__logo{ height: 32px; width:auto; display:block; }
@media (min-width: 768px){
  .brand__logo{ height: 46px; }
}

.nav__links{ display:none; align-items:center; gap: 34px; }
.nav__links a{ font-size:0.94rem; color: var(--text-dim); transition: color .2s; position:relative; }
.nav__links a:hover, .nav__links a.is-current{ color: var(--text); }
.nav__links a::after{
  content:''; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background: var(--text); transform: scaleX(0); transform-origin:left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-current::after{ transform: scaleX(1); }

.mobile-menu a.is-current{ color: var(--text); }

.nav__cta{ display:none; align-items:center; gap:12px; }

.nav__burger{
  display:flex; flex-direction:column; justify-content:center; gap:5px;
  width:40px; height:40px; align-items:center;
}
.nav__burger span{ width:20px; height:2px; background: var(--text); transition: transform .3s var(--ease), opacity .3s; }
.nav__burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav__burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-menu{
  max-height:0; overflow:hidden;
  background: rgba(7,8,10,0.97);
  border-bottom: 1px solid transparent;
  transition: max-height .4s var(--ease), border-color .4s;
  display:flex; flex-direction:column;
}
.mobile-menu.is-open{ max-height:420px; border-bottom-color: var(--border); }
body.menu-open{ overflow:hidden; }
.mobile-menu a{
  padding: 16px 24px; font-size:1rem; color: var(--text-dim);
  border-top: 1px solid var(--border);
}
.mobile-menu a.btn{ margin: 16px 24px; border-top:none; }

@media (min-width: 900px){
  .nav__links{ display:flex; }
  .nav__cta{ display:flex; }
  .nav__burger{ display:none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position:relative;
  min-height: 100svh;
  display:flex; align-items:center;
  padding-top: 76px;
  padding-bottom: 100px;
  overflow:hidden;
}
@media (min-width: 720px){
  .hero{ padding-bottom: 0; }
}
.hero__glow{
  position:absolute; inset:-20% -10% auto -10%; height:120%;
  background:
    radial-gradient(620px 400px at 18% 18%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(520px 420px at 88% 8%, rgba(255,255,255,0.05), transparent 60%);
  pointer-events:none;
}
.hero__route{
  position:absolute; inset:0; width:100%; height:100%;
  color: var(--text-dimmer);
  opacity:0.4;
}
.hero__route path{
  fill:none; stroke: currentColor; stroke-width:2; stroke-linecap:round;
}

.hero__inner{ position:relative; z-index:2; max-width: 760px; }
.eyebrow{
  display:inline-block;
  font-size:0.8rem; font-weight:600; letter-spacing:0.08em; text-transform:uppercase;
  color: var(--text-dim);
  margin-bottom:16px;
}
.hero__title{
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height:1.06;
  margin-bottom:22px;
  color: var(--text-dim);
}
.hero__title .text-accent{ color: var(--text); }
.hero__subtitle{
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero__actions{ display:flex; flex-wrap:wrap; gap:14px; }

.scroll-cue{
  position:absolute; left:50%; bottom:34px; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:10px;
  color: var(--text-dimmer); font-size:0.78rem; z-index:2;
}
.scroll-cue i{
  width:1px; height:36px; background: linear-gradient(var(--text-dimmer), transparent);
  position:relative; overflow:hidden;
}
.scroll-cue i::after{
  content:''; position:absolute; left:0; top:-100%; width:100%; height:100%;
  background: var(--text);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue{
  0%{ top:-100%; } 60%{ top:100%; } 100%{ top:100%; }
}
@media (prefers-reduced-motion: reduce){
  .scroll-cue i::after{ animation:none; opacity:0.5; }
}

/* =========================================================
   Storyline / video scrubbing
   ========================================================= */
/* Full-bleed section: override the generic `section{ padding:100px 0 }`
   rule, which was pushing the pinned frame ~100px down and clipping the
   last step's text below the fold. */
.storyline{ position:relative; background: var(--bg); padding:0; }
.storyline__pin{
  position: relative;
  /* 100svh (small viewport height) instead of 100vh: on mobile, 100vh is
     measured against the browser chrome hidden, so while the pin is fixed
     the address bar showing/hiding could push part of the bottom content
     (like the last step's text) below the actually-visible area. svh is
     the guaranteed-visible minimum, so nothing is ever clipped. */
  height: 100vh;
  height: 100svh;
  overflow:hidden;
  display:flex; align-items:center;
  background: var(--bg);
}
.storyline__canvas{
  position:absolute; inset:0; width:100%; height:100%; display:block;
  background: var(--bg);
  opacity:0;
  transform: scale(1.045);
  transition: opacity 1.2s var(--ease);
  will-change: transform;
}
.storyline__pin.is-ready .storyline__canvas{ opacity:1; }
/* Ultimate fallback if frames/canvas drawing can't run at all. */
.storyline__pin.no-video .storyline__canvas{ display:none; }
.storyline__pin.no-video::after{
  content:'';
  position:absolute; inset:0;
  background:
    radial-gradient(60% 50% at 25% 30%, rgba(255,255,255,0.07), transparent 70%),
    radial-gradient(50% 40% at 80% 70%, rgba(255,255,255,0.04), transparent 70%);
}
.storyline__vignette{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(7,8,10,0.7), transparent 26%, transparent 60%, rgba(7,8,10,0.96)),
    linear-gradient(90deg, rgba(7,8,10,0.55) 0%, rgba(7,8,10,0.1) 40%, transparent 62%);
  pointer-events:none;
}

/* Small, transient page-style label — only shown for the first beat of the
   scroll, so the section reads as an actual titled part of the page and
   not a stray video clip, without permanently crowding the frame. */
.storyline__eyebrow{
  position:absolute; z-index:3; top:90px; left:24px; right:24px;
  margin:0;
  opacity:0; transform: translateY(-10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  pointer-events:none;
}
.storyline__eyebrow.is-active{ opacity:1; transform:none; }
@media (min-width: 720px){
  .storyline__eyebrow{ left:5%; top:34px; }
}

.storyline__steps{
  position:relative; z-index:3;
  width:100%;
  height:100%;
  padding-inline: 24px;
  padding-bottom: 8%;
  max-width: var(--container);
  margin-inline:auto;
}
.story-step{
  position:absolute; bottom:calc(8% + env(safe-area-inset-bottom, 0px)); left:24px; right:24px;
  max-width: 480px;
  transform: translateX(-16px);
  opacity:0;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
  pointer-events:none;
}
.story-step.is-active{
  opacity:1; transform: translateX(0);
}
.story-step__index{
  display:inline-block; font-family: var(--font-display); font-size:0.85rem; font-weight:700;
  color: var(--text-dim); letter-spacing:0.1em; margin-bottom:14px;
}
.story-step h2{ font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom:14px; }
.story-step p{ color: var(--text-dim); font-size:1.02rem; max-width: 420px; }

@media (min-width: 720px){
  .story-step{ max-width: 420px; left: 5%; right:auto; bottom:12%; }
}

/* =========================================================
   Experience preview (home — scroll teaser)
   ========================================================= */
.experience-preview{ position:relative; background: var(--bg); padding:0; }
.experience-preview__pin{
  position:relative;
  height: 100vh;
  height: 100svh;
  overflow:hidden;
  background: var(--bg);
}
.experience-preview__canvas{
  position:absolute; inset:0; width:100%; height:100%; display:block;
  background: var(--bg);
  opacity:0;
  transform: scale(1.04);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  will-change: transform;
}
.experience-preview__pin.is-ready .experience-preview__canvas{ opacity:1; transform: scale(1); }
.experience-preview__pin.no-preview .experience-preview__canvas{ display:none; }
.experience-preview__pin.no-preview::after{
  content:'';
  position:absolute; inset:0;
  background:
    radial-gradient(60% 50% at 25% 30%, rgba(255,255,255,0.07), transparent 70%),
    radial-gradient(50% 40% at 80% 70%, rgba(255,255,255,0.04), transparent 70%);
}
.experience-preview__vignette{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(7,8,10,0.55), transparent 22%, transparent 55%, rgba(7,8,10,0.95)),
    linear-gradient(90deg, rgba(7,8,10,0.45) 0%, transparent 45%);
  pointer-events:none;
}
.experience-preview__overlay{
  position:absolute; inset:0; z-index:3;
  display:flex; flex-direction:column;
  justify-content:flex-end;
  padding: 24px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  max-width: var(--container);
  margin-inline:auto;
  width:100%;
  pointer-events:none;
}
.experience-preview__eyebrow{ margin-bottom: 12px; }
.experience-preview__labels{
  position:relative;
  min-height: 3.2rem;
  margin-bottom: 20px;
}
.experience-preview__label{
  position:absolute; left:0; bottom:0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight:600;
  line-height:1.05;
  color: var(--text);
  opacity:0;
  transform: translateY(12px);
  transition: opacity .45s var(--ease), transform .5s var(--ease);
  pointer-events:none;
}
.experience-preview__label.is-active{
  opacity:1;
  transform:none;
}
.experience-preview__footer{
  display:flex; flex-wrap:wrap; align-items:center; gap:16px 24px;
  pointer-events:auto;
}
.experience-preview__hint{
  display:inline-flex; align-items:center; gap:10px;
  color: var(--text-dimmer); font-size:0.82rem; font-weight:500;
}
.experience-preview__hint i{
  width:1px; height:32px;
  background: linear-gradient(var(--text-dimmer), transparent);
  position:relative; overflow:hidden;
}
.experience-preview.is-scrubbing .experience-preview__hint i::after,
.experience-preview__pin.is-ready .experience-preview__hint i::after{
  content:'';
  position:absolute; left:0; top:-100%; width:100%; height:100%;
  background: var(--text);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce){
  .experience-preview__hint i::after{ animation:none; opacity:0.5; }
}
@media (min-width: 900px){
  .experience-preview__overlay{
    padding: 40px 48px;
    padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  }
  .experience-preview__labels{ min-height: 4rem; margin-bottom: 28px; }
}

/* =========================================================
   Page header (sub-pages: La Experiencia / La App / Comunidad)
   ========================================================= */
.page-header{
  position:relative;
  padding: 120px 0 50px;
  overflow:hidden;
}
@media (min-width: 720px){
  .page-header{ padding: 150px 0 70px; }
}
.page-header + .features,
.page-header + .stats{
  padding-top: 48px;
  padding-bottom: 64px;
}
.page-header__glow{
  position:absolute; inset:-30% -10% auto -10%; height:140%;
  background: radial-gradient(560px 380px at 15% 10%, rgba(255,255,255,0.07), transparent 60%);
  pointer-events:none;
}
.page-header__inner{ position:relative; z-index:2; max-width: 680px; }
.page-header .eyebrow{ margin-bottom:14px; }
.page-header h1{
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  line-height:1.1;
  margin-bottom:18px;
}
.page-header p{
  color: var(--text-dim);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  max-width: 540px;
}
.breadcrumb-back{
  display:inline-flex; align-items:center; gap:8px;
  color: var(--text-dimmer); font-size:0.86rem; margin-bottom:24px;
  transition: color .2s;
}
.breadcrumb-back:hover{ color: var(--text); }
.breadcrumb-back svg{ width:14px; height:14px; }

/* =========================================================
   Explore cards (Inicio -> otras páginas)
   ========================================================= */
.explore{ padding-top: 20px; }
.explore-grid{ display:grid; grid-template-columns: 1fr; gap:18px; }
@media (min-width: 720px){ .explore-grid{ grid-template-columns: repeat(3, 1fr); } }
.explore-grid--duo{ max-width: 880px; }
@media (min-width: 720px){ .explore-grid--duo{ grid-template-columns: repeat(2, 1fr); } }
.explore-card{
  position:relative;
  display:flex; flex-direction:column; justify-content:space-between; gap:40px;
  background: var(--bg-card);
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  min-height: 240px;
  overflow:hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.explore-card:active{ transform: translateY(-2px); }
.explore-card__glow{
  position:absolute; inset:auto -30% -40% auto; width:220px; height:220px; border-radius:50%;
  background: radial-gradient(circle, rgba(255,255,255,0.09), transparent 70%);
  pointer-events:none;
}
.explore-card__top{ position:relative; z-index:1; }
.explore-card__index{
  font-family: var(--font-display); font-size:0.8rem; font-weight:700; color: var(--text-dim);
  letter-spacing:0.1em; margin-bottom:14px; display:block;
}
.explore-card h3{ font-size:1.25rem; margin-bottom:10px; }
.explore-card p{ color: var(--text-dim); font-size:0.94rem; }
.explore-card__cta{
  position:relative; z-index:1;
  display:inline-flex; align-items:center; gap:8px;
  font-weight:600; font-size:0.9rem; color: var(--text);
}
.explore-card__cta svg{ width:16px; height:16px; transition: transform .25s var(--ease); }

/* =========================================================
   Section shells
   ========================================================= */
section:not(.storyline):not(.experience-preview){ position:relative; padding: 100px 0; }
.stats,
.cta,
.footer,
.explore{
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}
.section-title{
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  max-width: 640px;
  margin-bottom:16px;
}
.section-subtitle{
  color: var(--text-dim);
  max-width: 620px;
  font-size: 1.02rem;
  margin-bottom: 52px;
}

/* =========================================================
   Features
   ========================================================= */
.feature-grid{
  display:grid; grid-template-columns: 1fr; gap:18px;
}
@media (min-width:640px){ .feature-grid{ grid-template-columns: 1fr 1fr; } }
@media (min-width:1000px){ .feature-grid{ grid-template-columns: repeat(3, 1fr); } }

.feature-card{
  background: var(--bg-card);
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display:flex; flex-direction:column;
  min-height: 210px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.feature-card__icon{
  width:48px; height:48px; border-radius: var(--radius-sm);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px; flex-shrink:0;
}
.feature-card__icon svg{ width:24px; height:24px; }
.feature-card__icon{ background: rgba(255,255,255,0.08); color: var(--text); }
.feature-card h3{ font-size:1.15rem; margin-bottom:10px; }
.feature-card p{ color: var(--text-dim); font-size:0.95rem; flex:1; }

/* =========================================================
   Showcase (phone mock)
   ========================================================= */
.showcase{ background: var(--bg-soft); }
.showcase__inner{
  display:grid; grid-template-columns: 1fr; gap: 60px; align-items:center;
}
@media (min-width: 940px){
  .showcase__inner{ grid-template-columns: 1fr 0.85fr; }
}
.showcase__list{ margin-top:28px; display:flex; flex-direction:column; gap:16px; }
.showcase__list li{
  display:flex; gap:16px; align-items:flex-start; color: var(--text-dim); font-size:0.98rem;
}
.showcase__list span{
  flex-shrink:0; width:30px; height:30px; border-radius:50%;
  background: var(--bg-card); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-size:0.75rem; color: var(--text-dim);
}

.showcase__phone{ display:flex; justify-content:center; }
.phone{
  width: min(280px, 78vw);
  aspect-ratio: 9/19;
  background: #0d0f12;
  border: 8px solid #1c1f26;
  border-radius: 46px;
  position:relative;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
  overflow:hidden;
}
.phone__notch{
  position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:38%; height:22px; background:#0d0f12; border-radius:0 0 16px 16px; z-index:5;
}
.phone__screen{ position:relative; width:100%; height:100%; display:flex; flex-direction:column; }
.mock-topbar{
  display:flex; align-items:center; gap:8px; padding: 30px 14px 10px;
}
.mock-dot{ width:20px; height:20px; border-radius:50%; background: var(--bg-card); flex-shrink:0; }
.mock-search{
  flex:1; background: var(--bg-card); border-radius: var(--radius-pill);
  padding: 8px 12px; font-size:0.62rem; color: var(--text-dimmer);
}
.mock-icon{ width:20px; height:20px; border-radius:6px; background: var(--bg-card); flex-shrink:0; }

.mock-map{ position:relative; flex:1; margin: 6px 10px; border-radius: 18px; overflow:hidden; background:#0a0c0f; }
.mock-route{ position:absolute; inset:0; width:100%; height:100%; }
.mock-route path{ fill:none; stroke: var(--text-dimmer); stroke-width:2; stroke-linecap:round; opacity:0.85; }
.mock-pin{ position:absolute; width:10px; height:10px; border-radius:50% 50% 50% 0; transform:rotate(-45deg); }
.mock-pin--a{ background: var(--accent-blue); top:78%; left:10%; }
.mock-pin--b{ background: var(--accent-green); top:16%; left:88%; }

.mock-sheet{
  background: var(--bg-elev); border-top-left-radius: 22px; border-top-right-radius:22px;
  padding: 10px 14px 16px; border-top:1px solid var(--border);
}
.mock-handle{ display:block; width:32px; height:3px; border-radius:2px; background: var(--border-strong); margin: 0 auto 10px; }
.mock-actions{ display:grid; grid-template-columns: repeat(4,1fr); gap:6px; margin-bottom:12px; }
.mock-action{ aspect-ratio:1; background: var(--bg-card); border-radius:10px; }
.mock-stats{ display:grid; grid-template-columns: repeat(4,1fr); gap:4px; text-align:center; }
.mock-stats div{ display:flex; flex-direction:column; font-size:0.5rem; color: var(--text-dimmer); }
.mock-stats b{ font-family: var(--font-display); font-size:0.85rem; color: var(--text); }

/* =========================================================
   Stats
   ========================================================= */
.stats__grid{
  display:grid; grid-template-columns: repeat(2,1fr); gap:16px;
}
@media (min-width: 780px){ .stats__grid{ grid-template-columns: repeat(4,1fr); } }
.stat-card{
  background: var(--bg-card);
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  display:flex; flex-direction:column; gap:8px;
  min-height: 130px;
  justify-content:center;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.stat-card__num{
  font-family: var(--font-display); font-weight:700;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-card__label{ color: var(--text-dim); font-size:0.9rem; }

/* =========================================================
   Community / quotes
   ========================================================= */
.stats + .community{ padding-top: 56px; }
.quote-grid{ display:grid; grid-template-columns: 1fr; gap:18px; }
@media (min-width: 860px){ .quote-grid{ grid-template-columns: repeat(3,1fr); } }
.quote-card{
  background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px; margin:0; display:flex; flex-direction:column; justify-content:space-between; gap:24px;
  min-height: 220px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.quote-card p{ color: var(--text); font-size:1rem; line-height:1.55; }
.quote-card figcaption{ display:flex; align-items:center; gap:12px; }
.quote-card figcaption b{ display:block; font-size:0.92rem; }
.quote-card figcaption small{ color: var(--text-dimmer); font-size:0.8rem; }
.avatar{ width:38px; height:38px; border-radius:50%; flex-shrink:0; }
.avatar--a{ background: linear-gradient(135deg, #6b7280, #d1d5db); }
.avatar--b{ background: linear-gradient(135deg, #4b5563, #9ca3af); }
.avatar--c{ background: linear-gradient(135deg, #f5b95b, var(--accent-red)); }

/* =========================================================
   CTA
   ========================================================= */
.cta{ text-align:center; overflow:hidden; }
.cta__glow{
  position:absolute; inset:0;
  background: radial-gradient(700px 400px at 50% 30%, rgba(255,255,255,0.09), transparent 65%);
  pointer-events:none;
}
.cta__inner{ position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; }
.cta .section-title, .cta .section-subtitle{ margin-inline:auto; }
.cta .hero__actions{ justify-content:center; }

/* =========================================================
   Footer
   ========================================================= */
.footer{ border-top:1px solid var(--border); padding-top: 70px; background: var(--bg-soft); }
.footer__inner{
  display:grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 50px;
}
.footer__brand .brand__logo{ height: 54px; }
.footer__brand p{ color: var(--text-dim); font-size:0.92rem; margin: 16px 0 20px; max-width:280px; }
.footer__social{ display:flex; gap:12px; }
.footer__social a{
  width:38px; height:38px; border-radius:50%; border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; color: var(--text-dim);
  transition: color .2s, border-color .2s;
}
.footer__social a:hover{ color: var(--text); border-color: var(--border-strong); }
.footer__social svg{ width:17px; height:17px; }

.footer__col{ display:flex; flex-direction:column; gap:14px; }
.footer__col h4{ font-size:0.8rem; text-transform:uppercase; letter-spacing:0.06em; color: var(--text-dimmer); margin-bottom:4px; }
.footer__col a{ color: var(--text-dim); font-size:0.94rem; text-align:left; transition: color .2s; }
.footer__col a:hover, .footer__col a.is-current{ color: var(--text); }

.footer__bottom{ border-top:1px solid var(--border); padding: 22px 24px; }
.footer__bottom p{ color: var(--text-dimmer); font-size:0.82rem; }

/* =========================================================
   Legal pages (Términos y condiciones / Política de privacidad)
   ========================================================= */
.legal-page{ padding: 0 0 100px; }
.legal-content{ max-width: 720px; }
.legal-updated{ color: var(--text-dimmer); font-size:0.85rem; margin-bottom:28px; }
.legal-content h3{ font-family: var(--font-body); font-size:1.15rem; margin: 34px 0 10px; color: var(--text); }
.legal-content h3:first-child{ margin-top:0; }
.legal-content h4{ font-family: var(--font-body); font-size:0.98rem; font-weight:700; margin: 20px 0 6px; color: var(--text); }
.legal-content p{ color: var(--text-dim); font-size:0.98rem; line-height:1.7; margin-bottom:10px; }
.legal-content ol{
  list-style-type: lower-alpha;
  color: var(--text-dim); font-size:0.98rem; line-height:1.7;
  margin: 6px 0 16px; padding-left: 22px;
}
.legal-content ol li{ margin-bottom:6px; padding-left:4px; }
.legal-content ol li::marker{ color: var(--text-dimmer); }
.legal-content strong{ color: var(--text); font-weight:600; }
.legal-content a{ color: var(--text); text-decoration: underline; word-break: break-word; }
.legal-content > p:first-child{ margin-top:0; }

/* =========================================================
   Utility: focus visibility
   ========================================================= */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible, .store-badge:focus-visible{ border-radius: var(--radius-pill); }

/* =========================================================
   Desktop & tablet — solo min-width, sin tocar mobile base
   ========================================================= */

/* Tablet landscape: nav links un poco más compactas */
@media (min-width: 900px) and (max-width: 1099px){
  .nav__links{ gap: 24px; }
  .nav__links a{ font-size: 0.9rem; }
  .nav__cta .btn{ padding: 10px 18px; font-size: 0.88rem; }
}

/* Tablet+: más aire en secciones */
@media (min-width: 1024px){
  section:not(.storyline):not(.experience-preview){ padding: 120px 0; }
  .legal-page{ padding-bottom: 120px; }
  .container{ padding-inline: clamp(24px, 3vw, 40px); }
  .page-header{ padding: 160px 0 80px; }
  .page-header__inner{ max-width: 720px; }
}

/* Pantallas grandes */
@media (min-width: 1200px){
  :root{ --container: 1240px; }

  .hero__inner{ max-width: 820px; }
  .hero__glow{
    background:
      radial-gradient(720px 460px at 16% 16%, rgba(255,255,255,0.09), transparent 62%),
      radial-gradient(600px 480px at 86% 6%, rgba(255,255,255,0.06), transparent 62%);
  }

  .section-title{ max-width: 720px; }
  .section-subtitle{ max-width: 680px; font-size: 1.06rem; }

  .feature-grid{ gap: 22px; }
  .feature-card{ min-height: 220px; padding: 32px 28px; }

  .showcase__inner{ gap: 80px; grid-template-columns: 1.1fr 0.9fr; }
  .phone{ width: 300px; }

  .stats__grid{ gap: 20px; }
  .stat-card{ padding: 34px 26px; min-height: 140px; }

  .quote-grid{ gap: 22px; }
  .quote-card{ min-height: 240px; padding: 32px 28px; }

  .legal-content{ max-width: 760px; }

  .storyline__steps{ padding-inline: clamp(32px, 5vw, 48px); }
  .story-step{ max-width: 480px; left: 6%; bottom: 14%; }
  .story-step p{ font-size: 1.05rem; max-width: 440px; }
}

/* Ultra-wide: contenido centrado sin estirarse de más */
@media (min-width: 1600px){
  :root{ --container: 1280px; }
  .hero__title{ font-size: 4.4rem; }
}

/* Tablet: footer en 2 columnas antes del layout de 4 */
@media (min-width: 780px) and (max-width: 1023px){
  .footer__inner{
    grid-template-columns: 1fr 1fr;
    gap: 36px 48px;
  }
  .footer__brand{ grid-column: 1 / -1; }
}
@media (min-width: 1024px){
  .footer__inner{ grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* Tablet: testimonios en 2 columnas */
@media (min-width: 640px) and (max-width: 859px){
  .quote-grid{ grid-template-columns: repeat(2, 1fr); }
  .quote-grid .quote-card:last-child{
    grid-column: 1 / -1;
    max-width: calc(50% - 9px);
    justify-self: center;
  }
}

/* Tablet landscape: explore cards con altura pareja */
@media (min-width: 720px) and (max-width: 1199px){
  .explore-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .explore-card{ min-height: 260px; padding: 26px; }
}

/* Showcase: side-by-side desde tablet ancha */
@media (min-width: 768px) and (max-width: 939px){
  .showcase__inner{
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
  }
  .showcase__text .section-subtitle{ margin-bottom: 32px; }
  .phone{ width: min(240px, 42vw); }
}

/* Hover solo en dispositivos con mouse — no afecta layout mobile */
@media (hover: hover) and (pointer: fine){
  .btn--primary:hover{ transform: translateY(-2px); background:#fff; }
  .btn--ghost:hover{ background: rgba(255,255,255,0.06); }
  .explore-card:hover{ transform: translateY(-6px); border-color: var(--border-strong); background: var(--bg-card-hover); }
  .feature-card:hover{ transform: translateY(-6px); border-color: var(--border-strong); background: var(--bg-card-hover); }
  .stat-card:hover{ border-color: var(--border-strong); background: var(--bg-card-hover); }
  .quote-card:hover{ border-color: var(--border-strong); background: var(--bg-card-hover); }
  .store-badge:hover{ transform: translateY(-3px); border-color: var(--border-strong); background: var(--bg-card-hover); }
  .footer__social a:hover{ color: var(--text); border-color: var(--border-strong); }
  .footer__col a:hover{ color: var(--text); }
  .breadcrumb-back:hover{ color: var(--text); }
  .nav__links a:hover{ color: var(--text); }
  .explore-card:hover .explore-card__cta svg{ transform: translateX(4px); }
}
