/* Los mismos colores y la misma letra que la app (app/shared/.../ui/Theme.kt). */

@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka_medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka_bold.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }

:root {
  --brand: #FF3B47;
  --brand-deep: #D61F2C;
  --brand-soft: #FFE3E5;
  --sky: #7CC8FF;
  --sky-deep: #1E7BFF;
  --sky-light: #E8F3FF;
  --sun: #FFCB2F;
  --sun-deep: #F5A300;
  --grass: #22B864;
  --grass-deep: #168A4A;
  --grape: #7C4DFF;
  --berry: #E5484D;
  --night: #1B1D29;

  --ink: #1B1D29;
  --ink-soft: #3A3E52;
  --muted: #5F6478;
  --line: #E4E6EF;
  --canvas: #F2F3F8;
  --surface: #FFFFFF;
  --surface-alt: #F7F8FB;
  --shadow: 0 1px 2px rgba(27, 29, 41, .06), 0 10px 30px rgba(27, 29, 41, .08);
  --shadow-lg: 0 30px 80px rgba(27, 29, 41, .18);
  --blob: .55;

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-soft: #3D2027;
    --sky-light: #1B2B42;
    --ink: #ECEEF6;
    --ink-soft: #C9CDDB;
    --muted: #9EA4B8;
    --line: #343849;
    --canvas: #121420;
    --surface: #1D202C;
    --surface-alt: #262A38;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .3);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, .55);
    --blob: .28;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Fredoka", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.01em; }
p { margin: 0; }
svg { flex: none; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--surface); padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; border-radius: 10px; }

/* ------------------------------------------------------------ botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 18px; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg { width: 22px; height: 22px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 5px 0 var(--brand-deep); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--brand-deep); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--brand-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 2px var(--line) inset, 0 4px 0 var(--line); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--night); box-shadow: 0 5px 0 rgba(0, 0, 0, .18); }
.btn-light:hover { transform: translateY(-2px); }
.btn-sm { font-size: 16px; padding: 10px 18px; box-shadow: 0 4px 0 var(--brand-deep); }
.btn-soon { width: 100%; background: var(--surface-alt); color: var(--muted); box-shadow: 0 0 0 2px var(--line) inset; cursor: not-allowed; font-size: 16px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
}
.pill-sun { background: var(--sun); color: var(--night); }
.pill-brand { background: var(--brand-soft); color: var(--brand-deep); }
.pill-grass { background: color-mix(in srgb, var(--grass) 18%, transparent); color: var(--grass-deep); }
.pill-sky { background: var(--sky-light); color: var(--sky-deep); }
@media (prefers-color-scheme: dark) {
  .pill-brand { color: #FFB3B8; }
  .pill-grass { color: #5BE39A; }
  .pill-sky { color: var(--sky); }
}

/* ------------------------------------------------------------ cabecera */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 24px; }
.brand img { width: 44px; height: auto; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; color: var(--ink-soft); padding: 8px 14px; border-radius: 999px; }
.nav-links a:hover { background: var(--surface); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 4px; box-shadow: 0 0 0 1px var(--line) inset; }
.lang button {
  font: inherit; font-weight: 700; font-size: 14px; border: 0; background: transparent; color: var(--muted);
  padding: 6px 10px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--night); color: #fff; }
@media (prefers-color-scheme: dark) { .lang button[aria-pressed="true"] { background: var(--ink); color: var(--night); } }

/* ------------------------------------------------------------ portada */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--blob); pointer-events: none; }
.blobs .b1 { width: 520px; height: 520px; background: var(--sky-deep); top: -180px; left: -160px; }
.blobs .b2 { width: 460px; height: 460px; background: var(--brand); top: -120px; right: -120px; }
.blobs .b3 { width: 380px; height: 380px; background: var(--sun); bottom: -160px; right: 20%; }
.blobs .b4 { width: 300px; height: 300px; background: var(--grass); bottom: -120px; left: 10%; opacity: calc(var(--blob) * .6); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 80px); margin: 20px 0 20px; font-weight: 700; }
.hl {
  background: linear-gradient(100deg, var(--sky-deep) 0%, var(--brand) 45%, var(--sun-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-facts { list-style: none; display: flex; gap: 28px; padding: 0; margin: 36px 0 0; }
.hero-facts li { display: flex; flex-direction: column; color: var(--muted); font-weight: 500; }
.hero-facts b { font-size: 32px; color: var(--ink); line-height: 1.1; }

.hero-art { position: relative; padding: 20px 0 60px; }
.device { position: relative; background: var(--night); box-shadow: var(--shadow-lg); }
.device img { width: 100%; height: auto; }
.tablet { border-radius: 30px; padding: 12px; }
.tablet img { border-radius: 20px; }
.phone { border-radius: 34px; padding: 8px; }
.phone img { border-radius: 27px; }
.hero-art .tablet { transform: rotate(-2deg); }
.hero-art .phone { position: absolute; width: 30%; right: -2%; bottom: 0; transform: rotate(5deg); animation: bob 6s ease-in-out infinite; }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px;
  padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap;
}
.chip-a { left: -4%; bottom: 14%; animation: bob 7s ease-in-out infinite -2s; }
.chip-b { left: 8%; top: -2%; animation: bob 8s ease-in-out infinite -4s; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-grass { background: var(--grass); }
.dot-sky { background: var(--sky-deep); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ------------------------------------------------------------ plataformas */
.platforms { padding: 8px 0 24px; text-align: center; }
.platforms p { color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.platforms ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.platforms li {
  background: var(--surface); padding: 8px 18px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 0 0 1px var(--line) inset;
}

/* ------------------------------------------------------------ secciones */
.section { padding: 96px 0; }
.section-alt { background: var(--surface-alt); border-block: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { .section-alt { background: #171A26; } }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 50px); margin: 12px 0 16px; }
.section-head p { color: var(--muted); font-size: 19px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border-radius: var(--r-md); padding: 28px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card h3 { font-size: 22px; margin: 18px 0 8px; }
.card p { color: var(--muted); }
.icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; }
.icon svg { width: 30px; height: 30px; fill: currentColor; }
.i-grass { background: color-mix(in srgb, var(--grass) 16%, transparent); color: var(--grass); }
.i-sky { background: var(--sky-light); color: var(--sky-deep); }
.i-brand { background: var(--brand-soft); color: var(--brand); }
.i-sun { background: color-mix(in srgb, var(--sun) 24%, transparent); color: var(--sun-deep); }
.i-grape { background: color-mix(in srgb, var(--grape) 16%, transparent); color: var(--grape); }
.i-berry { background: color-mix(in srgb, var(--berry) 14%, transparent); color: var(--berry); }
@media (prefers-color-scheme: dark) { .i-sky { color: var(--sky); } .i-grape { color: #A98BFF; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--surface); border-radius: var(--r-md); padding: 32px 28px; box-shadow: var(--shadow); position: relative; }
.step h3 { font-size: 24px; margin: 20px 0 8px; }
.step p { color: var(--muted); }
.num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 24px; }
.n-brand { background: var(--brand); box-shadow: 0 4px 0 var(--brand-deep); }
.n-sky { background: var(--sky-deep); box-shadow: 0 4px 0 #1259C2; }
.n-grass { background: var(--grass); box-shadow: 0 4px 0 var(--grass-deep); }

.tour-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: center; }
.tour-row + .tour-row { margin-top: 96px; }
.tour-row.flip .tour-copy { order: 2; }
.tour-copy h3 { font-size: clamp(28px, 3vw, 38px); margin: 16px 0 14px; }
.tour-copy p { color: var(--muted); font-size: 19px; }
.device.solo { width: min(320px, 70%); justify-self: center; transform: rotate(3deg); }

.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.dl-card {
  background: var(--surface); border-radius: var(--r-md); padding: 32px 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
}
.dl-card h3 { font-size: 26px; margin-top: 10px; }
.dl-card p { color: var(--muted); margin-bottom: 18px; flex: 1; }
.dl-card .btn { white-space: nowrap; }
.os-icon { width: 72px; height: 72px; border-radius: 22px; background: var(--surface-alt); display: grid; place-items: center; color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset; }
.os-icon svg { width: 38px; height: 38px; }
.os-icon.tux { color: var(--night); }
@media (prefers-color-scheme: dark) { .os-icon.tux { color: #05060A; } }
.dl-card .btn-soon::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sun-deep); }

.stores { margin-top: 40px; text-align: center; }
.stores-title { font-weight: 700; font-size: 20px; margin-bottom: 18px; }
.store-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.store {
  position: relative; display: inline-flex; align-items: center; gap: 12px; min-width: 220px;
  background: var(--night); color: #fff; padding: 12px 22px 12px 18px; border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset; cursor: not-allowed;
}
.store svg { width: 32px; height: 32px; }
.store-text { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.store-text small { font-size: 13px; opacity: .8; }
.store-text b { font-size: 21px; }
.store::after {
  content: attr(data-soon); position: absolute; top: -13px; right: -10px;
  background: var(--sun); color: var(--night); font-weight: 700; font-size: 12px; letter-spacing: .04em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px; box-shadow: 0 2px 0 var(--sun-deep);
}
@media (prefers-color-scheme: dark) { .store { background: #05060A; box-shadow: 0 0 0 1px var(--line) inset; } }
.stores-note { color: var(--muted); margin-top: 18px; font-size: 15px; }

.final {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  border-radius: var(--r-lg); padding: 64px 24px;
  background: linear-gradient(120deg, var(--sky-deep) 0%, var(--grape) 45%, var(--brand) 100%);
  box-shadow: var(--shadow-lg);
}
.final img { width: 96px; height: auto; margin: 0 auto 20px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .25)); }
.final h2 { font-size: clamp(28px, 3.6vw, 44px); max-width: 22ch; margin: 0 auto 28px; }

.footer { padding: 32px 0 48px; color: var(--muted); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.footer .brand { font-size: 20px; color: var(--ink); }
.footer .brand img { width: 32px; }

/* ------------------------------------------------------------ animación al aparecer */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art .phone, .float-chip { animation: none; }
}

/* ------------------------------------------------------------ pantallas pequeñas */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .cta-row, .hero-facts { justify-content: center; }
  .hero-art { max-width: 680px; margin: 0 auto; width: 100%; }
  .cards { grid-template-columns: 1fr 1fr; }
  .tour-row { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .tour-row.flip .tour-copy { order: 0; }
  .tour-copy p { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .steps, .dl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-row { height: 64px; gap: 12px; }
  .brand { font-size: 21px; }
  .brand img { width: 38px; }
  .nav-cta { display: none; }
  .hero { padding-top: 32px; }
  .blobs i { opacity: calc(var(--blob) * .55); filter: blur(60px); }
  .blobs .b1, .blobs .b2 { width: 300px; height: 300px; }
  .cards { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero-facts { gap: 20px; }
  .float-chip { font-size: 13px; padding: 8px 12px; }
  .chip-a { left: 0; }
  .btn { font-size: 17px; }
  .store { min-width: 0; width: 100%; max-width: 300px; }
}
