/* Vigía del Serantes: colores y letras de la app (vigia-android). */
@font-face { font-family: "Bitter"; src: url("/fuentes/bitter-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Bitter"; src: url("/fuentes/bitter-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fuentes/nunito-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fuentes/nunito-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fuentes/nunito-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --ink: #1e1a26;
  --muted: #4d4a57;
  --purple: #51238f;
  --purple-2: #6a2dbe;
  --lila: #eee7f7;
  --lila-2: #f7f5fb;
  --cream: #f5ecd0;
  --green: #8fd0a8;
  --green-2: #5fb386;
  --green-ink: #1f6b45;
  --mint: #e3f3ea;
  --sea: #2581a8;
  --night: #241d33;
  --night-2: #1a1526;
  --gold: #c8a24a;
  --sun: #f2dfa0;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 10px 30px rgb(30 26 38 / .08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--lila-2); color: var(--ink);
  font: 400 1.0625rem/1.6 "Nunito", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: "Bitter", Georgia, serif; font-weight: 900; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-2); }
:focus-visible { outline: 3px solid var(--purple-2); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; padding: 8px 14px; background: var(--white); border-radius: 8px; }
.skip:focus { left: 8px; }

/* Animaciones (static/js/vigia.js): la imagen fija hasta que carga la animación */
.lottie { display: block; position: relative; aspect-ratio: var(--r, 1); }
.lottie > img { width: 100%; }
.lottie.is-animated > img { display: none; }
.lottie > svg { display: block; width: 100% !important; height: 100% !important; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 10; background: rgb(247 245 251 / .92); backdrop-filter: blur(8px); border-bottom: 1px solid rgb(30 26 38 / .06); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 900 1.05rem/1.1 "Bitter", serif; }
.brand img { border-radius: 10px; }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem; }
.menu a:hover { color: var(--purple); }
.lang {
  margin-left: auto; padding: 7px 14px; border: 2px solid var(--purple); border-radius: 999px;
  color: var(--purple); font-weight: 800; font-size: .9rem; text-decoration: none; white-space: nowrap;
}
.menu + .lang { margin-left: 0; }
.lang:hover { background: var(--purple); color: var(--white); }
@media (max-width: 860px) { .menu { display: none; } .menu + .lang { margin-left: auto; } }
@media (max-width: 420px) { .brand span { font-size: .95rem; } }

/* Portada */
/* El fondo, el mismo lila que el de static/img/pantallas.webp, para que no se vea el borde. */
.hero { position: relative; overflow: hidden; background: var(--lila); padding: 48px 0 150px; }
.hero-sun { position: absolute; z-index: 1; width: 150px; height: 150px; border-radius: 50%; background: var(--sun); top: 36px; right: 5%; opacity: .7; pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: center; }
.hero-kaia { width: 150px; margin: 0 0 6px -8px; animation: fly 5s ease-in-out infinite; }
@keyframes fly { 0%, 100% { transform: translate(0, 0) rotate(-2deg); } 50% { transform: translate(8px, -10px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .hero-kaia { animation: none; } }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 800; color: var(--purple); margin-bottom: 8px; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); margin-bottom: .2em; }
.hero-lema { font: 700 clamp(1.2rem, 2.6vw, 1.5rem)/1.3 "Bitter", serif; color: var(--purple); margin-bottom: .8em; }
.hero-entrada { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero-shots img { width: 100%; }
.hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 130px; }
@media (max-width: 900px) {
  .hero { padding: 28px 0 110px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-sun { width: 110px; height: 110px; top: 30px; right: 6%; }
  .hills { height: 90px; }
}

/* Tiendas (aún no publicadas) */
.stores { margin-top: 24px; }
.stores-title { font-weight: 800; margin-bottom: 8px; }
.stores-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 10px; }
.store {
  padding: 10px 20px; border-radius: 14px; background: var(--ink); color: var(--white);
  font-weight: 800; font-size: 1rem; box-shadow: 0 4px 0 #000;
}
.stores-note { font-size: .95rem; color: var(--muted); margin: 0; }
.stores-end { text-align: center; margin-top: 56px; }
.stores-end .stores-list { justify-content: center; }

/* Cifras */
.numbers { background: var(--sea); color: var(--white); }
.numbers-in { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 40px; list-style: none; margin-block: 0; padding: 18px 0 22px; font-weight: 800; font-size: 1.15rem; }
@media (max-width: 560px) { .numbers-in { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 6px 36px; } }
.numbers strong { font: 900 2rem/1 "Bitter", serif; color: var(--sun); margin-right: 4px; }

section { scroll-margin-top: 72px; }
.section-lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; margin-bottom: 32px; }

/* Kaia */
.kaia { padding: 80px 0 40px; }
.kaia-in { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: center; max-width: 920px; }
.kaia-img { width: 260px; }
.bubble { position: relative; margin: 0 0 20px; padding: 22px 26px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--purple); }
.bubble p { margin: 0; font: 700 1.2rem/1.45 "Bitter", serif; }
.kaia-texto { color: var(--muted); font-size: 1.1rem; }
@media (max-width: 700px) {
  .kaia { padding-top: 56px; }
  .kaia-in { grid-template-columns: 1fr; gap: 12px; }
  .kaia-img { width: 160px; }
}

/* Cómo se juega */
.how { padding: 56px 0 72px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0 0 48px; }
.step { background: var(--white); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%;
  background: var(--purple); color: var(--white); font: 900 1.2rem/1 "Bitter", serif;
}
.step p { margin: 0; color: var(--muted); }
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.phones img { width: 100%; filter: drop-shadow(0 14px 24px rgb(30 26 38 / .14)); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; }
  .phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-inline: -16px; padding: 0 16px 12px; }
  .phones li { flex: 0 0 62%; scroll-snap-align: center; }
}

/* Las 7 paradas: un camino de puntos que sube */
.route { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: -12px 0 40px; }
.route li { padding: 8px 16px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow); color: var(--muted); }
.route strong { color: var(--green-ink); font-weight: 800; }
.stops { padding: 72px 0 80px; background: linear-gradient(180deg, var(--mint), #d3ecdd); }
.trail { position: relative; list-style: none; padding: 0; margin: 0 auto; max-width: 880px; display: flex; flex-direction: column-reverse; gap: 28px; }
.trail::before {
  content: ""; position: absolute; left: 50%; top: 40px; bottom: 40px; width: 0;
  border-left: 5px dotted #8a6a3b; transform: translateX(-50%);
}
.trail-stop { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); align-items: center; gap: 24px; }
.seal { grid-column: 2; grid-row: 1; width: 120px; border-radius: 50%; background: var(--white); box-shadow: 0 6px 18px rgb(31 107 69 / .18); }
.trail-card { grid-row: 1; background: var(--white); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.trail-stop:nth-child(odd) .trail-card { grid-column: 1; }
.trail-stop:nth-child(even) .trail-card { grid-column: 3; }
.trail-card h3 { margin-bottom: .2em; }
.trail-card p:last-child { margin: 0; color: var(--muted); }
.trail-n { margin: 0 0 4px; font-weight: 800; font-size: .88rem; color: var(--green-ink); }
.trail-seal { margin: 0 0 8px; font-weight: 800; color: var(--purple); }
.trail-end .seal { width: 150px; background: none; box-shadow: none; }
.trail-end .trail-card { background: var(--purple); color: var(--white); }
.trail-end .trail-card p:last-child { color: rgb(255 255 255 / .85); }
@media (max-width: 700px) {
  .trail::before { left: 44px; }
  .trail-stop { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .seal, .trail-end .seal { grid-column: 1; width: 88px; }
  .trail-stop:nth-child(odd) .trail-card, .trail-stop:nth-child(even) .trail-card { grid-column: 2; }
}

/* Para toda la familia */
.families { padding: 80px 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.card { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 16px; background: var(--lila); color: var(--purple); }
.card-icon .icon { width: 26px; height: 26px; }
.card p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } }

/* Una app tranquila: de noche, como la cima */
.calm { padding: 80px 0; background: radial-gradient(circle at 80% 20%, #4a3a2a 0, transparent 40%), linear-gradient(180deg, var(--night), var(--night-2)); color: var(--white); }
.calm-in { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.15rem; font-weight: 700; }
.checks .icon { margin-top: 3px; padding: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--green-2); color: var(--white); stroke-width: 3; }
.calm-note { color: rgb(255 255 255 / .8); max-width: 36em; margin: 0; }
.calm-note a { color: var(--sun); }
.calm-kaia { width: 280px; filter: drop-shadow(0 0 40px rgb(242 223 160 / .35)); }
@media (max-width: 760px) { .calm-in { grid-template-columns: 1fr; } .calm-kaia { width: 170px; order: -1; } }

/* Regla de oro y cierre */
.rule { padding: 80px 0 88px; background: linear-gradient(180deg, var(--lila-2), var(--cream)); }
.rule-card {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: center;
  max-width: 860px; margin: 0 auto; padding: 28px 32px; border: 3px solid var(--gold); border-radius: var(--radius);
  background: var(--white); box-shadow: inset 0 0 0 6px var(--white), inset 0 0 0 7px rgb(200 162 74 / .45);
}
.rule-card h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.rule-card p { margin: 0; font-size: 1.15rem; }
.rule-kaia { width: 180px; }
@media (max-width: 600px) { .rule-card { grid-template-columns: 1fr; padding: 24px; } .rule-kaia { width: 120px; } }

/* Pie */
.foot { background: var(--ink); color: rgb(255 255 255 / .85); padding: 40px 0 32px; font-size: .95rem; }
.foot-in { display: grid; gap: 20px; }
.foot-brand { display: flex; gap: 16px; align-items: center; }
.foot-brand img { width: 72px; }
.foot-brand p { margin: 0; }
.foot-brand strong { color: var(--white); font-family: "Bitter", serif; font-size: 1.1rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--white); font-weight: 700; }
.foot-links a[aria-current] { color: var(--sun); }
.foot-note { margin: 0; color: rgb(255 255 255 / .6); font-size: .88rem; }

/* Ayuda, privacidad y 404 */
.doc { max-width: 760px; padding: 48px 0 72px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.doc h2 { font-size: 1.5rem; margin-top: 1.6em; }
.doc-lead { font-size: 1.2rem; color: var(--muted); }
.doc-date { color: var(--muted); font-weight: 700; }
.doc-kaia { width: 120px; margin-bottom: 8px; }
.faq { display: grid; gap: 12px; margin-top: 28px; }
.faq details { background: var(--white); border-radius: 16px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 800; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 900 1.4rem/1 "Bitter", serif; color: var(--purple); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }
.doc-404 { text-align: center; }
.doc-404 .doc-kaia { margin-inline: auto; width: 160px; }
.btn { display: inline-block; padding: 14px 26px; border-radius: 16px; background: var(--purple); color: var(--white); font-weight: 800; text-decoration: none; box-shadow: 0 4px 0 #36175f; }
.btn:hover { background: var(--purple-2); color: var(--white); }
