/* ==========================================================
   DrD Notas — Exámenes de Oposiciones
   Diseño profesional: Plus Jakarta Sans + DM Serif Display
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --navy:        #0e1a2e;
  --navy-800:    #172338;
  --navy-700:    #1e3050;
  --navy-600:    #264068;
  --gold:        #b8860b;
  --gold-400:    #d4a520;
  --gold-100:    #fdf6e3;
  --gold-50:     #fffdf5;

  --slate-900:   #0f172a;
  --slate-800:   #1e293b;
  --slate-700:   #334155;
  --slate-600:   #475569;
  --slate-500:   #64748b;
  --slate-400:   #94a3b8;
  --slate-300:   #cbd5e1;
  --slate-200:   #e2e8f0;
  --slate-100:   #f1f5f9;
  --slate-50:    #f8fafc;

  --white:       #ffffff;
  --ink:         #1e293b;

  --c2-bg: #dcfce7; --c2-tx: #166534;
  --c1-bg: #dbeafe; --c1-tx: #1e40af;
  --a2-bg: #fef3c7; --a2-tx: #92400e;
  --a1-bg: #f3e8ff; --a1-tx: #6b21a8;
  --basico-bg: #ffe4e6; --basico-tx: #9f1239;

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   14px;
  --radius-xl:   20px;

  --shadow-xs:   0 1px 3px rgba(0,0,0,.06);
  --shadow-sm:   0 2px 8px rgba(0,0,0,.07);
  --shadow-md:   0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.12);

  --transition:  .18s ease;
  --font-body:   'Plus Jakarta Sans', system-ui, sans-serif;
  --font-serif:  'DM Serif Display', Georgia, serif;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--slate-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 1px 20px rgba(0,0,0,.3);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 16px;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo__icon { font-size: 1.2rem; opacity: .9; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.site-logo__brand {
  font-family: var(--font-body); font-weight: 700; font-size: .9rem;
  color: var(--gold-400); letter-spacing: .01em;
}
.site-logo__section {
  font-size: .62rem; color: rgba(255,255,255,.3);
  letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
}
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav__link {
  padding: 6px 13px; border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 500;
  color: rgba(255,255,255,.6); transition: all var(--transition); letter-spacing: .01em;
}
.site-nav__link:hover { color: var(--white); background: rgba(255,255,255,.07); }
.site-nav__link.active { background: rgba(180,134,11,.18); color: var(--gold-400); }
.site-nav__link--home {
  display: flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,.3); font-size: .75rem;
  margin-left: 8px; padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,.09);
  border-radius: 0; background: none !important;
}
.site-nav__link--home svg { width: 11px; height: 11px; }
.site-nav__link--home:hover { color: rgba(255,255,255,.65); background: none !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span {
  display: block; width: 20px; height: 1.5px;
  background: rgba(255,255,255,.7); border-radius: 2px; transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }
.mobile-nav {
  display: none; flex-direction: column;
  background: var(--navy-800); border-top: 1px solid rgba(255,255,255,.06);
}
.mobile-nav.open { display: flex; }
.mobile-nav__link { padding: 13px 28px; color: rgba(255,255,255,.7); font-size: .875rem; border-bottom: 1px solid rgba(255,255,255,.04); }
.mobile-nav__link.active { color: var(--gold-400); }
.mobile-nav__legal { display: flex; gap: 20px; padding: 12px 28px; border-top: 1px solid rgba(255,255,255,.06); }
.mobile-nav__legal a { color: rgba(255,255,255,.3); font-size: .72rem; }

/* ── INICIO HERO ─────────────────────────────────────────── */
.inicio-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 60%, #182d4a 100%);
  padding: 72px 0 64px;
  position: relative; overflow: hidden;
}
.inicio-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
  position: relative; z-index: 1;
}
.inicio-hero__pretitle {
  display: flex; align-items: center; gap: 8px;
  font-size: .7rem; font-weight: 600; color: rgba(255,255,255,.4);
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot--green { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.18); }
.inicio-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3rem);
  color: var(--white); font-weight: 400;
  line-height: 1.2; margin-bottom: 20px; letter-spacing: -.01em;
}
.inicio-hero__title .accent { color: var(--gold-400); font-style: italic; }
.inicio-hero__desc {
  color: rgba(255,255,255,.5); font-size: .9rem;
  max-width: 460px; margin-bottom: 32px; line-height: 1.8;
}
.inicio-hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }

.inicio-hero__visual {}
.inicio-hero__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px;
}
.stat-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); padding: 18px 16px; text-align: center;
}
.stat-card__num {
  font-family: var(--font-serif); font-size: 1.8rem;
  color: var(--gold-400); line-height: 1; margin-bottom: 4px;
}
.stat-card__label { font-size: .67rem; color: rgba(255,255,255,.35); letter-spacing: .04em; font-weight: 500; }

.hero-video-wrap {
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.1);
}
.hero-video-wrap iframe { display: block; width: 100%; height: 260px; border: none; }

/* ── PAGE HERO ───────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 100%);
  padding: 52px 0 44px; position: relative; overflow: hidden;
}
.page-hero__inner { position: relative; z-index: 1; max-width: 660px; }
.page-hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(180,134,11,.15); color: var(--gold-400);
  border: 1px solid rgba(180,134,11,.25); padding: 3px 11px;
  border-radius: 20px; font-size: .68rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px;
}
.page-hero__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--white); margin-bottom: 12px; letter-spacing: -.01em; line-height: 1.2;
}
.page-hero__sub {
  color: rgba(255,255,255,.5); font-size: .9rem;
  max-width: 540px; margin-bottom: 20px; line-height: 1.75;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; background: var(--gold-400); color: var(--navy);
  border-radius: var(--radius); font-family: var(--font-body);
  font-size: .85rem; font-weight: 600; transition: all var(--transition);
  text-decoration: none; border: none; cursor: pointer; letter-spacing: .01em;
}
.btn-primary:hover {
  background: #e8b82a; transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(180,134,11,.28);
}
.btn-primary--large { padding: 12px 30px; font-size: .9rem; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; background: transparent;
  color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); font-family: var(--font-body);
  font-size: .82rem; font-weight: 500; transition: all var(--transition); text-decoration: none;
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.05); }
.btn-ghost--light { color: var(--slate-600); border-color: var(--slate-200); }
.btn-ghost--light:hover { color: var(--ink); border-color: var(--slate-400); background: var(--white); }

/* ── FUENTES BANNER ──────────────────────────────────────── */
.fuentes-banner {
  background: var(--white); border-bottom: 1px solid var(--slate-200); padding: 11px 0;
}
.fuentes-banner__inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fuentes-banner__label {
  font-size: .65rem; font-weight: 600; color: var(--slate-400);
  letter-spacing: .09em; text-transform: uppercase; white-space: nowrap;
}
.fuentes-banner__links { display: flex; gap: 5px; flex-wrap: wrap; }
.fuentes-banner__links a {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 9px; background: var(--slate-100); border: 1px solid var(--slate-200);
  border-radius: 20px; font-size: .7rem; font-weight: 500; color: var(--slate-600);
  transition: all var(--transition);
}
.fuentes-banner__links a svg { width: 9px; height: 9px; opacity: .5; }
.fuentes-banner__links a:hover { background: var(--gold-100); border-color: var(--gold-400); color: var(--navy); }

/* ── FILTERS ─────────────────────────────────────────────── */
.filters-section {
  padding: 18px 0; background: var(--white); border-bottom: 1px solid var(--slate-200);
  position: sticky; top: 60px; z-index: 50; box-shadow: var(--shadow-xs);
}
.filters-form { display: flex; gap: 9px; align-items: flex-end; flex-wrap: wrap; }
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label {
  font-size: .63rem; font-weight: 600; color: var(--slate-400);
  letter-spacing: .09em; text-transform: uppercase;
}
.filter-group input,
.filter-group select {
  padding: 7px 11px; border: 1px solid var(--slate-200); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .82rem; color: var(--ink);
  background: var(--slate-50); min-width: 160px; transition: all var(--transition); height: 34px;
}
.filter-group input:focus,
.filter-group select:focus {
  outline: none; border-color: var(--navy-600); background: var(--white);
  box-shadow: 0 0 0 3px rgba(30,48,80,.07);
}
.btn-filter {
  height: 34px; padding: 0 18px; background: var(--navy); color: var(--white);
  border: none; border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: .82rem; font-weight: 600; cursor: pointer; transition: all var(--transition); align-self: flex-end;
}
.btn-filter:hover { background: var(--navy-700); }
.btn-reset {
  height: 34px; padding: 0 13px; color: var(--slate-500); font-size: .82rem;
  font-family: var(--font-body); border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200); background: transparent;
  transition: all var(--transition); align-self: flex-end;
  display: inline-flex; align-items: center; cursor: pointer;
}
.btn-reset:hover { color: var(--ink); border-color: var(--slate-400); }

/* ── EXAMS SECTION ───────────────────────────────────────── */
.exams-section { padding: 32px 0 56px; }
.results-count { font-size: .75rem; color: var(--slate-400); margin-bottom: 18px; font-weight: 500; }
.exams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(305px, 1fr)); gap: 14px; }

/* ── EXAM CARD ───────────────────────────────────────────── */
.exam-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200); display: flex; flex-direction: column;
  transition: all var(--transition); overflow: hidden;
}
.exam-card:hover { border-color: var(--slate-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.exam-card--age         { border-top: 3px solid #2563eb; }
.exam-card--ss          { border-top: 3px solid #059669; }
.exam-card--andalucia   { border-top: 3px solid #d97706; }
.exam-card--guardiacivil { border-top: 3px solid #7c3aed; }

.exam-card__header { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px 0; }
.exam-card__admin {
  font-size: .65rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--slate-400);
}
.exam-card__nivel { font-size: .65rem; font-weight: 700; padding: 2px 7px; border-radius: 20px; letter-spacing: .03em; }
.nivel-c2      { background: var(--c2-bg);     color: var(--c2-tx); }
.nivel-c1      { background: var(--c1-bg);     color: var(--c1-tx); }
.nivel-a2      { background: var(--a2-bg);     color: var(--a2-tx); }
.nivel-a1      { background: var(--a1-bg);     color: var(--a1-tx); }
.nivel-basico  { background: var(--basico-bg); color: var(--basico-tx); }

.exam-card__body { padding: 11px 15px 9px; flex: 1; }
.exam-card__title {
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  color: var(--ink); margin-bottom: 9px; line-height: 1.4;
}
.exam-card__meta { display: flex; flex-wrap: wrap; gap: 9px; }
.meta-item { display: flex; align-items: center; gap: 4px; font-size: .7rem; color: var(--slate-400); font-weight: 500; }
.meta-item svg { width: 11px; height: 11px; flex-shrink: 0; }

.exam-card__footer {
  padding: 11px 15px 13px; border-top: 1px solid var(--slate-100);
  display: flex; flex-direction: column; gap: 8px;
}
.exam-card__btns { display: flex; gap: 7px; }
.btn-download {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px;
  border-radius: var(--radius-sm); font-size: .76rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); text-decoration: none;
  flex: 1; justify-content: center; letter-spacing: .01em;
}
.btn-download svg { width: 12px; height: 12px; flex-shrink: 0; }
.btn-download--primary { background: var(--navy); color: var(--white); }
.btn-download--primary:hover { background: var(--navy-700); }
.btn-download--secondary { background: var(--gold-100); color: var(--navy); border: 1px solid #e8d07a; }
.btn-download--secondary:hover { background: var(--gold-400); color: var(--white); border-color: var(--gold-400); }
.btn-download--disabled { background: var(--slate-100); color: var(--slate-400); border: 1px solid var(--slate-200); cursor: not-allowed; }
.exam-card__source { font-size: .67rem; color: var(--slate-400); transition: color var(--transition); font-weight: 500; }
.exam-card__source:hover { color: var(--navy); }

/* ── DISCLAIMER ──────────────────────────────────────────── */
.disclaimer-section { padding: 0 0 44px; }
.disclaimer-box {
  display: flex; gap: 11px; align-items: flex-start;
  background: #f0f6ff; border: 1px solid #c7d8f0;
  border-radius: var(--radius-lg); padding: 14px 18px;
  font-size: .8rem; color: #3a4e7a; line-height: 1.65;
}
.disclaimer-icon { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; opacity: .65; }
.disclaimer-box a { color: var(--navy-700); font-weight: 600; text-decoration: underline; }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 80px 20px; color: var(--slate-400); }
.empty-state__icon { font-size: 2.4rem; margin-bottom: 14px; }

/* ── SECTION TITLES ──────────────────────────────────────── */
.section-title {
  font-family: var(--font-serif); font-size: clamp(1.5rem, 2.8vw, 2rem);
  color: var(--ink); font-weight: 400; margin-bottom: 8px;
  letter-spacing: -.01em; line-height: 1.2;
}
.section-sub { color: var(--slate-500); font-size: .88rem; margin-bottom: 30px; }

/* ── FUENTES SECTION ─────────────────────────────────────── */
.fuentes-section { padding: 56px 0; background: var(--white); }
.fuentes-header { margin-bottom: 28px; }
.fuentes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 11px; }
.fuente-card {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  background: var(--slate-50); border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); text-decoration: none; transition: all var(--transition);
}
.fuente-card:hover { border-color: var(--gold-400); background: var(--gold-50); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.fuente-card__icon { font-size: 1.2rem; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); flex-shrink: 0; }
.fuente-card__icon--age  { background: #eff6ff; }
.fuente-card__icon--ss   { background: #f0fdf4; }
.fuente-card__icon--and  { background: #fffbeb; }
.fuente-card__icon--gc   { background: #f5f3ff; }
.fuente-card__icon--boe  { background: #fff1f2; }
.fuente-card__icon--ej   { background: #eff6ff; }
.fuente-card__body { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.fuente-card__body strong { font-size: .83rem; color: var(--ink); font-weight: 600; }
.fuente-card__body span { font-size: .7rem; color: var(--slate-500); }
.fuente-card__body em { font-size: .66rem; color: var(--slate-400); font-style: normal; }
.fuente-card__arrow { width: 10px; height: 10px; color: var(--slate-300); flex-shrink: 0; }

/* ── CÓMO FUNCIONA ───────────────────────────────────────── */
.como-section { padding: 56px 0; background: var(--navy); }
.como-section .section-title { color: var(--white); }
.como-section .section-sub { color: rgba(255,255,255,.38); }
.pasos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 32px; }
.paso {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg); padding: 24px 20px;
}
.paso__num { font-family: var(--font-serif); font-size: 2.2rem; color: rgba(212,165,32,.16); line-height: 1; margin-bottom: 12px; }
.paso h3 { font-size: .95rem; font-weight: 600; color: var(--gold-400); margin-bottom: 7px; }
.paso p { color: rgba(255,255,255,.45); font-size: .82rem; line-height: 1.7; }
.pasos-cta { text-align: center; }

/* ── TUTORIAL SECTION ────────────────────────────────────── */
.tutorial-section { padding: 60px 0; background: var(--slate-50); }
.tutorial-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.tutorial-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fff7e6; color: #92400e; padding: 3px 11px; border-radius: 20px;
  font-size: .67rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 14px;
}
.tutorial-text .section-title { margin-bottom: 10px; }
.tutorial-text p { color: var(--slate-500); font-size: .875rem; line-height: 1.8; margin-bottom: 18px; }
.tutorial-checklist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.tutorial-checklist li { display: flex; align-items: center; gap: 7px; font-size: .83rem; color: var(--slate-700); }
.tutorial-checklist span { color: #16a34a; font-weight: 700; }
.btn-yt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; background: #cc0000; color: var(--white);
  border-radius: var(--radius-sm); font-size: .8rem; font-weight: 600; transition: all var(--transition);
}
.btn-yt svg { width: 14px; height: 14px; }
.btn-yt:hover { background: #aa0000; transform: translateY(-1px); }
.video-wrapper {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--navy); border: 1px solid var(--slate-200);
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.video-caption { margin-top: 9px; font-size: .7rem; color: var(--slate-400); text-align: center; }
.video-caption a { color: var(--navy-700); font-weight: 500; text-decoration: underline; }

/* ── CTA FINAL ───────────────────────────────────────────── */
.cta-final { padding: 68px 0; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%); }
.cta-final__inner { text-align: center; }
.cta-final__inner h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--white); margin-bottom: 10px;
}
.cta-final__inner p { color: rgba(255,255,255,.45); font-size: .875rem; margin-bottom: 26px; max-width: 420px; margin-left: auto; margin-right: auto; }

/* ── LEGAL PAGES ─────────────────────────────────────────── */
.legal-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 100%); padding: 44px 0 38px; }
.legal-hero__inner { max-width: 640px; }
.legal-tag {
  display: inline-flex; align-items: center;
  background: rgba(180,134,11,.15); color: var(--gold-400);
  border: 1px solid rgba(180,134,11,.25); padding: 3px 10px; border-radius: 20px;
  font-size: .65rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 12px;
}
.legal-hero h1 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem); color: var(--white); margin-bottom: 7px;
}
.legal-hero p { color: rgba(255,255,255,.38); font-size: .8rem; }

.legal-content { padding: 48px 0 56px; }
.legal-body { max-width: 720px; }
.legal-body h2 {
  font-family: var(--font-body); font-size: .95rem; font-weight: 700;
  color: var(--ink); margin: 28px 0 8px; padding-left: 11px;
  border-left: 3px solid var(--gold-400);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--slate-600); font-size: .85rem; line-height: 1.8; margin-bottom: 9px; }
.legal-body ul { padding-left: 18px; list-style: disc; margin-bottom: 11px; }
.legal-body ul li { color: var(--slate-600); font-size: .85rem; line-height: 1.75; margin-bottom: 5px; }
.legal-body a { color: var(--navy-700); text-decoration: underline; font-weight: 500; }
.legal-highlight {
  background: #f0f7ff; border: 1px solid #c0d6f0; border-radius: var(--radius);
  padding: 13px 17px; margin-bottom: 24px; font-size: .85rem; color: #1e3a5f; line-height: 1.65;
}
.legal-back { margin-top: 40px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.legal-nav-links { display: flex; gap: 14px; }
.legal-nav-links a { color: var(--slate-400); font-size: .8rem; text-decoration: underline; transition: color var(--transition); }
.legal-nav-links a:hover { color: var(--ink); }

.cookies-table-wrap { overflow-x: auto; margin: 14px 0 20px; }
.cookies-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.cookies-table th {
  background: var(--navy); color: rgba(255,255,255,.75);
  font-size: .65rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 8px 13px; text-align: left;
}
.cookies-table td { padding: 9px 13px; border-bottom: 1px solid var(--slate-100); color: var(--slate-600); line-height: 1.55; vertical-align: top; }
.cookies-table tr:last-child td { border-bottom: none; }
.cookies-table tr:nth-child(even) td { background: var(--slate-50); }
.cookies-table a { color: var(--navy-700); font-weight: 600; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.45); padding: 48px 0 0; margin-top: auto; }
.site-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.footer-logo span { font-size: 1.2rem; opacity: .75; }
.footer-logo strong { display: block; font-weight: 700; color: var(--gold-400); font-size: .85rem; }
.site-footer__brand p { font-size: .75rem; line-height: 1.75; color: rgba(255,255,255,.35); margin-bottom: 14px; }
.footer-social { display: flex; gap: 7px; }
.footer-social a {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm); color: rgba(255,255,255,.4); transition: all var(--transition);
}
.footer-social a svg { width: 13px; height: 13px; }
.footer-social a:hover { background: rgba(180,134,11,.2); color: var(--gold-400); border-color: rgba(180,134,11,.3); }
.site-footer__links h4 {
  font-size: .65rem; font-weight: 700; color: rgba(255,255,255,.3);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px;
}
.site-footer__links ul { display: flex; flex-direction: column; gap: 5px; }
.site-footer__links a { font-size: .75rem; color: rgba(255,255,255,.4); transition: color var(--transition); }
.site-footer__links a:hover { color: rgba(255,255,255,.75); }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; font-size: .7rem; color: rgba(255,255,255,.22); flex-wrap: wrap; gap: 10px;
}
.site-footer__bottom a { color: rgba(255,255,255,.28); }
.footer-legal-nav { display: flex; gap: 16px; }
.footer-legal-nav a { color: rgba(255,255,255,.25); transition: color var(--transition); }
.footer-legal-nav a:hover { color: rgba(255,255,255,.55); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .inicio-hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .inicio-hero__stats { grid-template-columns: repeat(4, 1fr); }
  .tutorial-inner { grid-template-columns: 1fr; }
  .pasos-grid { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .pasos-grid { grid-template-columns: 1fr; }
  .filters-form { flex-direction: column; }
  .filter-group { width: 100%; }
  .filter-group input, .filter-group select { min-width: 0; width: 100%; }
  .btn-filter, .btn-reset { width: 100%; text-align: center; justify-content: center; }
  .inicio-hero__stats { grid-template-columns: 1fr 1fr; }
  .filters-section { position: relative; top: 0; }
  .fuentes-banner__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .legal-back { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .exam-card__btns { flex-direction: column; }
  .inicio-hero__ctas { flex-direction: column; align-items: stretch; }
  .inicio-hero__ctas .btn-primary, .inicio-hero__ctas .btn-ghost { justify-content: center; }
}

/* ── BARRA DE RESULTADOS ─────────────────────────────────── */
.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}
.results-count {
  font-size: .75rem;
  color: var(--slate-400);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.results-updated {
  padding: 2px 8px;
  background: var(--slate-100);
  border-radius: 20px;
  font-size: .68rem;
  color: var(--slate-400);
}

/* ── PAGINACIÓN ──────────────────────────────────────────── */
.pagination { margin-top: 0; }
.pagination-bottom { margin-top: 32px; }

.pagination__inner {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  background: var(--white);
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.pagination__btn svg { width: 14px; height: 14px; }
.pagination__btn:hover {
  border-color: var(--navy-600);
  color: var(--navy);
  background: var(--slate-50);
}
.pagination__btn--disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}
.pagination__pages {
  display: flex;
  align-items: center;
  gap: 3px;
}
.pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 500;
  color: var(--slate-600);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all var(--transition);
}
.pagination__page:hover {
  background: var(--slate-100);
  border-color: var(--slate-200);
  color: var(--ink);
}
.pagination__page--active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  font-weight: 600;
}
.pagination__page--active:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: var(--white);
}
.pagination__ellipsis {
  font-size: .8rem;
  color: var(--slate-400);
  padding: 0 4px;
  user-select: none;
}
