/* A tiempo en lo importante · micrositio
   Colores de la marca (lib/core/design.dart). Sin fuentes ni recursos externos. */

:root {
  --navy: #1b2e51;
  --navy-deep: #14223d;
  --navy-soft: #21487a;
  --gold: #a67c2e;
  --gold-light: #e0c07a;
  --gold-text: #86621f;
  --cream: #f3e9d2;
  --cream-ink: #2f2408;

  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-2: #efebe0;
  --text: #1b1f27;
  --muted: #4a5160;
  --line: #e3e0d6;
  --brand: #1b2e51;
  --accent-text: #86621f;
  --shadow: 0 1px 2px rgba(20, 34, 61, .06), 0 12px 32px -12px rgba(20, 34, 61, .18);

  --radius: 20px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1420;
    --surface: #172131;
    --surface-2: #121b29;
    --text: #e7ebf2;
    --muted: #b3bccb;
    --line: #26324a;
    --brand: #afc6ec;
    --accent-text: #e0c07a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --bg: #0d1420;
  --surface: #172131;
  --surface-2: #121b29;
  --text: #e7ebf2;
  --muted: #b3bccb;
  --line: #26324a;
  --brand: #afc6ec;
  --accent-text: #e0c07a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
}

*, *::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(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold-light); color: var(--cream-ink);
  padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 46, 81, .92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: #fff;
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(224, 192, 122, .35); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.header-cta { margin-left: 8px; }
@media (max-width: 760px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  border: 0;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-light); color: var(--cream-ink); box-shadow: 0 8px 20px -8px rgba(224, 192, 122, .55); }
.btn-gold:hover { background: #e8cb8b; }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 0 24px 0 18px; border-radius: 16px;
  background: #000; color: #fff; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
  transition: transform .2s, box-shadow .2s;
}
.store-badge:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .45), 0 10px 24px -10px rgba(0, 0, 0, .6); }
.store-badge svg { width: 28px; height: 28px; flex: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge small { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.store-badge strong { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy); color: #fff;
  padding: 72px 0 0;
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 1100px; height: 1100px; border-radius: 50%;
  right: -380px; top: -160px; background: var(--navy-soft);
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 520px; height: 520px; border-radius: 50%;
  right: 4%; top: 70px; border: 1px solid rgba(224, 192, 122, .22);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: end; }
.hero-copy { padding-bottom: 96px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold-light); border-radius: 2px; }
.hero h1 {
  font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.035em;
  font-weight: 800; margin: 20px 0 22px; color: var(--cream);
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero .lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: rgba(255, 255, 255, .84); max-width: 34ch; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 16px; list-style: none; padding: 0; margin: 36px 0 0; color: rgba(255, 255, 255, .8); font-size: 14px; font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--gold-light); flex: none; }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 560px; }
.hero-visual .phone { position: absolute; bottom: -90px; }
.hero-visual .phone.front { width: 300px; left: 50%; transform: translateX(-38%); z-index: 2; }
.hero-visual .phone.back { width: 260px; left: 50%; transform: translateX(-110%) rotate(-6deg); bottom: -40px; opacity: .92; }

@media (max-width: 920px) {
  .hero { padding-top: 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding-bottom: 24px; text-align: left; }
  .hero-visual { min-height: 440px; }
  .hero-visual .phone.front { width: 250px; }
  .hero-visual .phone.back { width: 215px; }
  .hero::before { width: 760px; height: 760px; right: -360px; top: auto; bottom: -300px; }
  .hero::after { display: none; }
}
@media (max-width: 420px) {
  .hero-visual { min-height: 380px; }
  .hero-visual .phone.front { width: 220px; transform: translateX(-30%); }
  .hero-visual .phone.back { width: 190px; transform: translateX(-88%) rotate(-6deg); }
}

/* ---------- Teléfono ---------- */
.phone {
  padding: 9px; border-radius: 40px;
  background: linear-gradient(160deg, #2a3a5c, #0b1222 55%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .55), 0 18px 36px -18px rgba(0, 0, 0, .45);
}
.phone picture { display: block; }
.phone img { border-radius: 32px; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #f7f5ef; }

/* ---------- Secciones ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 112px 0; }
@media (max-width: 720px) { .section { padding: 80px 0; } }
.section-head { max-width: 680px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--accent-text); font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; margin: 0 0 18px; text-wrap: balance; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.015em; margin: 0 0 10px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }

/* Pilares */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 32px; box-shadow: var(--shadow);
}
.pillar p { color: var(--muted); margin: 0; }
.icon-chip {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--cream); color: var(--navy); margin-bottom: 22px;
}
.icon-chip svg { width: 26px; height: 26px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-chip { background: #2a2414; color: var(--gold-light); } }
:root[data-theme="dark"] .icon-chip { background: #2a2414; color: var(--gold-light); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* Funciones en detalle */
.features { background: var(--surface-2); border-block: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature + .feature { margin-top: 128px; }
.feature.reverse .feature-media { order: -1; }
.feature-copy { max-width: 500px; }
.feature-copy h2 { font-size: clamp(30px, 3.6vw, 42px); }
.feature-copy > p { color: var(--muted); font-size: 18px; margin: 0 0 26px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.checks svg { width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
.feature-media { position: relative; display: flex; justify-content: center; padding: 24px 0; }
.feature-media::before {
  content: ""; position: absolute; inset: 8% 10%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(224, 192, 122, .38), transparent);
  z-index: 0;
}
.feature-media .phone { width: 290px; position: relative; z-index: 1; }
.feature-media .phone.offset { position: absolute; width: 240px; z-index: 0; transform: translate(-58%, 30px) rotate(-5deg); left: 50%; opacity: .9; }
.feature-media.pair .phone:not(.offset) { transform: translateX(22%); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature.reverse .feature-media { order: 0; }
  .feature + .feature { margin-top: 96px; }
  .feature-media .phone { width: 250px; }
  .feature-media .phone.offset { width: 205px; }
}

/* Principios de las ideas */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 30px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.value::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.value svg { width: 28px; height: 28px; color: var(--accent-text); margin-bottom: 18px; }
.value h3 { font-size: 19px; }
.value p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 980px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }
/* Privacidad */
.privacy { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.privacy::before {
  content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; border-radius: 50%;
  left: -260px; bottom: -320px; background: var(--navy);
}
.privacy .kicker { color: var(--gold-light); }
.privacy h2 { color: var(--cream); }
.privacy .section-head p { color: rgba(255, 255, 255, .78); }
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.privacy-item {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius); padding: 26px 24px;
}
.privacy-item svg { width: 26px; height: 26px; color: var(--gold-light); margin-bottom: 16px; }
.privacy-item h3 { font-size: 19px; color: #fff; }
.privacy-item p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 16px; }
.privacy-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); font-size: 15px; }
.privacy-foot a { color: var(--gold-light); font-weight: 700; }
@media (max-width: 920px) { .privacy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .privacy-grid { grid-template-columns: 1fr; } }

/* Claro y oscuro */
.themes { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.themes figure { margin: 0; text-align: center; }
.themes .phone { width: 250px; }
.themes figcaption { margin-top: 18px; color: var(--muted); font-size: 15px; font-weight: 600; }
@media (max-width: 600px) { .themes { gap: 16px; } .themes .phone { width: calc(50vw - 28px); padding: 6px; border-radius: 26px; } .themes .phone img { border-radius: 21px; } }

/* Preguntas */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; position: relative;
  font-weight: 700; font-size: 18px; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--accent-text); border-bottom: 2.5px solid var(--accent-text);
  transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* Llamado final */
.cta {
  background: var(--cream); color: var(--cream-ink); border-radius: 32px;
  padding: 72px 48px; text-align: center; position: relative; overflow: hidden; isolation: isolate;
}
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; border: 1.5px solid rgba(166, 124, 46, .3); }
.cta::before { width: 420px; height: 420px; left: -160px; top: -200px; }
.cta::after { width: 320px; height: 320px; right: -110px; bottom: -170px; }
.cta img { width: 76px; height: 76px; border-radius: 20px; margin: 0 auto 26px; box-shadow: 0 14px 30px -12px rgba(20, 34, 61, .5); }
.cta h2 { color: var(--navy); max-width: 16ch; margin-left: auto; margin-right: auto; }
.cta p { margin: 0 auto 32px; max-width: 46ch; font-size: 18px; color: #5a4a26; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta { background: #1d2738; color: var(--text); } :root:not([data-theme="light"]) .cta h2 { color: var(--cream); } :root:not([data-theme="light"]) .cta p { color: var(--muted); } }
:root[data-theme="dark"] .cta { background: #1d2738; color: var(--text); }
:root[data-theme="dark"] .cta h2 { color: var(--cream); }
:root[data-theme="dark"] .cta p { color: var(--muted); }
@media (max-width: 560px) { .cta { padding: 56px 22px; border-radius: 24px; } }

/* Pie */
.site-footer { padding: 64px 0 40px; color: var(--muted); font-size: 15px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-top .brand { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent-text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; }
.made-by {
  display: flex; align-items: center; gap: 18px; flex: 0 1 480px;
  padding: 14px 20px 14px 14px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.made-by:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-1px); }
.made-by-logo { flex: none; display: grid; place-items: center; width: 104px; height: 64px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(20, 34, 61, .08); }
.made-by-logo img { width: 80px; height: auto; }
.made-by-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.made-by-text strong { font-size: 17px; letter-spacing: -.01em; }
.made-by-text span { color: var(--muted); font-size: 14px; }
.made-by-ext { flex: none; width: 20px; height: 20px; margin-left: auto; color: var(--gold); }
@media (max-width: 560px) { .made-by { flex-basis: 100%; gap: 14px; } .made-by-logo { width: 84px; height: 56px; } .made-by-logo img { width: 66px; } .made-by-text strong { font-size: 16px; } }
.disclaimer { max-width: 60ch; margin: 0; font-size: 14px; }

/* Aparición suave */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Página de privacidad ---------- */
.doc-hero { background: var(--navy); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; isolation: isolate; }
.doc-hero::before { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; border-radius: 50%; right: -240px; top: -260px; background: var(--navy-soft); }
.doc-hero .wrap, .doc .wrap { max-width: 800px; }
.doc-hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.03em; margin: 18px 0 12px; color: var(--cream); }
.doc-hero p { margin: 0; color: rgba(255, 255, 255, .8); }
.doc { padding: 48px 0 32px; }
.doc .summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.doc .summary li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 600; }
.doc section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; margin: 0 0 16px; }
.doc h2 { color: var(--accent-text); font-size: 20px; letter-spacing: -.01em; margin: 0 0 12px; }
.doc p { margin: 0 0 14px; color: var(--text); }
.doc p:last-child { margin-bottom: 0; }
.doc .note { background: var(--cream); color: var(--cream-ink); border-radius: 14px; padding: 14px 18px; }
.doc .note a { color: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .doc .note { background: #2a2414; color: var(--text); } :root:not([data-theme="light"]) .doc .note a { color: var(--gold-light); } }
:root[data-theme="dark"] .doc .note { background: #2a2414; color: var(--text); }
:root[data-theme="dark"] .doc .note a { color: var(--gold-light); }
.back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; margin-top: 12px; }
@media (max-width: 560px) { .doc section { padding: 22px 20px; } }
