/* ═══════════════════════════════════════════════════════════════════════
   cuotal.com — base compartida (tokens verbatim de la app + nav/footer/CTA)
   Tokens: cuotal-app/src/theme/tokens.ts. NO sustituir hexes.
   ═══════════════════════════════════════════════════════════════════════ */
@font-face { font-family: 'Satoshi'; font-weight: 400; font-display: swap; src: url('/fonts/Satoshi-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-weight: 500; font-display: swap; src: url('/fonts/Satoshi-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-weight: 700; font-display: swap; src: url('/fonts/Satoshi-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-weight: 900; font-display: swap; src: url('/fonts/Satoshi-Black.woff2') format('woff2'); }

:root {
  --paper: #F7F4ED;      --paper2: #F0EBE1;    --card: #FFFFFF;
  --ink: #23201B;        --ink2: #544F46;      --ink3: #6B6456;     --ink4: #B5AC9C;
  --line: #E9E4D9;       --line2: #D8D1C2;
  --sage700: #1E5B41;    --sage600: #277352;   --sage500: #319164;
  --sage300: #9CC9AB;    --sage100: #DCEDE3;   --sage50: #EEF6F1;
  --cobre: #C08552;      --cobre2: #A66B3B;
  --pizarra: #143D2B;    --pizarra2: #1E5B41;  --pizarra-line: #2A6A4D;
  --pizarra-ink: #ECF5EF; --pizarra-mut: #A9C7B6;
  --azul: #5E7FA6;       --fijos: #C99B3F;     --teja: #B5462E;
  --ambar: #B07818;      --ambar-bg: #F7EFDC;  --ambar-line: #E6D3A8;
  --cl-teal: #2E8B84;    --cl-terracota: #BF6B4B; --cl-ocre: #C79A3C;
  --cl-frambuesa: #BC5A79; --cl-indigo: #5D5FA6;
  --ease: cubic-bezier(0.32, 0.72, 0.25, 1);
  --sh: 0 6px 24px rgba(35,32,27,0.07), 0 2px 6px rgba(35,32,27,0.05);
  --sh-soft: 0 2px 10px rgba(35,32,27,0.06);
  --sh-pop: 0 24px 56px rgba(35,32,27,0.18), 0 4px 12px rgba(35,32,27,0.08);
  --sh-deep: 0 18px 48px rgba(20,61,43,0.30);
  --sh-fab: 0 8px 20px rgba(39,115,82,0.40);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  font-family: 'Satoshi', -apple-system, 'Segoe UI', sans-serif;
  background: var(--paper); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.money { font-variant-numeric: tabular-nums; font-weight: 700; }
:focus { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sage500); outline-offset: 2px; border-radius: 6px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Revelado al hacer scroll */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv2 { transition-delay: .1s; } .js .rv3 { transition-delay: .2s; }

/* ── NAV ── */
nav.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px clamp(20px, 4vw, 44px); padding-top: max(14px, env(safe-area-inset-top));
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  background: rgba(247,244,237,0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(233,228,217,0.7);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-word { font-size: 23px; font-weight: 900; color: var(--sage600); letter-spacing: -1px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); margin-left: auto; }
.nav-links a {
  font-size: 13.5px; font-weight: 700; color: var(--ink2); text-decoration: none;
  transition: color .15s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--sage600); }
.nav-cta {
  font-size: 13.5px; font-weight: 700; color: #fff; text-decoration: none;
  background: var(--sage600); border-radius: 999px; padding: 9px 18px;
  white-space: nowrap;
  transition: background .15s var(--ease), transform .12s var(--ease);
}
.nav-cta:hover { background: var(--sage700); }
.nav-cta:active { transform: scale(0.98); }
@media (max-width: 719px) { .nav-links { display: none; } }

/* ── Titulares de sección ── */
.act { max-width: 1100px; margin: 0 auto; padding: clamp(64px, 11vh, 130px) clamp(20px, 4vw, 44px); }
.act-title { font-size: clamp(27px, 3.7vw, 44px); font-weight: 900; letter-spacing: -1.8px; line-height: 1.05; max-width: 24ch; }
.act-title .verde { color: var(--sage600); }
.act-sub { margin-top: 14px; font-size: 15.5px; color: var(--ink2); line-height: 1.65; font-weight: 500; max-width: 54ch; }
.act-sub strong { color: var(--ink); }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-size: 15.5px; font-weight: 700; color: #fff; text-decoration: none;
  background: var(--sage600); border: none; border-radius: 999px;
  padding: 14px 28px; cursor: pointer;
  box-shadow: var(--sh-fab);
  transition: background .15s var(--ease), transform .12s var(--ease);
}
.btn:hover { background: var(--sage700); }
.btn:active { transform: scale(0.98); }
.btn.ghost {
  color: var(--sage700); background: transparent; box-shadow: none;
  border: 1.5px solid var(--sage300);
}
.btn.ghost:hover { background: var(--sage50); }

/* ── FAQ ── */
.faq { max-width: 680px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 44px) clamp(48px, 7vh, 84px); }
.faq h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: -1.2px; margin-bottom: 10px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  font-size: 15.5px; font-weight: 700; cursor: pointer; padding: 17px 2px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--sage600); font-size: 19px; font-weight: 500; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { font-size: 14px; color: var(--ink2); line-height: 1.7; padding: 0 2px 18px; font-weight: 500; }
.faq details a { color: var(--sage600); }

/* ── Cierre pizarra (la ceremonia de la app) ── */
.final-cta { padding: 0 clamp(20px, 4vw, 44px) clamp(64px, 9vh, 100px); }
.final-inner {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: linear-gradient(150deg, var(--pizarra2), var(--pizarra) 55%);
  border-radius: 28px; box-shadow: var(--sh-deep);
  padding: clamp(40px, 6vw, 60px) clamp(24px, 4vw, 48px);
}
.final-title { font-size: clamp(24px, 3.6vw, 34px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.1; color: var(--pizarra-ink); }
.final-sub { margin-top: 12px; font-size: 15px; color: var(--pizarra-mut); font-weight: 500; }
.final-actions { margin-top: 24px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.final-legal { margin-top: 12px; font-size: 12px; color: var(--pizarra-mut); }
.final-legal a { color: var(--sage300); }

/* ── FOOTER ── */
footer.site {
  border-top: 1px solid var(--line);
  padding: clamp(32px, 5vh, 48px) clamp(20px, 4vw, 44px) calc(26px + env(safe-area-inset-bottom));
  max-width: 1100px; margin: 0 auto;
}
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand p { margin-top: 8px; font-size: 12.5px; color: var(--ink3); font-weight: 500; max-width: 28ch; line-height: 1.6; }
.foot-cols { display: flex; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; }
.foot-col small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink4); margin-bottom: 10px; }
.foot-col a { display: block; font-size: 13px; color: var(--ink2); text-decoration: none; font-weight: 500; padding: 4px 0; }
.foot-col a:hover { color: var(--sage600); }
.foot-base { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink3); font-weight: 500; }

/* CTA flotante (aparece al dejar atrás el hero) */
#floatCta {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  transform: translate(-50%, 90px);
  z-index: 150;
  background: var(--sage600); color: #fff; text-decoration: none;
  font-size: 14.5px; font-weight: 700;
  border-radius: 999px; padding: 13px 26px;
  box-shadow: var(--sh-fab);
  transition: transform .35s var(--ease), background .15s var(--ease);
  white-space: nowrap;
}
#floatCta:hover { background: var(--sage700); }
#floatCta.show { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; transition-delay: 0s !important; }
  .rv { opacity: 1 !important; transform: none !important; }
}
