/* Tipografías alojadas en el propio sitio (Fraunces y Source Sans 3, licencia SIL OFL) */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(fonts/fraunces-latin.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/sourcesans3-latin.woff2) format("woff2"); }
  :root {
    color-scheme: light dark;
    --bg: #F6F8FE;
    --bg-alt: #EAF0FD;
    --surface: #FFFFFF;
    --ink: #14213D;
    --muted: #4A5778;
    --line: #D9E1F4;
    --accent: #2F5BEA;       /* 5,6:1 sobre blanco */
    --accent-soft: #DFE8FD;
    --btn-bg: #2F5BEA;
    --btn-ink: #FFFFFF;
    --btn-bg-hover: #2347C0;
    --gold-bg: #E3F4EA;
    --gold-ink: #14532D;
    --shadow: 0 12px 34px rgba(20, 40, 110, .12);
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #0E1424;
      --bg-alt: #121A2E;
      --surface: #171F35;
      --ink: #EEF2FF;
      --muted: #A3B0D0;
      --line: #27314D;
      --accent: #86A2FF;
      --accent-soft: #1A2748;
      --btn-bg: #86A2FF;
      --btn-ink: #0B1330;
      --btn-bg-hover: #A4BAFF;
      --gold-bg: #11301F;
      --gold-ink: #8FE0B1;
      --shadow: 0 12px 34px rgba(0, 0, 0, .45);
    }
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 76px; }
  body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
  }
  h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
  p { margin: 0; }
  a { color: var(--accent); }
  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
  section { padding: 84px 0; }
  .alt { background: var(--bg-alt); }
  .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
  .section-head { max-width: 680px; margin-bottom: 44px; }
  .section-head h2 { font-size: clamp(28px, 4.4vw, 40px); margin-bottom: 14px; }
  .section-head p { color: var(--muted); }

  /* Navegación */
  header.nav {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 22px; margin-right: auto; }
  .brand img { width: 34px; height: 34px; border-radius: 9px; }
  .nav a.link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
  .nav a.link:hover { color: var(--ink); }
  @media (max-width: 760px) { .nav a.link { display: none; } }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--btn-bg); color: var(--btn-ink);
    font: 700 16px/1 var(--sans); text-decoration: none;
    padding: 15px 24px; border-radius: 14px; border: 0;
    transition: background .15s, transform .1s;
  }
  .btn:hover { background: var(--btn-bg-hover); }
  .btn:active { transform: scale(.98); }
  .btn.small { padding: 10px 16px; font-size: 14px; border-radius: 11px; }
  .btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
  .btn.ghost:hover { background: var(--accent-soft); }
  a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

  /* Hero */
  .hero { padding: 64px 0 40px; background: radial-gradient(900px 420px at 80% -10%, var(--accent-soft), transparent 70%); }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
  .pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 99px; margin-bottom: 22px; }
  .pill i { width: 8px; height: 8px; border-radius: 50%; background: #2E9E5B; display: inline-block; }
  .hero h1 { font-size: clamp(36px, 6vw, 58px); margin-bottom: 20px; }
  .hero h1 em { font-style: normal; color: var(--accent); }
  .hero .lead { font-size: 19px; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
  .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
  .fineprint { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 520px; }
  .trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
  .trust span { font-size: 14px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; }
  @media (max-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-phones { order: -1; } }

  /* Móviles con capturas reales de la app (datos de ejemplo, sin datos reales) */
  .hero-phones { display: flex; justify-content: center; align-items: flex-end; }
  .phone {
    --p-ink: #1F2937; --p-muted: #4B5563; --p-line: #E5E7EB; --p-brand: #2F5BEA;
    width: 216px; flex: none; aspect-ratio: 9 / 18.5; border-radius: 34px; padding: 8px;
    background: #141B2E; box-shadow: var(--shadow), inset 0 0 0 1.5px #2C3856;
    position: relative;
  }
  .phone .screen { width: 100%; height: 100%; border-radius: 27px; overflow: hidden; color: var(--p-ink); background: linear-gradient(180deg, #DFE8FD, #fff 38%); padding: 30px 12px 0; font-size: 11.5px; line-height: 1.35; position: relative; }
  .phone .screen::before { content: ""; position: absolute; top: 9px; left: 50%; width: 54px; height: 6px; margin-left: -27px; border-radius: 9px; background: #141B2E; }
  .phone .screen.shot { padding: 0; background: #fff; }
  .phone .screen.shot::before { display: none; }
  .phone .screen.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .phone.back { width: 184px; margin: 0 -26px 0 0; transform: translateY(26px) rotate(-5deg); opacity: .96; }
  .phone.back.r { margin: 0 0 0 -26px; transform: translateY(26px) rotate(5deg); }
  .phone.front { z-index: 2; }
  @media (max-width: 620px) { .phone.back { display: none; } .phone { width: 240px; } }

  /* Qué es */
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
  .two p + p { margin-top: 16px; }
  .two p { color: var(--muted); }
  .two p strong { color: var(--ink); }
  .callout { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
  .callout h3 { font-size: 21px; margin-bottom: 14px; }
  .callout ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
  .callout li { display: flex; gap: 12px; color: var(--muted); font-size: 16px; }
  .callout li b { color: var(--ink); }
  .callout li::before { content: "✓"; color: var(--accent); font-weight: 800; flex: none; }
  @media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

  /* Funciones */
  .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .feat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
  .feat .ico { width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; }
  .feat h3 { font-size: 19px; margin-bottom: 8px; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
  .feat p { color: var(--muted); font-size: 16px; }
  .feat .plan { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 2px 8px; vertical-align: middle; }
  @media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 580px) { .grid { grid-template-columns: 1fr; } }

  /* Cómo funciona */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .step { position: relative; padding: 28px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
  .step .n { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 12px; }
  .step h3 { font-size: 21px; margin-bottom: 8px; }
  .step p { color: var(--muted); font-size: 16px; }
  @media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

  /* Planes */
  .rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .rule { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
  .rule.pop { border: 2px solid var(--accent); box-shadow: var(--shadow); }
  .rule h3 { font-size: 22px; margin-bottom: 6px; }
  .price { font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1.1; margin-bottom: 4px; }
  .price small { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--muted); }
  .price-sub { color: var(--muted); font-size: 14px; margin-bottom: 14px; min-height: 22px; }
  .rule ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
  .rule li { display: flex; gap: 10px; color: var(--muted); font-size: 16px; }
  .rule li::before { content: "✓"; color: var(--accent); font-weight: 800; flex: none; }
  .deadline { grid-column: 1 / -1; background: var(--gold-bg); border-color: transparent; }
  .deadline h3, .deadline p { color: var(--gold-ink); }
  .deadline p { font-size: 16px; }
  @media (max-width: 860px) { .rules { grid-template-columns: 1fr; } }

  /* Preguntas */
  .faq { max-width: 780px; display: grid; gap: 10px; }
  details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
  summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); }
  details[open] summary::after { content: "–"; }
  details p { color: var(--muted); padding-bottom: 18px; font-size: 16px; }

  /* Descarga */
  .download { text-align: center; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
  .download .section-head { margin-left: auto; margin-right: auto; }
  .dl-card { max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px 28px; box-shadow: var(--shadow); }
  .dl-card .btn { font-size: 18px; padding: 18px 30px; }
  .dl-card .btn.ghost { font-size: 16px; padding: 14px 22px; margin-top: 12px; }
  .meta { margin-top: 14px; font-size: 14px; color: var(--muted); }
  .divider { display: flex; align-items: center; gap: 12px; margin: 28px 0; color: var(--muted); font-size: 14px; }
  .divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
  .qr img { width: 176px; height: 176px; padding: 12px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
  .qr p { font-size: 14px; color: var(--muted); margin-top: 10px; }
  .install { text-align: left; margin: 30px auto 0; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
  .install h3 { font-family: var(--sans); font-size: 16px; margin-bottom: 8px; letter-spacing: 0; }
  .install ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15.5px; }
  .install li + li { margin-top: 6px; }
  .install li b { color: var(--ink); }
  .stores { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
  .stores span { font-size: 14px; font-weight: 600; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; padding: 9px 16px; }

  footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 14px; }
  footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
  footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
  footer a { color: var(--muted); }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

  /* sustituyen a los estilos en línea (la CSP del sitio no los permite) */
  .big { font-size: clamp(28px, 4.4vw, 40px); margin-bottom: 22px; }
