/* Landing de descarga. Paleta: branding/README.md */
:root {
  --bordo: #5c1414;
  --bordo-2: #712921;
  --dorado: #e4953a;
  --dorado-sombra: #b56a1e;
  --crema: #fae4b9;
  --crema-claro: #fdf4e2;
  --tinta: #3a1a12;
  --tinta-suave: #6b4a3c;
  --cielo-1: #8a7cb2;
  --cielo-2: #b091b4;
  --cielo-3: #e4aaa5;
  --cielo-4: #f5ba92;
  --cielo-5: #fad08c;
  --verde: #5f7f3e;
  --radio: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 600;
  color: var(--tinta);
  background: var(--crema-claro);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 800;
  font-variation-settings: "SOFT" 100;
  color: var(--bordo);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: max(24px, env(safe-area-inset-top)) 16px 72px;
  background:
    linear-gradient(180deg, var(--cielo-1) 0%, var(--cielo-2) 28%, var(--cielo-3) 55%, var(--cielo-4) 78%, var(--cielo-5) 100%);
  overflow: hidden;
}
.hero::after { /* colinas low-poly */
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 72px;
  background: var(--crema-claro);
  clip-path: polygon(0 55%, 12% 30%, 24% 58%, 38% 22%, 52% 52%, 66% 26%, 80% 56%, 92% 32%, 100% 48%, 100% 100%, 0 100%);
}
.escudo {
  width: min(78vw, 340px);
  margin: 4px auto 6px;
  filter: drop-shadow(0 10px 18px rgba(60, 20, 40, .28));
}
.hero h1 {
  font-size: clamp(30px, 8.4vw, 48px);
  color: var(--crema-claro);
  text-shadow: 0 2px 0 var(--bordo-2), 0 6px 18px rgba(60, 20, 40, .35);
}
.lead {
  max-width: 30ch;
  margin: 12px auto 22px;
  font-size: 18px;
  font-weight: 700;
  color: var(--tinta);
}
.soon-note { position: relative; z-index: 1; margin: 12px auto 0; max-width: 32ch; font-size: 14px; color: var(--tinta-suave); }
.scroll-cue {
  position: relative; z-index: 1;
  display: inline-block; margin-top: 18px;
  font-weight: 800; font-size: 15px; color: var(--bordo);
  text-decoration: none;
}
.scroll-cue span { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- Botones de tienda ---------- */
.stores {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.store-badge img { height: 54px; width: auto; }
.store-android img { height: 78px; margin: -12px 0; } /* el PNG oficial de Play trae margen propio */
.store-soon {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-width: 168px; min-height: 54px; padding: 8px 18px;
  border-radius: 12px;
  border: 2px dashed var(--bordo-2);
  background: rgba(253, 244, 226, .75);
  color: var(--bordo);
  font-weight: 800; font-size: 18px; line-height: 1.1; text-align: left;
  cursor: default;
}
.store-soon small { font-size: 12px; font-weight: 700; letter-spacing: .3px; color: var(--tinta-suave); }

/* ---------- Bloques ---------- */
.features {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 8px;
  display: flex; flex-direction: column; gap: 56px;
}
.feature { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.phone {
  margin: 0;
  width: min(68vw, 270px);
  aspect-ratio: 9 / 16;
  padding: 8px;
  border-radius: 34px;
  background: linear-gradient(145deg, var(--bordo-2), var(--bordo));
  box-shadow: 0 0 0 3px var(--dorado), 0 18px 40px rgba(92, 20, 20, .28);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }
.feature-text { max-width: 34rem; }
.kicker {
  margin: 0 0 6px;
  font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--dorado-sombra);
}
.feature h2 { font-size: clamp(26px, 6.8vw, 36px); }
.feature-text p:last-child { margin: 10px 0 0; font-size: 17px; color: var(--tinta-suave); }

/* ---------- Descarga ---------- */
.download {
  margin: 64px 16px 0;
  padding: 36px 20px 40px;
  border-radius: var(--radio);
  text-align: center;
  background: var(--crema);
  border: 3px solid var(--dorado);
  box-shadow: inset 0 0 0 6px var(--crema), inset 0 0 0 8px var(--bordo-2);
}
.download h2 { font-size: clamp(30px, 8vw, 42px); }
.download p { margin: 8px 0 20px; font-size: 17px; color: var(--tinta-suave); }

/* ---------- Pie ---------- */
.foot {
  text-align: center;
  padding: 40px 16px max(32px, env(safe-area-inset-bottom));
  color: var(--tinta-suave);
  font-size: 14px;
}
.foot-brand { margin: 0; font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 24px; color: var(--bordo); }
.foot nav { margin: 8px 0; }
.foot a { color: var(--bordo-2); font-weight: 800; }
.legal { max-width: 46ch; margin: 12px auto 0; font-size: 12px; opacity: .8; }

a:focus-visible { outline: 3px solid var(--dorado); outline-offset: 3px; border-radius: 6px; }

/* ---------- Escritorio ---------- */
@media (min-width: 820px) {
  .hero { padding-top: 40px; padding-bottom: 96px; }
  .hero::after { height: 96px; }
  .features { gap: 80px; padding-top: 40px; }
  .feature { flex-direction: row; justify-content: center; gap: 64px; text-align: left; }
  .feature.flip { flex-direction: row-reverse; }
  .phone { width: 280px; flex: none; }
  .download { max-width: 760px; margin: 80px auto 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; }
}
