/* ═══════════════════════════════════════════════
   LEYES DEL JUEGO — Andrés Millán
   Editorial design. Clean. Authentic. Personal.
   ═══════════════════════════════════════════════ */

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

:root {
  --bg: #09090b;
  --surface: #0f0f12;
  --surface-2: #151518;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.10);
  --text: #e6e6ea;
  --text-sec: #8e8e9e;
  --text-muted: #55555f;
  --radius: 12px;

  /* Product accent — overridden per page */
  --accent: #c9a84c;
  --accent-soft: rgba(201,168,76,0.10);
  --accent-border: rgba(201,168,76,0.18);
}

/* ─── Page themes ─── */
.page--news   { --accent:#5b8def; --accent-soft:rgba(91,141,239,0.08); --accent-border:rgba(91,141,239,0.15); }
.page--ia     { --accent:#9b7ae8; --accent-soft:rgba(155,122,232,0.08); --accent-border:rgba(155,122,232,0.15); }
.page--guia   { --accent:#3dba8a; --accent-soft:rgba(61,186,138,0.08); --accent-border:rgba(61,186,138,0.15); }
.page--pio    { --accent:#c9a84c; --accent-soft:rgba(201,168,76,0.08); --accent-border:rgba(201,168,76,0.15); }
.page--typ    { --accent:#4abe7a; --accent-soft:rgba(74,190,122,0.08); --accent-border:rgba(74,190,122,0.15); }

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout ─── */
.page { min-height:100vh; }
.wrap { max-width:680px; margin:0 auto; padding:0 28px; }
.wrap-sm { max-width:540px; margin:0 auto; padding:0 28px; }
.wrap-wide { max-width:820px; margin:0 auto; padding:0 28px; }
.sec { padding:80px 0; }
.sec-sm { padding:48px 0; }

/* ─── Typography ─── */
h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 5.5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}
h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.lead {
  font-size: 18px;
  color: var(--text-sec);
  line-height: 1.75;
  max-width: 500px;
}
.accent { color: var(--accent); }
.muted { color: var(--text-muted); }
.sec-text { color: var(--text-sec); }
.center { text-align:center; }
.mx-auto { margin-left:auto; margin-right:auto; }

/* ─── Topbar — minimal ─── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo em {
  font-style: normal;
  color: var(--accent);
}
.topbar-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Confirmation strip ─── */
.confirm-strip {
  background: rgba(74,190,122,0.06);
  border-bottom: 1px solid rgba(74,190,122,0.12);
  padding: 12px 28px;
  text-align: center;
  font-size: 13px;
  color: #4abe7a;
  font-weight: 500;
}

/* ─── Video ─── */
.video {
  aspect-ratio: 16/9;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.video::before {
  content: '▶';
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #000;
  padding-left: 2px;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.9;
}
.video:hover::before { transform:scale(1.08); opacity:1; }
.video-note {
  position: absolute;
  bottom: 12px; left: 12px;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(0,0,0,0.65);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ─── Grid ─── */
.g2 { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.g3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:24px; }
@media (max-width:680px) { .g2,.g3 { grid-template-columns:1fr; } }

/* ─── Cards — softer, less boxy ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card-offer {
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 36px 32px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 15px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn:hover { transform:translateY(-1px); }
.btn-main {
  background: var(--accent);
  color: #000;
}
.btn-main:hover { box-shadow: 0 6px 24px var(--accent-soft), 0 2px 8px rgba(0,0,0,0.3); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color:var(--accent); }
.btn-full { width:100%; }
.btn-lg { padding:17px 44px; font-size:16px; }

/* ─── Form ─── */
.field { margin-bottom:14px; }
.input {
  width: 100%;
  padding: 13px 16px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.input:focus { border-color: var(--accent); }
.input::placeholder { color: var(--text-muted); }
.check {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--text-muted);
}
.check input { margin-top:2px; accent-color:var(--accent); }
.check a { color:var(--accent); text-decoration:none; }
.hint { text-align:center; font-size:12px; color:var(--text-muted); margin-top:12px; }

/* ─── Big numbers — clean, no gradients ─── */
.big-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}
.big-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ─── Comparison columns ─── */
.vs-col { padding:28px; border-radius:var(--radius); }
.vs-col.bad { background:rgba(200,80,80,0.04); border:1px solid rgba(200,80,80,0.10); }
.vs-col.good { background:var(--accent-soft); border:1px solid var(--accent-border); }
.vs-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.vs-title.bad { color:#c85050; }
.vs-title.good { color:var(--accent); }
.vs-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-sec);
  margin-bottom: 14px; line-height: 1.55;
}
.vs-item:last-child { margin-bottom:0; }
.vs-item .i { flex-shrink:0; font-size:14px; margin-top:2px; }

/* ─── Testimonials — editorial, minimal ─── */
.testi {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.testi:last-child { border-bottom:none; }
.testi-stars { color:var(--accent); font-size:13px; letter-spacing:2px; margin-bottom:10px; }
.testi-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-style: italic;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 10px;
}
.testi-who { font-size:13px; color:var(--text-muted); }

/* Testimonial in card form (for grids) */
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.testi-card .testi-text { font-size:15px; }

/* ─── Table ─── */
.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
table { width:100%; border-collapse:collapse; font-size:13px; }
th {
  text-align:left; padding:14px 16px;
  font-size:11px; font-weight:600;
  text-transform:uppercase; letter-spacing:0.04em;
  color:var(--text-muted);
  border-bottom:1px solid var(--border);
}
td { padding:12px 16px; color:var(--text-sec); border-bottom:1px solid var(--border); }
tr:last-child td { border-bottom:none; }
th.hl, td.hl { background:var(--accent-soft); color:var(--accent); font-weight:600; }

/* ─── FAQ ─── */
.faq { border-bottom:1px solid var(--border); padding:24px 0; }
.faq:last-child { border-bottom:none; }
.faq-q { font-size:16px; font-weight:600; color:var(--text); margin-bottom:8px; }
.faq-a { font-size:14px; color:var(--text-sec); line-height:1.7; }

/* ─── Checklist ─── */
.checks { list-style:none; }
.checks li {
  display:flex; align-items:flex-start; gap:10px;
  font-size:14px; color:var(--text-sec);
  margin-bottom:11px; line-height:1.5;
}
.checks li:last-child { margin-bottom:0; }
.checks .i { color:var(--accent); flex-shrink:0; }

/* ─── Pull quote — big italic serif ─── */
.pull {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3.5vw, 32px);
  font-style: italic;
  color: var(--accent);
  text-align: center;
  line-height: 1.3;
  padding: 48px 24px;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Price ─── */
.price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 52px;
  color: var(--accent);
  line-height: 1;
}

/* ─── Inline stats row ─── */
.stats {
  display:flex; justify-content:center; gap:32px; flex-wrap:wrap;
  padding:20px 0;
}
.stats-item { text-align:center; }
.stats-num { font-size:22px; font-weight:700; color:var(--text); }
.stats-label { font-size:11px; color:var(--text-muted); margin-top:2px; text-transform:uppercase; letter-spacing:0.04em; }

/* ─── Feature row (icon + text) ─── */
.feat {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.feat:last-child { border-bottom:none; }
.feat-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.feat p { font-size:14px; color:var(--text-sec); margin-top:4px; }

/* ─── Social link (TYP) ─── */
.social-link {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s;
}
.social-link:hover { border-color: var(--accent-border); }
.social-link .emoji { font-size:22px; }
.social-link .info { flex:1; }
.social-link .name { font-size:14px; font-weight:600; color:var(--text); }
.social-link .desc { font-size:12px; color:var(--text-muted); }
.social-link .arrow { font-size:13px; color:var(--text-muted); font-weight:600; }

/* ─── Step card (TYP) ─── */
.step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom:none; }
.step-num {
  width:36px; height:36px;
  border-radius:50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:700; color:var(--accent);
  flex-shrink:0;
}
.step p { font-size:14px; color:var(--text-sec); margin-top:4px; }

/* ─── Photo elements ─── */
.photo {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-round {
  border-radius: 16px;
  overflow: hidden;
}
.photo-round img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── Hero with background image ─── */
.hero-bg {
  position: relative;
  background-size: cover;
  background-position: center;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(9,9,11,0.85) 40%, var(--bg) 100%);
}
.hero-bg > * { position: relative; z-index: 1; }

/* ─── Accent section backgrounds ─── */
.sec-accent {
  background: var(--accent-soft);
  border-top: 1px solid var(--accent-border);
  border-bottom: 1px solid var(--accent-border);
}

/* ─── Photo card (author bio) ─── */
.author-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Product mockup ─── */
.mockup {
  max-width: 280px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}
.mockup img {
  width: 100%;
  border-radius: 8px;
}

/* ─── Footer ─── */
.footer {
  padding: 36px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.footer a { color:var(--text-muted); text-decoration:none; }
.footer a:hover { color:var(--accent); }

/* ─── Spacing ─── */
.mb-4 { margin-bottom:4px; } .mb-8 { margin-bottom:8px; }
.mb-12 { margin-bottom:12px; } .mb-16 { margin-bottom:16px; }
.mb-20 { margin-bottom:20px; } .mb-24 { margin-bottom:24px; }
.mb-32 { margin-bottom:32px; } .mb-40 { margin-bottom:40px; }
.mb-48 { margin-bottom:48px; } .mb-64 { margin-bottom:64px; }
.mt-8 { margin-top:8px; } .mt-16 { margin-top:16px; }
.mt-24 { margin-top:24px; } .mt-32 { margin-top:32px; }

/* ─── Responsive ─── */
@media (max-width:680px) {
  .sec { padding:56px 0; }
  .wrap, .wrap-sm, .wrap-wide { padding:0 20px; }
  .topbar { padding:14px 20px; }
  .hero-grid { grid-template-columns:1fr !important; }
  .stats { gap:20px; }
}
