/* Fichando — colores del tema Lisa de la app (Domino/Estilo/Paleta.swift) */

:root {
  --bg:      #F6F1E8;
  --ficha:   #ECE5D9;
  --surface: #FFFDF8;
  --line:    #DED5C6;
  --ink:     #2B2620;
  --muted:   #6B6258;
  --pa:      #0F766E;   /* pareja A, también el acento */
  --pa-btn:  #0F766E;
  --pb:      #B5432F;   /* pareja B */
  --on-btn:  #FFFFFF;
  /* Ébano (Fundador) */
  --ebano-1: #1F1C19;
  --ebano-2: #0C0B0A;
  --oro:     #D9BC76;
  --oro-line:#D6B266;
  --ebano-ink:#EFE6D6;
  --ebano-muted:#A89F91;
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:      #2A2622;
    --ficha:   #36312C;
    --surface: #312C27;
    --line:    #48413A;
    --ink:     #F3E9D6;
    --muted:   #BDB2A3;
    --pa:      #6CC1B3;
    --pa-btn:  #2F6B64;
    --pb:      #E8806A;
    --on-btn:  #F3E9D6;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pa); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--pa); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

h1, h2, h3 { font-family: var(--rounded); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 64px); }
h2 { font-size: clamp(28px, 4.2vw, 40px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 18px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Header / footer ---------- */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--rounded); font-weight: 800; font-size: 21px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 44px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 14px; background: var(--pa-btn); color: var(--on-btn); font: 700 16px/1 var(--rounded); text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn svg { width: 20px; height: 20px; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-quiet:hover { background: var(--ficha); filter: none; }

/* ---------- Teléfono ---------- */
.phone { background: #111; padding: 9px; border-radius: 46px; box-shadow: 0 30px 60px -24px rgba(43, 38, 32, .45); }
.phone img { border-radius: 38px; }

/* ---------- Landing ---------- */
.hero { padding: 24px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .phone { max-width: 320px; justify-self: center; transform: rotate(2.5deg); }

section.band { padding: 76px 0; border-top: 1px solid var(--line); }

/* El marcador: dos columnas como en la app */
.score { display: grid; grid-template-columns: 1fr 1fr; margin-top: 36px; border-radius: 22px; overflow: hidden; background: var(--ficha); border: 1px solid var(--line); }
.score > div { padding: 28px 28px 30px; }
.score > div + div { border-left: 2px solid var(--line); }
.score h3 { margin-bottom: 14px; }
.score .free h3 { color: var(--pa); }
.score .pro h3 { color: var(--pb); }
.score ul { list-style: none; margin: 0; padding: 0; }
.score li { padding: 9px 0; border-top: 1px solid var(--line); }
.score li:first-child { border-top: 0; padding-top: 0; }
.score .price { font-family: var(--rounded); font-weight: 800; font-size: 15px; color: var(--muted); margin: -8px 0 16px; }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 44px; max-width: 640px; margin-left: auto; margin-right: auto; }
.shots figure { margin: 0; }
.shots .phone { max-width: 250px; margin: 0 auto; }
.shots figcaption { text-align: center; margin-top: 16px; }
.shots figcaption strong { display: block; font-family: var(--rounded); font-size: 18px; }
.shots figcaption span { color: var(--muted); font-size: 15px; }

/* Fundador: el único momento oscuro de la página */
.fundador { background: linear-gradient(160deg, var(--ebano-1), var(--ebano-2)); color: var(--ebano-ink); padding: 80px 0; }
.fundador .wrap { display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center; }
.fundador img { width: 200px; height: 200px; border-radius: 46px; box-shadow: 0 0 0 1px var(--oro-line), 0 24px 70px -10px rgba(217, 188, 118, .35); }
.fundador h2 { color: var(--oro); }
.fundador p { color: var(--ebano-muted); max-width: 36em; }
.fundador .deadline { display: inline-block; margin-top: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--oro-line); color: var(--oro); font: 700 15px var(--rounded); }

.privacy-strip .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.privacy-strip ul { margin: 0; padding-left: 20px; }
.privacy-strip li { margin: 6px 0; }

/* ---------- Páginas de texto ---------- */
.doc { padding: 32px 0 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.doc h2 { font-size: 23px; margin: 40px 0 10px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; }
.summary p { margin: 0; }
.summary p + p { margin-top: 10px; }

.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin: 24px 0 8px; }
.contact p { margin: 0; }

.faq { margin-top: 8px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div p { margin: 0 0 10px; }

@media (max-width: 860px) {
  .hero .wrap, .privacy-strip .wrap { grid-template-columns: 1fr; }
  .hero .phone { max-width: 250px; order: -1; transform: none; }
  .shots { grid-template-columns: 1fr; gap: 40px; }
  .fundador .wrap { grid-template-columns: 1fr; gap: 28px; }
  .fundador img { width: 150px; height: 150px; border-radius: 34px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .score { grid-template-columns: 1fr; }
  .score > div + div { border-left: 0; border-top: 2px solid var(--line); }
  .nav { gap: 14px; font-size: 14px; }
  section.band { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}
