/* ============================================================
   MX-5 Historia — hoja de estilos principal
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red:       #D85A30;
  --red-dark:  #993C1D;
  --red-light: #FAECE7;
  --cream:     #F5F2EC;
  --dark:      #1A1917;
  --dark2:     #242320;
  --mid:       #888780;
  --text:      #2C2C2A;
  --text-soft: #5F5E5A;
  --border:    rgba(44,44,42,0.12);
  --white:     #ffffff;
  --green:     #4C8C4A;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  color: var(--text);
  background: var(--cream);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: 10px 18px;
  font-size: 14px; letter-spacing: 1px; text-decoration: none;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ── HEADER / NAV ────────────────────────────── */
header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 22px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
  white-space: nowrap;
}
.logo span { color: var(--red); }
nav { display: flex; }
nav a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0 0.9rem;
  height: 60px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
nav a:hover, nav a:focus { color: #fff; border-bottom-color: var(--red); }
nav a.active { color: #fff; border-bottom-color: var(--red); }
.nav-toggle { display: none; cursor: pointer; color: #fff; font-size: 24px; background: none; border: none; line-height: 1; }

/* ── HERO PORTADA ────────────────────────────── */
.hero {
  background: var(--dark);
  padding: 6rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: 'MX·5';
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(160px, 30vw, 320px);
  color: rgba(255,255,255,0.03);
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.hero-inner { max-width: 700px; margin: 0 auto 0 max(2rem, calc(50vw - 550px)); position: relative; }
.hero-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.hero h1 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(52px, 9vw, 100px);
  color: #fff;
  line-height: 0.95;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}
.hero h1 em { color: var(--red); font-style: normal; }
.hero-desc {
  font-size: 20px;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  font-weight: 300;
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-stat-num {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 42px;
  color: var(--red);
  line-height: 1;
}
.hero-stat-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

/* ── SECCIONES ───────────────────────────────── */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-narrow { max-width: 760px; margin: 0 auto; }
.section-alt { background: var(--white); }
.section-dark { background: var(--dark); }

.section-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
  font-weight: 300;
}
.section-title {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(36px, 5vw, 58px);
  color: var(--text);
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 1rem;
}
.section-dark .section-title { color: #fff; }
.section-intro {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 3rem;
  font-style: italic;
}
.section-dark .section-intro { color: rgba(255,255,255,0.5); }

/* ── PROSA GENÉRICA ──────────────────────────── */
.prose h2 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 32px; letter-spacing: 1px; color: var(--text); margin: 2.5rem 0 1rem;
}
.prose h3 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 22px; letter-spacing: 1px; color: var(--red); margin: 2rem 0 0.75rem;
}
.prose p { font-size: 17px; color: var(--text-soft); line-height: 1.8; margin-bottom: 1.25rem; }
.prose ul, .prose ol { margin: 0 0 1.5rem 1.25rem; }
.prose li { font-size: 17px; color: var(--text-soft); line-height: 1.7; margin-bottom: 0.5rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--red-dark); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--red); }

/* ── TARJETAS GENERACIONES ───────────────────── */
.gen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.gen-card { background: var(--white); padding: 2rem; transition: background 0.2s; }
.gen-card:hover { background: var(--red-light); }
.gen-gen {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 64px; color: var(--red); line-height: 1; margin-bottom: 0.25rem;
}
.gen-years { font-size: 13px; letter-spacing: 2px; color: var(--mid); text-transform: uppercase; margin-bottom: 0.5rem; }
.gen-name { font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 0.75rem; }
.gen-desc { font-size: 15px; color: var(--text-soft); line-height: 1.6; margin-bottom: 1.25rem; }
.gen-specs { display: flex; flex-direction: column; gap: 6px; }
.gen-spec { display: flex; justify-content: space-between; gap: 1rem; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.gen-spec:last-child { border-bottom: none; }
.spec-key { color: var(--mid); text-transform: uppercase; letter-spacing: 1px; font-size: 11px; }
.spec-val { font-weight: 600; color: var(--text); text-align: right; }
.gen-more {
  display: inline-block; margin-top: 1.25rem; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red-dark); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid rgba(216,90,48,0.4); padding-bottom: 2px;
}
.gen-more:hover { color: var(--red); border-bottom-color: var(--red); }

/* ── TIMELINE ────────────────────────────────── */
.timeline { position: relative; max-width: 720px; }
.timeline::before { content: ''; position: absolute; left: 52px; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,0.1); }
.tl-item { display: flex; gap: 2rem; margin-bottom: 3rem; position: relative; }
.tl-year { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 22px; color: var(--red); min-width: 52px; text-align: right; padding-top: 2px; }
.tl-line { position: relative; padding-top: 8px; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); position: absolute; left: -1.25rem; top: 10px; border: 2px solid var(--dark); }
.tl-content { padding-left: 0.5rem; }
.tl-title { font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 0.25rem; }
.tl-text { font-size: 16px; color: rgba(255,255,255,0.55); line-height: 1.6; font-style: italic; }

/* ── FILOSOFÍA ───────────────────────────────── */
.philosophy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.phil-card { background: var(--cream); border-radius: 12px; padding: 2rem; }
.phil-num { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 48px; color: rgba(216,90,48,0.25); line-height: 1; margin-bottom: 0.5rem; }
.phil-title { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 22px; color: var(--text); letter-spacing: 1px; margin-bottom: 0.5rem; }
.phil-text { font-size: 16px; color: var(--text-soft); line-height: 1.6; }

/* ── CURIOSIDADES ────────────────────────────── */
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.fact-card { border-top: 3px solid var(--red); padding-top: 1.25rem; }
.fact-num { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 48px; color: var(--text); line-height: 1; margin-bottom: 0.25rem; }
.fact-label { font-size: 13px; color: var(--mid); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.5rem; }
.fact-desc { font-size: 15px; color: var(--text-soft); line-height: 1.5; }

/* ── QUOTE ───────────────────────────────────── */
.quote-section { background: var(--red); padding: 5rem 2rem; text-align: center; }
.quote-text { font-size: clamp(24px, 4vw, 42px); font-style: italic; color: #fff; max-width: 800px; margin: 0 auto 1rem; line-height: 1.3; }
.quote-attr { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.65); }

/* ── HERO DE ARTÍCULO ────────────────────────── */
.article-hero { background: var(--dark); padding: 4rem 2rem 3rem; position: relative; overflow: hidden; }
.article-hero::before {
  content: attr(data-watermark);
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(140px, 22vw, 280px);
  color: rgba(255,255,255,0.03);
  position: absolute; right: -1rem; bottom: -2rem; line-height: 1;
  pointer-events: none; user-select: none; white-space: nowrap;
}
.article-hero-inner { max-width: 800px; margin: 0 auto; position: relative; }
.breadcrumb { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1rem; }
.breadcrumb a { color: var(--red); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article-tag { display: inline-block; background: var(--red); color: #fff; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; padding: 4px 12px; border-radius: 2px; margin-bottom: 1rem; }
.article-hero h1 { font-family: 'Bebas Neue', Impact, sans-serif; font-size: clamp(40px, 7vw, 76px); color: #fff; line-height: 0.98; letter-spacing: 1px; margin-bottom: 1rem; }
.article-hero h1 em { color: var(--red); font-style: normal; }
.article-lede { font-size: 20px; color: rgba(255,255,255,0.6); font-style: italic; max-width: 660px; line-height: 1.6; margin-bottom: 1.5rem; }
.article-meta { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.article-meta a { color: rgba(255,255,255,0.45); }

/* ── CUERPO DE ARTÍCULO ──────────────────────── */
.article-body { max-width: 800px; margin: 0 auto; padding: 3.5rem 2rem; }
.article-body h2 { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 32px; letter-spacing: 1px; color: var(--text); margin: 2.5rem 0 1rem; scroll-margin-top: 80px; }
.article-body h3 { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 22px; letter-spacing: 1px; color: var(--red); margin: 2rem 0 0.75rem; scroll-margin-top: 80px; }
.article-body h4 { font-size: 17px; font-weight: 600; color: var(--text); margin: 1.5rem 0 0.5rem; }
.article-body p { font-size: 18px; color: var(--text-soft); line-height: 1.8; margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin: 0 0 1.5rem 1.4rem; }
.article-body li { font-size: 17px; color: var(--text-soft); line-height: 1.7; margin-bottom: 0.5rem; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--red-dark); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--red); }

/* ── ÍNDICE DE CONTENIDOS ────────────────────── */
.toc { background: var(--white); border-radius: 12px; padding: 1.5rem 1.75rem; margin: 0 0 2.5rem; border: 1px solid var(--border); }
.toc h2 { font-size: 18px !important; margin: 0 0 0.75rem !important; letter-spacing: 2px; color: var(--mid) !important; }
.toc ol { margin: 0 0 0 1.1rem; }
.toc li { font-size: 16px; margin-bottom: 0.35rem; }
.toc a { color: var(--red-dark); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ── TABLAS ──────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 2rem 0; -webkit-overflow-scrolling: touch; }
.specs-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.specs-table th { background: var(--dark); color: #fff; font-family: 'Bebas Neue', Impact, sans-serif; font-size: 14px; letter-spacing: 2px; padding: 12px 16px; text-align: left; }
.specs-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 16px; }
.specs-table tr:last-child td { border-bottom: none; }
.specs-table tr:nth-child(even) td { background: rgba(44,44,42,0.02); }
.specs-table caption { caption-side: bottom; font-size: 13px; color: var(--mid); padding-top: 0.75rem; text-align: left; font-style: italic; }
/* Tabla clave/valor (2 columnas) */
.specs-table.kv td:first-child { color: var(--mid); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; width: 40%; }
.specs-table.kv td:last-child { font-weight: 600; color: var(--text); }
/* Tabla comparativa (varias columnas) */
.specs-table.compare td { font-size: 15px; }
.specs-table.compare td:first-child { color: var(--mid); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }

/* ── PULLQUOTE / CALLOUT ─────────────────────── */
.pullquote { border-left: 3px solid var(--red); padding: 1rem 1.5rem; margin: 2rem 0; background: var(--white); border-radius: 0 8px 8px 0; }
.pullquote p { font-size: 20px; font-style: italic; color: var(--text); margin: 0; line-height: 1.5; }
.callout { background: var(--red-light); border-radius: 12px; padding: 1.5rem 1.75rem; margin: 2rem 0; }
.callout h4 { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 18px; letter-spacing: 1px; color: var(--red-dark); margin: 0 0 0.5rem; }
.callout p { font-size: 16px; color: var(--text-soft); margin: 0 0 0.75rem; line-height: 1.65; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout li { font-size: 16px; }

/* ── PROS / CONTRAS ──────────────────────────── */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.pros, .cons { background: var(--white); border-radius: 12px; padding: 1.5rem; }
.pros { border-top: 3px solid var(--green); }
.cons { border-top: 3px solid var(--red); }
.pros h4, .cons h4 { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 18px; letter-spacing: 1px; margin-bottom: 0.75rem; }
.pros h4 { color: var(--green); }
.cons h4 { color: var(--red); }
.pros ul, .cons ul { margin: 0 0 0 1.25rem; }
.pros li, .cons li { font-size: 15px; color: var(--text-soft); margin-bottom: 0.5rem; line-height: 1.5; }

/* ── FICHAS / LISTADO DE ARTÍCULOS ───────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.post-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.75rem; display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(44,44,42,0.09); border-color: rgba(216,90,48,0.4); }
.pc-kicker { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin-bottom: 0.6rem; }
.pc-title { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 26px; letter-spacing: 0.5px; color: var(--text); line-height: 1.1; margin-bottom: 0.6rem; }
.pc-desc { font-size: 16px; color: var(--text-soft); line-height: 1.6; flex-grow: 1; margin-bottom: 1rem; }
.pc-foot { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--mid); }
.pc-foot .pc-cta { color: var(--red-dark); font-weight: 600; }

/* ── FAQ ─────────────────────────────────────── */
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 0.85rem; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 1.1rem 1.5rem; font-size: 18px; font-weight: 600;
  color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: 'Bebas Neue', Impact, sans-serif; font-size: 26px; color: var(--red); line-height: 1; flex-shrink: 0; }
.faq-item[open] summary::after { content: '–'; }
.faq-answer { padding: 0 1.5rem 1.3rem; }
.faq-answer p { font-size: 17px; color: var(--text-soft); line-height: 1.75; margin-bottom: 0.9rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ── GLOSARIO ────────────────────────────────── */
.glossary-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 2.5rem; }
.glossary-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 8px;
  background: var(--white); border: 1px solid var(--border); border-radius: 6px;
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 16px; letter-spacing: 1px;
  color: var(--text); text-decoration: none;
}
.glossary-nav a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.glossary-group { margin-bottom: 2.5rem; scroll-margin-top: 80px; }
.glossary-letter { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 40px; color: rgba(216,90,48,0.35); line-height: 1; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; }
.glossary-term { margin-bottom: 1.5rem; }
.glossary-term dt { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.glossary-term dd { font-size: 16px; color: var(--text-soft); line-height: 1.7; margin-left: 0; }

/* ── FORMULARIO ──────────────────────────────── */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--mid); margin-bottom: 0.4rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 17px; color: var(--text);
  background: var(--cream); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.75rem 0.9rem;
}
.field textarea { min-height: 160px; resize: vertical; }
.field-hint { font-size: 14px; color: var(--mid); margin-top: 0.35rem; font-style: italic; }
.btn {
  display: inline-block; background: var(--red); color: #fff; border: none; border-radius: 6px;
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 18px; letter-spacing: 2px;
  padding: 0.75rem 2rem; cursor: pointer; text-decoration: none; transition: background 0.2s;
}
.btn:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn-ghost:hover { background: var(--red); color: #fff; }
.hp-field { position: absolute; left: -9999px; }

/* ── RELACIONADOS ────────────────────────────── */
.related { background: var(--dark); padding: 3rem 2rem; }
.related-inner { max-width: 800px; margin: 0 auto; }
.related h2, .related h3 { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 28px; color: #fff; letter-spacing: 1px; margin-bottom: 1.5rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.related-card { background: rgba(255,255,255,0.05); border-radius: 8px; padding: 1.25rem; text-decoration: none; border: 1px solid rgba(255,255,255,0.06); transition: border-color 0.2s, background 0.2s; display: block; }
.related-card:hover { border-color: var(--red); background: rgba(255,255,255,0.08); }
.related-card .rc-gen { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 32px; color: var(--red); line-height: 1; }
.related-card .rc-title { font-size: 15px; color: rgba(255,255,255,0.72); margin-top: 4px; line-height: 1.4; }

/* ── FOOTER ──────────────────────────────────── */
footer { background: var(--dark); padding: 3rem 2rem 2.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand .footer-logo { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 26px; color: rgba(255,255,255,0.85); letter-spacing: 3px; margin-bottom: 0.5rem; }
.footer-brand .footer-logo span { color: var(--red); }
.footer-brand p { font-size: 15px; color: rgba(255,255,255,0.35); line-height: 1.6; max-width: 280px; font-style: italic; }
.footer-col h2 { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin-bottom: 0.9rem; font-weight: 400; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.28); line-height: 1.6; }

/* ── PÁGINA 404 ──────────────────────────────── */
.err-wrap { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 5rem 2rem; }
.err-code { font-family: 'Bebas Neue', Impact, sans-serif; font-size: clamp(90px, 20vw, 180px); color: var(--red); line-height: 0.9; }

/* ── ANIMACIONES ─────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.hero-inner > * { animation: fadeUp 0.7s ease both; }
.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.15s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.25s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: var(--dark); flex-direction: column; padding: 0.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.06); max-height: calc(100vh - 60px); overflow-y: auto;
  }
  nav.open { display: flex; }
  nav a { height: auto; padding: 0.75rem 2rem; border-bottom: none; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .section { padding: 3.5rem 1.5rem; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .article-body { padding: 2.5rem 1.5rem; }
  .article-hero { padding: 3rem 1.5rem 2.5rem; }
  .pros-cons { grid-template-columns: 1fr; }
  .timeline::before { left: 44px; }
  .tl-item { gap: 1.25rem; }
  .nav-inner { padding: 0 1.25rem; }
  .quote-section { padding: 3.5rem 1.5rem; }
}

/* --- Bloque de cifras destacadas --- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 2.5rem 0; }
.stat-box { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem 1rem; text-align: center; }
.stat-num { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 40px; line-height: 1; color: var(--red); letter-spacing: 1px; }
.stat-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--mid); margin-top: 0.5rem; line-height: 1.4; }

/* ── BANNER DE CONSENTIMIENTO ────────────────── */
#consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: var(--dark); border-top: 3px solid var(--red);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.28);
}
.consent-inner {
  max-width: 1100px; margin: 0 auto; padding: 1.5rem 2rem;
  display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.consent-copy { flex: 1 1 460px; }
.consent-copy h2 {
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 24px; color: #fff;
  letter-spacing: 2px; margin-bottom: 0.4rem;
}
.consent-copy p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.62); margin: 0; }
.consent-copy a { color: var(--red); text-decoration: underline; }
.consent-copy a:hover { color: #fff; }
.consent-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.consent-actions .btn-ghost { color: rgba(255,255,255,0.78); border-color: rgba(255,255,255,0.3); }
.consent-actions .btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
body.has-consent-banner { padding-bottom: 190px; }
@media (max-width: 680px) {
  .consent-inner { padding: 1.25rem 1.5rem; gap: 1.25rem; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; text-align: center; padding-left: 1rem; padding-right: 1rem; }
  body.has-consent-banner { padding-bottom: 300px; }
}

/* ── FIGURAS Y DIAGRAMAS PROPIOS ─────────────── */
.figure { margin: 2.75rem 0; }
.figure svg { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); background: var(--white); }
.figure figcaption {
  font-size: 14px; line-height: 1.6; color: var(--text-soft); margin-top: 0.85rem;
  padding-left: 0.9rem; border-left: 2px solid var(--red);
}
.figure figcaption b { color: var(--text); font-weight: 600; }
.section-dark .figure svg, .section-alt .figure svg { background: var(--white); }

/* ── PIE: ENLACE DE CONSENTIMIENTO ───────────── */
.footer-consent {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 15px; color: rgba(255,255,255,0.45);
  text-decoration: none; text-align: left;
}
.footer-consent:hover { color: var(--red); }

/* ── LLAMADA AL FINAL DE SECCIÓN ─────────────── */
.section-cta { text-align: center; margin-top: 3rem; }
.section-dark .section-cta .btn-ghost { color: #E8A88C; border-color: rgba(216,90,48,0.7); }
.section-dark .section-cta .btn-ghost:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ── CÓDIGO EN LÍNEA ─────────────────────────── */
.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em; background: var(--red-light); color: var(--red-dark);
  padding: 0.12em 0.4em; border-radius: 4px; word-break: break-word;
}
