/* ============================================================================
   flo · base.css — primitivas de layout compartidas (Sprint 1+)
   ----------------------------------------------------------------------------
   Extraído de las landings reales (finanzas-personales, herramienta-gastos…).
   Depende de _shared/tokens.css (variables). Enlazar SIEMPRE tokens primero:
       <link rel="stylesheet" href="/_shared/tokens.css">
       <link rel="stylesheet" href="/_shared/base.css">
   Las páginas añaden sus estilos específicos en un <style> propio después.
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--t900);
  color: var(--t50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
em { font-family: var(--serif); font-style: italic; color: inherit; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }

/* ── Nav ──────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 48px; display: flex; align-items: center; justify-content: space-between;
  background: rgba(4, 52, 44, 0.95); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.logo {
  font-family: var(--serif); font-size: 20px; color: var(--t50);
  display: flex; align-items: center; gap: 3px; text-decoration: none;
}
.logo-dot { width: 6px; height: 6px; background: var(--amber); border-radius: 50%; margin-top: -7px; }
.nav-cta {
  background: var(--amber); color: var(--t900); padding: 9px 22px;
  border-radius: var(--r-pill); font-size: 13px; font-weight: 500; text-decoration: none;
}

/* ── Botones ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber); color: var(--t900); padding: 16px 36px;
  border-radius: var(--r-pill); font-size: 15px; font-weight: 500;
  text-decoration: none; border: none; cursor: pointer; transition: transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px;
  color: var(--t200); background: transparent; border: none; text-decoration: none; cursor: pointer;
}

/* ── Hero + secciones ─────────────────────────────────────────────────── */
.hero { padding: 140px 48px 80px; max-width: 880px; margin: 0 auto; text-align: center; }
.eyebrow {
  font-size: 11px; font-weight: 500; color: var(--amber);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px;
}
h1 {
  font-family: var(--serif); font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.06; letter-spacing: -2px; color: var(--white); margin-bottom: 24px;
}
h1 em { color: var(--t200); }
.hero-sub {
  font-size: 18px; font-weight: 300; color: var(--t200); line-height: 1.65;
  max-width: 640px; margin: 0 auto 36px;
}
.hero-sub strong { color: var(--white); font-weight: 400; }
.hero-note { font-size: 12px; color: var(--t400); margin-top: 14px; }

section { padding: 80px 48px; }
.inner { max-width: 960px; margin: 0 auto; }
.bg-dark { background: var(--t800); }
.bg-white { background: var(--white); }
h2 {
  font-family: var(--serif); font-size: clamp(28px, 3.5vw, 44px);
  color: var(--white); letter-spacing: -1px; line-height: 1.1; margin-bottom: 36px;
}
h2 em { color: var(--t200); }
.prose { max-width: var(--max-w-prose); }

/* ── FAQ (sobre fondo claro) ──────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; max-width: 720px; }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--t50); }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 16px; font-weight: 500; color: var(--t900); margin-bottom: 10px; line-height: 1.4; }
.faq-a { font-size: 14px; font-weight: 300; color: #555; line-height: 1.7; }

/* ── CTA final ────────────────────────────────────────────────────────── */
.cta-section { text-align: center; padding: 100px 48px; }
.cta-section h2 { font-size: clamp(36px, 5vw, 60px); color: var(--white); letter-spacing: -2px; margin-bottom: 20px; }
.cta-section h2 em { color: var(--amber); }
.cta-section p { font-size: 16px; color: var(--t200); margin-bottom: 36px; font-weight: 300; }
.cta-note { font-size: 12px; color: var(--t400); margin-top: 16px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer {
  padding: 32px 48px; border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-family: var(--serif); font-size: 16px; color: var(--t200); display: flex; align-items: center; gap: 3px; }
.footer-dot { width: 5px; height: 5px; background: var(--amber); border-radius: 50%; margin-top: -5px; }
.footer-links { display: flex; gap: 20px; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--t400); text-decoration: none; }
.footer-links a:hover { color: var(--t200); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .hero { padding: 120px 20px 60px; }
  section { padding: 60px 20px; }
  .cta-section { padding: 72px 20px; }
  footer { flex-direction: column; text-align: center; padding: 28px 20px; }
}
