/* =============================================================
   Velozaje — landing de producto · verde de marca
   Verde #23A638 · Amarillo #EBE32D · tinta verde-oscuro
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --green:      #23A638;
  --green-2:    #1B8A2C;   /* hover */
  --green-3:    #14711F;   /* deep */
  --green-soft: #E7F5EA;   /* tint bg */
  --green-tint: #F4FAF4;
  --yellow:     #EBE32D;
  --yellow-2:   #D8CF16;

  --ink:      #12261A;     /* texto principal (verde-tinta) */
  --ink-soft: #37493E;
  --ink-mute: #6B7A70;

  --bg:       #FFFFFF;
  --bg-2:     #F5F8F5;
  --paper:    #FFFFFF;

  --line:      rgba(18,38,26,0.10);
  --line-soft: rgba(18,38,26,0.06);

  --shadow:    0 24px 60px -30px rgba(18,60,30,0.35);
  --shadow-sm: 0 10px 30px -18px rgba(18,60,30,0.4);
  --shadow-green: 0 18px 40px -18px rgba(35,166,56,0.5);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --disp: "Manrope", var(--sans);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.2rem, 4vw, 3rem);
  --maxw: 1200px;
  --radius: 20px;
}

/* 2. Reset & base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px; line-height: 1.6; color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; overscroll-behavior-y: none;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--disp); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--green); color: #fff; z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* 3. Type scale ----------------------------------------------- */
.eyebrow, .kicker { font-family: var(--disp); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.kicker { display: inline-flex; align-items: center; gap: .5rem; background: var(--green-soft); padding: .4rem .85rem; border-radius: 100px; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(35,166,56,.18); }
.section-title { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.section-title em { font-style: normal; color: var(--green); }
.section-lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 54ch; }
.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head.center { text-align: center; max-width: 40ch; margin-inline: auto; }
.center-x { margin-inline: auto; }

/* 4. Buttons -------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 1.6rem; border-radius: 100px; font-weight: 700; font-family: var(--disp); font-size: .96rem; transition: transform .3s var(--ease-out), background .3s, color .3s, box-shadow .3s; }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-green); }
.btn-primary:hover { background: var(--green-2); transform: translateY(-2px); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

/* Google Play badge (imagen oficial) */
.store-badge { display: inline-block; transition: transform .3s var(--ease-out), filter .3s; }
.store-badge img { height: 52px; width: auto; display: block; }
.store-badge.big img { height: 62px; }
.store-badge:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* 5. NAV ------------------------------------------------------ */
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 100; transition: background .4s var(--ease-out), box-shadow .4s, backdrop-filter .4s; }
.nav.is-solid { background: rgba(255,255,255,.85); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 1px 0 var(--line-soft); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand-logo { height: 34px; width: auto; }
.nav-links { display: none; gap: 1.8rem; margin-left: auto; }
.nav-links a { font-weight: 600; font-size: .95rem; color: var(--ink-soft); position: relative; padding: .3rem 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--green); transition: width .35s var(--ease-out); }
.nav-links a:hover { color: var(--ink); } .nav-links a:hover::after { width: 100%; }
.nav-cta { display: none; padding: .6rem 1.3rem; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease-out); }
.nav.is-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-mobile { display: grid; gap: .1rem; padding: 0 var(--gutter); max-height: 0; overflow: hidden; background: #fff; transition: max-height .4s var(--ease-out); border-bottom: 1px solid var(--line-soft); }
.nav.is-open .nav-mobile { max-height: 360px; padding-block: 1rem; }
.nav-mobile a { padding: .8rem .2rem; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); font-weight: 600; }
.nav-mobile a:last-child { border-bottom: 0; color: var(--green); }

/* 6. HERO ----------------------------------------------------- */
.hero { position: relative; padding-top: clamp(6.5rem, 13vw, 9rem); padding-bottom: clamp(3rem, 7vw, 5rem); overflow: clip; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 50% at 85% 0%, var(--green-soft) 0%, transparent 60%),
  radial-gradient(50% 40% at 0% 100%, rgba(235,227,45,.16) 0%, transparent 60%),
  var(--bg); }
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.hero-title { font-size: clamp(2.4rem, 6.2vw, 4.2rem); margin: 1.1rem 0 1.2rem; }
.hero-title em { font-style: normal; color: var(--green); position: relative; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: 2rem; }
.hero-trust { display: flex; align-items: center; gap: .7rem; margin-top: 1.8rem; }
.hero-trust .stars { color: var(--yellow-2); letter-spacing: 2px; font-size: 1.05rem; }
.hero-trust p { font-size: .9rem; color: var(--ink-mute); }

/* phone mockup */
.hero-visual { position: relative; display: grid; place-items: center; }
.phone { position: relative; width: min(280px, 74vw); aspect-ratio: 9/19; background: #10231a; border-radius: 38px; padding: 10px; box-shadow: var(--shadow); }
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 42%; height: 20px; background: #10231a; border-radius: 0 0 14px 14px; z-index: 2; }
.phone-screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #fff; position: relative; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.floaty { position: absolute; background: #fff; border-radius: 16px; padding: .7rem 1rem; box-shadow: var(--shadow); display: grid; line-height: 1.1; border: 1px solid var(--line-soft); }
.floaty strong { font-family: var(--disp); font-size: 1.4rem; color: var(--green); }
.floaty span { font-size: .72rem; color: var(--ink-mute); }
.floaty-1 { top: 14%; left: -2%; }
.floaty-2 { bottom: 16%; right: -2%; }
.floaty-2 strong { color: var(--ink); }

/* 7. VENTAJAS ------------------------------------------------- */
.ventajas { padding: clamp(4rem, 9vw, 7rem) 0; }
.vent-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.vent-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 2rem 1.7rem; transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s; }
.vent-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.vent-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: var(--green-soft); color: var(--green); margin-bottom: 1.1rem; }
.vent-ico svg { width: 27px; height: 27px; }
.vent-card h3 { font-size: 1.24rem; margin-bottom: .5rem; }
.vent-card p { color: var(--ink-soft); font-size: .96rem; }

/* 8. CÓMO FUNCIONA -------------------------------------------- */
.como { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--bg-2); }
.switch { display: inline-flex; gap: .25rem; padding: .3rem; background: #fff; border: 1px solid var(--line); border-radius: 100px; margin: 0 auto clamp(2rem,5vw,3rem); }
.como .switch { display: flex; width: max-content; }
.switch-wrap { display: flex; justify-content: center; }
.switch-btn { padding: .7rem 1.4rem; border-radius: 100px; font-family: var(--disp); font-weight: 700; font-size: .95rem; color: var(--ink-soft); transition: .3s var(--ease-out); }
.switch-btn.is-active { background: var(--green); color: #fff; }
.como .switch { margin-left: auto; margin-right: auto; }
.steps { display: grid; gap: 1.2rem; grid-template-columns: 1fr; counter-reset: s; }
.steps.is-hidden { display: none; }
.step { position: relative; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.7rem 1.6rem 1.6rem; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green); color: #fff; font-family: var(--disp); font-weight: 800; margin-bottom: .9rem; }
.step h3 { font-size: 1.14rem; margin-bottom: .4rem; }
.step p { color: var(--ink-soft); font-size: .94rem; }

/* Video (Short 9:16) dentro de Cómo funciona */
.como-video { margin-top: clamp(2.6rem, 6vw, 4rem); display: grid; justify-items: center; text-align: center; }
.como-video-title { font-family: var(--disp); font-size: clamp(1.3rem, 3vw, 1.6rem); }
.como-video-sub { color: var(--ink-soft); margin: .3rem 0 1.4rem; }
.short-frame { width: min(300px, 82vw); aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #000; border: 8px solid #10231a; box-shadow: var(--shadow); }
.short-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 8b. GALERÍA APP --------------------------------------------- */
.galeria { padding: clamp(4rem, 9vw, 7rem) 0; }
.gal-grid { display: grid; gap: 2rem 1.4rem; grid-template-columns: 1fr; justify-items: center; }
.gal-item { display: grid; justify-items: center; gap: 1rem; max-width: 300px; }
.gal-phone { width: 100%; aspect-ratio: 9/19; background: #10231a; border-radius: 34px; padding: 8px; box-shadow: var(--shadow); }
.gal-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 27px; background: #fff; }
.gal-item figcaption { font-family: var(--disp); font-weight: 600; color: var(--ink); text-align: center; font-size: .98rem; }

/* 9. PARA QUIÉN ----------------------------------------------- */
.para { padding: clamp(4rem, 9vw, 7rem) 0; }
.para-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.para-card { border-radius: var(--radius); padding: 2.2rem 2rem; border: 1px solid var(--line-soft); }
.para-card.send { background: var(--green-tint); }
.para-card.travel { background: #FCFBE9; border-color: rgba(216,207,22,.28); }
.para-tag { display: inline-block; font-family: var(--disp); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 100px; margin-bottom: 1rem; }
.para-card.send .para-tag { background: var(--green); color: #fff; }
.para-card.travel .para-tag { background: var(--yellow); color: #4a4700; }
.para-card h3 { font-size: 1.5rem; margin-bottom: 1.1rem; }
.ticks { display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem; display: grid; place-items: center; background: var(--green); color: #fff; border-radius: 50%; font-size: .72rem; font-weight: 700; }
.para-card.travel .ticks li::before { background: var(--yellow-2); color: #3a3800; }

/* 10. AHORRO -------------------------------------------------- */
.ahorro { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--bg-2); }
.ahorro-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.ahorro-badge { display: flex; align-items: center; gap: 1rem; margin-top: 1.8rem; background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 1rem 1.3rem; box-shadow: var(--shadow-sm); width: max-content; max-width: 100%; }
.ahorro-badge strong { font-family: var(--disp); font-size: 2.4rem; color: var(--green); line-height: 1; }
.ahorro-badge span { font-size: .9rem; color: var(--ink-soft); max-width: 22ch; }
.compare { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-head, .compare-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; align-items: center; }
.compare-head { background: var(--ink); color: #fff; font-family: var(--disp); font-weight: 700; font-size: .9rem; }
.compare-head span { padding: .95rem 1rem; }
.compare-head .col-vz { display: inline-flex; align-items: center; gap: .4rem; color: var(--yellow); }
.compare-head .col-vz img { display: inline-block; }
.compare-row { border-top: 1px solid var(--line-soft); }
.compare-row span { padding: .95rem 1rem; font-size: .92rem; }
.c-label { font-weight: 600; color: var(--ink); }
.c-vz { color: var(--green-3); font-weight: 600; background: var(--green-tint); height: 100%; display: flex; align-items: center; }
.c-td { color: var(--ink-mute); }

/* 11. DESCARGA ------------------------------------------------ */
.descarga { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.descarga-inner { text-align: center; background:
  radial-gradient(120% 120% at 50% -10%, var(--green) 0%, var(--green-3) 75%);
  color: #fff; border-radius: 30px; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter); box-shadow: var(--shadow-green); position: relative; overflow: hidden; }
.descarga-inner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 120%, rgba(235,227,45,.22), transparent 45%); pointer-events: none; }
.descarga-iso { margin: 0 auto 1.2rem; filter: drop-shadow(0 8px 18px rgba(0,0,0,.25)); background: #fff; padding: 10px; border-radius: 16px; }
.descarga-title { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.descarga-title em { font-style: normal; color: var(--yellow); }
.descarga-sub { color: rgba(255,255,255,.9); max-width: 44ch; margin: .8rem auto 1.8rem; }
.descarga .store-badge { position: relative; z-index: 1; margin: 0 auto; }
.descarga-note { margin-top: 1rem; font-size: .85rem; color: rgba(255,255,255,.75); }

/* 12. FOOTER -------------------------------------------------- */
.footer { background: #0E1F16; color: rgba(255,255,255,.72); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-inner { display: grid; gap: 2.2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { height: 40px; width: auto; margin-bottom: .8rem; }
.footer-slogan { font-family: var(--disp); font-weight: 700; color: var(--green); font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: .5rem; }
.footer-brand p { max-width: 42ch; font-size: .95rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08); color: #fff; transition: .3s var(--ease-out); }
.socials a:hover { background: var(--green); transform: translateY(-2px); }
.footer-nav, .footer-legal-nav { display: grid; gap: .7rem; align-content: start; }
.footer-nav a, .footer-legal-nav a { font-size: .95rem; color: rgba(255,255,255,.72); }
.footer-nav a:hover, .footer-legal-nav a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-top: 1.6rem; font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-legal a { color: rgba(255,255,255,.72); text-decoration: underline; }
.footer-legal a:hover { color: #fff; }
.footer-legal-owner { flex-basis: 100%; font-size: .76rem; color: rgba(255,255,255,.4); }

/* 12b. PÁGINAS LEGALES ---------------------------------------- */
.legal-main { padding-top: clamp(6rem, 12vw, 8rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.legal { max-width: 820px; margin-inline: auto; }
.legal-head { margin-bottom: 2.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line-soft); }
.legal-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); }
.legal-meta { color: var(--ink-mute); font-size: .9rem; margin-top: .6rem; }
.legal h2 { font-family: var(--disp); font-size: 1.28rem; margin: 2.2rem 0 .7rem; color: var(--ink); }
.legal h3 { font-family: var(--disp); font-size: 1.03rem; margin: 1.4rem 0 .4rem; color: var(--green-3); }
.legal p { color: var(--ink-soft); margin-bottom: .9rem; }
.legal ul { margin: 0 0 1.1rem; display: grid; gap: .45rem; }
.legal li { position: relative; padding-left: 1.3rem; color: var(--ink-soft); }
.legal li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.legal a { color: var(--green); text-decoration: underline; }
.legal strong { color: var(--ink); }
.legal .callout { background: var(--green-tint); border: 1px solid var(--line-soft); border-left: 4px solid var(--green); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.3rem 0; }
.legal .callout p { margin: 0; color: var(--ink); }
.legal-tablewrap { overflow-x: auto; margin: 1rem 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 460px; }
.legal th, .legal td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; color: var(--ink-soft); }
.legal th { background: var(--green-tint); color: var(--ink); font-family: var(--disp); }
.legal-back { display: inline-flex; align-items: center; gap: .4rem; margin-top: 2.4rem; font-family: var(--disp); font-weight: 700; color: var(--green); }
.legal-back:hover { color: var(--green-2); }

/* 13. Reveal -------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.is-ready [data-reveal].is-in { opacity: 1; transform: none; }
html:not(.is-ready) [data-reveal] { opacity: 1; transform: none; }

/* 14. Responsive ---------------------------------------------- */
@media (min-width: 640px) {
  .vent-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .para-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .gal-item { max-width: 260px; }
}
@media (min-width: 960px) {
  .nav-links, .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .vent-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .ahorro-grid { grid-template-columns: 1fr 1.05fr; }
}

/* 15. Reduced-motion ------------------------------------------ */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
