/* ODIN — MVP web para aprobación de Amazon Afiliados
   Paleta: tinta azul-noche + verde de verificación + oro de oportunidad.
   Tipografía: Space Grotesk (titulares), Inter (cuerpo), IBM Plex Mono (datos). */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --ink: #131a2b;
  --ink-soft: #1c2540;
  --paper: #f5f6f8;
  --paper-raised: #ffffff;
  --text-on-paper: #1b1f2a;
  --text-muted: #5b6272;
  --text-on-ink: #e7e9ee;
  --text-on-ink-muted: #a9b0c3;
  --verify: #1f9d6d;
  --verify-soft: #e4f5ee;
  --gold: #c9962f;
  --border: #e2e4ea;
  --border-on-ink: #2a3352;
  --radius: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-on-paper);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--text-on-paper); }
.section p:last-child { margin-bottom: 0; }

a { color: var(--ink); }
a.link-verify { color: var(--verify); font-weight: 600; text-decoration: none; }
a.link-verify:hover { text-decoration: underline; }

.mono {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.02em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */

header.site {
  background: var(--ink);
  color: var(--text-on-ink);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border-on-ink);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-on-ink);
  text-decoration: none;
}

.brand .dot { color: var(--verify); }

nav.primary {
  display: flex;
  gap: 1.75rem;
}

nav.primary a {
  color: var(--text-on-ink-muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

nav.primary a:hover,
nav.primary a[aria-current="page"] {
  color: var(--text-on-ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-on-ink);
  border-radius: 8px;
  color: var(--text-on-ink);
  padding: 0.5rem 0.7rem;
  font-size: 1rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: var(--text-on-ink);
  padding: 4.5rem 0 5rem;
}

.hero .eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--verify);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.hero h1 { color: #fff; max-width: 20ch; }

.hero .lede {
  color: var(--text-on-ink-muted);
  font-size: 1.1rem;
  max-width: 46ch;
  margin: 1.1rem 0 2rem;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--verify); color: #06251a; }
.btn-primary:hover { background: #24b47d; }

.btn-ghost {
  background: transparent;
  color: var(--text-on-ink);
  border-color: var(--border-on-ink);
}
.btn-ghost:hover { border-color: var(--text-on-ink-muted); }

/* ---------- Score badge (elemento distintivo) ---------- */

.score-card {
  margin-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--ink-soft);
  border: 1px solid var(--border-on-ink);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
}

.score-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(var(--verify) 0turn 0.94turn, #33406b 0.94turn 1turn);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.score-ring span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.85rem;
  color: #fff;
}

.score-card .score-label { font-size: 0.85rem; color: var(--text-on-ink-muted); }
.score-card .score-title { font-weight: 600; color: #fff; font-size: 0.95rem; }

/* ---------- Sections ---------- */

.section { padding: 4rem 0; }
.section.alt { background: var(--paper-raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head .eyebrow-light {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--verify);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.step-num {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--verify);
  font-weight: 500;
  font-size: 0.85rem;
  border: 1px solid var(--verify);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.callout {
  background: var(--verify-soft);
  border: 1px solid #bfe4d3;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}

.callout p { color: #0d4a32; }

.legal h2 { margin-top: 2.2rem; font-size: 1.15rem; }
.legal h2:first-child { margin-top: 0; }
.legal { max-width: 72ch; }
.legal .placeholder {
  background: #fff7e6;
  border: 1px dashed var(--gold);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.92em;
}

.legal-note {
  background: #fff7e6;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-bottom: 2rem;
}
.legal-note p { color: #6b4f0f; margin: 0; }

/* ---------- Footer ---------- */

footer.site {
  background: var(--ink);
  color: var(--text-on-ink-muted);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-on-ink);
}

.footer-links {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-on-ink-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--text-on-ink); }

.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.disclosure {
  font-size: 0.82rem;
  color: var(--text-on-ink-muted);
  max-width: 62ch;
}

/* ---------- Responsive ---------- */

@media (max-width: 800px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  nav.primary {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 0.5rem 1.5rem 1.2rem;
    gap: 0.9rem;
    border-bottom: 1px solid var(--border-on-ink);
    display: none;
  }
  nav.primary.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .footer-bottom { flex-direction: column; }
}

/* Respeta prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 2px solid var(--verify);
  outline-offset: 2px;
}
