/* =========================================================
   ALTOKI · Web informativa
   Marca: verde #42E842 + negro + blanco · Fredoka + Manrope
   ========================================================= */

:root {
  --green: #42E842;
  --green-hover: #36DA36;
  --green-ink: #0C8A19;      /* verde para texto sobre blanco (contraste AA) */
  --green-50: #EEFDEB;
  --black: #0A0A0A;
  --black-2: #151515;
  --black-3: #222222;
  --line-dark: #2C2C2C;
  --ink: #0A0A0A;
  --ink-2: #3B3B3B;
  --muted: #6E706E;
  --muted-dark: #A9A9A9;
  --bg: #FFFFFF;
  --bg-soft: #F5F5F3;
  --line: #E6E6E2;

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fredoka', 'Manrope', system-ui, sans-serif;

  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hl { color: var(--green); }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: auto; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -.02em; color: #fff; }
.wordmark b { color: var(--green); font-weight: 700; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--font); font-weight: 800; font-size: 16px; text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.btn svg { font-size: 20px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn-green { background: var(--green); color: var(--black); box-shadow: 0 10px 24px rgba(66, 232, 66, .3); }
.btn-green:hover { background: var(--green-hover); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: var(--black-3); }

/* Botones de tienda (App Store / Google Play) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 190px; height: 60px; padding: 0 22px 0 18px;
  border-radius: 16px; background: #000; color: #fff; text-decoration: none;
  border: 1.5px solid #4A4A4A;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.store-btn:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }
.store-btn:active { transform: scale(.97); }
.store-ic { font-size: 30px; }
.store-btn span { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.05; }
.store-btn small { font-family: var(--font); font-weight: 600; font-size: 12px; letter-spacing: .01em; opacity: .85; }

/* ---------- Encabezado ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, .9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav-in { height: var(--nav-h); display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: #CFCFCF; text-decoration: none; font-weight: 700; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--green); }
.nav .btn { margin-left: 4px; }

/* ---------- Portada ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 78% 40%, rgba(66, 232, 66, .16), transparent 62%),
    var(--black);
  color: #fff;
}
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 96px; min-height: min(820px, calc(100vh - var(--nav-h))); }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid rgba(66, 232, 66, .45); background: rgba(66, 232, 66, .08);
  color: var(--green); font-weight: 800; font-size: 14px; letter-spacing: .02em;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(66, 232, 66, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(66, 232, 66, 0); } 100% { box-shadow: 0 0 0 0 rgba(66, 232, 66, 0); } }
.hero h1 { font-size: clamp(48px, 7vw, 92px); margin: 22px 0 22px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #CFCFCF; max-width: 540px; }
.hero .stores { margin-top: 34px; }
.soon { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--muted-dark); }

.hero-art { position: relative; height: 640px; }
.glow { position: absolute; inset: 12% 8%; border-radius: 50%; background: radial-gradient(circle, rgba(66, 232, 66, .35), transparent 65%); filter: blur(20px); }

/* Teléfono: marco oscuro + captura real de la app */
.phone {
  margin: 0; position: relative;
  width: 290px; aspect-ratio: 647 / 1400;
  padding: 9px; border-radius: 48px;
  background: linear-gradient(145deg, #2B2B2B, #111);
  box-shadow: 0 0 0 1.5px #3A3A3A inset, 0 40px 80px rgba(0, 0, 0, .55);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 40px; }
.phone-front { position: absolute; right: 40px; top: 10px; z-index: 2; }
.phone-back { position: absolute; left: 10px; top: 70px; width: 250px; rotate: -8deg; opacity: .9; z-index: 1; }
.hero-mascot { position: absolute; z-index: 3; width: 160px; right: 0; top: 0; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .45)); }
@keyframes bob { 50% { translate: 0 -12px; rotate: 4deg; } }

.chip {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 20px;
  background: #fff; color: var(--ink);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
  font-size: 13px; line-height: 1.3; color: var(--muted); text-align: left;
}
.chip b { display: block; color: var(--ink); font-size: 15px; }
.chip-ic { width: 42px; height: 42px; border-radius: 14px; background: var(--green); color: var(--black); display: grid; place-items: center; font-size: 22px; }
.chip-a { left: 0; bottom: 120px; animation: bob 5s ease-in-out infinite .6s; }
.chip-b { right: 6px; bottom: 30px; animation: bob 5.5s ease-in-out infinite 1.2s; }
.chip-b .chip-ic { background: var(--black); color: var(--green); }

/* ---------- Cinta ---------- */
.ticker { background: var(--green); color: var(--black); overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.ticker span { font-family: var(--font-display); font-weight: 600; font-size: 26px; white-space: nowrap; display: inline-flex; align-items: center; }
.ticker span::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--black); margin: 0 30px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.sec { padding: 110px 0; }
.sec-light { background: var(--bg); }
.sec-soft { background: var(--bg-soft); }
.sec-dark { background: var(--black); color: #fff; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.sec-head h2, .points-copy h2, .cta h2 { font-size: clamp(38px, 5vw, 60px); }
.sec-head p { margin-top: 16px; font-size: 19px; color: var(--muted); }
.kicker {
  display: inline-block; margin-bottom: 18px;
  padding: 6px 16px; border-radius: 999px;
  background: var(--green-50); color: var(--green-ink);
  font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.kicker-dark { background: rgba(66, 232, 66, .12); color: var(--green); }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.phone-sm { width: 240px; margin-bottom: 34px; box-shadow: 0 0 0 1.5px #3A3A3A inset, 0 30px 60px rgba(0, 0, 0, .18); }
.step-n {
  position: absolute; top: calc(240px * 1400 / 647 - 14px); left: 50%; translate: -50% 0;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: var(--black); border: 5px solid #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
}
.step h3 { font-size: 28px; margin-top: 18px; }
.step p { margin-top: 10px; color: var(--muted); max-width: 320px; }

/* Beneficios */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border-radius: var(--r-lg); padding: 32px;
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(0, 0, 0, .08); }
.f-ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--green-50); color: var(--green-ink); font-size: 28px; }
.f-ic-lg { width: 68px; height: 68px; font-size: 32px; border-radius: 22px; }
.feature h3 { font-size: 24px; margin: 22px 0 10px; }
.feature p { color: var(--muted); font-size: 16px; }

/* Puntos */
.points { position: relative; overflow: hidden; }
.points-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.points .lead { margin-top: 20px; }
.pts-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.pts-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: var(--r-md);
  background: var(--black-2); border: 1px solid var(--line-dark); color: #CFCFCF;
}
.pts-list li::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--green); flex: none; }
.pts-list b { color: #fff; }
.points-art { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.points-art .phone { z-index: 1; }

/* Locales y repartidores */
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.join-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 44px; border-radius: var(--r-xl);
  background: var(--bg-soft); border: 1px solid var(--line);
}
.join-card h3 { font-size: 38px; margin-top: 26px; }
.join-card > p { margin-top: 10px; font-size: 18px; color: var(--muted); }
.join-card-green { background: var(--green); border-color: var(--green); }
.join-card-green > p { color: rgba(0, 0, 0, .7); }
.join-card .f-ic { background: #fff; }
.join-card-green .f-ic { background: var(--black); color: var(--green); }
.checks { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 14px; flex: 1; }
.checks li { display: flex; gap: 12px; font-weight: 600; line-height: 1.45; }
.checks svg { font-size: 22px; color: var(--green-ink); margin-top: 1px; stroke-width: 2.6; }
.join-card-green .checks svg { color: var(--black); }

/* Preguntas */
.faq-in { max-width: 860px; }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); transition: box-shadow .2s; }
.faq details[open] { box-shadow: 0 16px 36px rgba(0, 0, 0, .06); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 26px; font-weight: 800; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green-50); color: var(--green-ink);
  font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1;
  transition: rotate .25s var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 26px 24px; color: var(--muted); }
.faq a { color: var(--green-ink); font-weight: 700; }

/* Descarga */
.cta { background: var(--green); color: var(--black); padding: 100px 0; overflow: hidden; }
.cta-in { display: flex; align-items: center; gap: 56px; }
.cta-mascot { width: 230px; flex: none; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .25)); }
.cta p { margin: 14px 0 30px; font-size: 19px; font-weight: 600; color: rgba(0, 0, 0, .72); }
.cta .store-btn { border-color: #000; }
.cta .store-btn:hover { border-color: #fff; }

/* Pie */
.foot { background: var(--black); color: #CFCFCF; padding: 72px 0 32px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.foot-brand p { margin-top: 14px; color: var(--muted-dark); }
.foot-links { display: grid; gap: 10px; align-content: start; }
.foot-links a, .foot-contact a { text-decoration: none; font-weight: 600; transition: color .2s; }
.foot-links a:hover, .foot-contact a:hover { color: var(--green); }
.foot-contact { display: grid; gap: 10px; align-content: start; }
.foot-contact span { color: #fff; font-weight: 800; }
.foot-contact a { display: inline-flex; align-items: center; gap: 10px; }
.foot-contact svg { font-size: 20px; color: var(--green); }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; font-size: 14px; color: var(--muted-dark); }

/* Aviso "muy pronto" */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100;
  translate: -50% 20px; opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100% - 32px); padding: 14px 22px; border-radius: 18px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 15px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  transition: opacity .25s, translate .3s var(--ease);
}
.toast.show { opacity: 1; translate: -50% 0; }
.toast img { width: 34px; }

/* Aparición al hacer scroll (solo con JS activo) */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero-in { grid-template-columns: 1fr; text-align: center; padding-top: 56px; padding-bottom: 72px; min-height: 0; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero .stores { justify-content: center; }
  .hero-art { height: 600px; max-width: 520px; width: 100%; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; gap: 64px; }
  .features { grid-template-columns: 1fr 1fr; }
  .points-in { grid-template-columns: 1fr; text-align: center; }
  .points-copy { display: flex; flex-direction: column; align-items: center; }
  .pts-list { text-align: left; }
  .join { grid-template-columns: 1fr; }
  .cta-in { flex-direction: column; text-align: center; gap: 28px; }
  .cta .stores { justify-content: center; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .wordmark { font-size: 26px; }
  .brand img { width: 32px; }
  .sec { padding: 80px 0; }
  .sec-head { margin-bottom: 44px; }
  .hero-art { height: 500px; }
  .phone { width: 230px; border-radius: 40px; padding: 7px; }
  .phone img { border-radius: 34px; }
  .phone-back { width: 190px; top: 60px; }
  .hero-mascot { width: 110px; }
  .chip { padding: 10px 14px 10px 10px; }
  .chip-ic { width: 36px; height: 36px; font-size: 19px; }
  .chip b { font-size: 14px; }
  .chip-a { bottom: 90px; }
  .chip-b { bottom: 14px; right: 0; }
  .stores { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
  .store-btn { justify-content: center; }
  .ticker span { font-size: 21px; }
  .ticker span::after { margin: 0 22px; }
  .phone-sm { width: 220px; }
  .step-n { top: calc(220px * 1400 / 647 - 14px); }
  .features { grid-template-columns: 1fr; }
  .feature { padding: 26px; }
  .join-card { padding: 32px 24px; border-radius: var(--r-lg); }
  .join-card h3 { font-size: 32px; }
  .join-card .btn { width: 100%; }
  .faq summary { padding: 18px 20px; font-size: 17px; }
  .faq details p { padding: 0 20px 20px; }
  .cta { padding: 76px 0; }
  .cta-mascot { width: 170px; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; }
}
