  :root {
    --bg: #F3F4FA; --surface: #FFFFFF; --surface-2: #E8EAF3;
    --text: #2B2E52; --text-muted: #62658A; --border: #D7DAEA;
    --primary: #3D4178; --primary-dark: #2B2E52; --primary-tint: #E8EAF3;
    --accent: #E2694F; --accent-dark: #C8543C; --accent-tint: #FBE7E1; --accent-text: #B3442A;
    --shadow: 0 1px 2px rgba(20, 30, 27, 0.06);
    --shadow-lg: 0 12px 32px rgba(20,30,27,0.10);
    --radius: 12px;
    --serif: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  }
  html[data-theme="dark"] {
    --bg: #23253F; --surface: #2E3050; --surface-2: #383A5E;
    --text: #EDEEF9; --text-muted: #B3B6D6; --border: #454877;
    --primary: #A0A5DD; --primary-dark: #A6AAE0; --primary-tint: #282A4D;
    --accent: #F08468; --accent-dark: #F6A088; --accent-tint: #2E2036; --accent-text: #F08468;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.45);
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
  a { color: var(--primary); }
  .skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; }
  .skip-link:focus { left: 0; }

  .topbar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; row-gap: 8px; }
  .brand { display: flex; align-items: baseline; gap: 10px; }
  .brand-mark { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; color: var(--primary); text-decoration: none; }
  .brand-sub { font-size: 0.76rem; color: var(--text-muted); }
  @media (max-width: 640px) { .brand-sub { display: none; } }
  .nav-tools { display: flex; align-items: center; gap: 6px; }
  .nav-link { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; padding: 8px 13px; border-radius: 8px; text-decoration: none; color: var(--text-muted); border: 1px solid transparent; }
  .nav-link:hover { background: var(--surface-2); }
  .nav-link.is-active { color: var(--primary); background: var(--primary-tint); border-color: var(--border); }
  .topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
  .icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 1rem; }
  .icon-btn:hover { background: var(--surface-2); }
  .icon-btn:focus-visible, a:focus-visible, button:focus-visible, .nav-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

  .hero { max-width: 980px; margin: 0 auto; padding: 56px 24px 12px; text-align: center; }
  .hero .kicker { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
  .hero h1 { font-family: var(--serif); font-weight: 600; font-size: 2.3rem; margin: 0 0 14px; letter-spacing: -0.01em; }
  .hero p { color: var(--text-muted); font-size: 1.02rem; max-width: 640px; margin: 0 auto; }

  .picker { max-width: 980px; margin: 40px auto 20px; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  @media (max-width: 760px) { .picker { grid-template-columns: 1fr; } }

  .picker-card {
    display: block; text-decoration: none; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 30px 28px; position: relative; overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  }
  .picker-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
  .picker-card--laboral:hover { border-color: var(--accent); }
  .picker-card__icon { font-size: 2.2rem; margin-bottom: 14px; display: block; }
  .picker-card__title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin: 0 0 8px; color: var(--primary); }
  .picker-card--laboral .picker-card__title { color: var(--accent-text); }
  .picker-card__desc { font-size: 0.92rem; color: var(--text-muted); margin: 0 0 18px; line-height: 1.55; }
  .picker-card__stats { display: flex; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
  .picker-card__stat strong { display: block; font-family: var(--serif); font-size: 1.15rem; }
  .picker-card__stat span { font-size: 0.72rem; color: var(--text-muted); }
  .picker-card__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem; color: var(--primary); }
  .picker-card--laboral .picker-card__cta { color: var(--accent-text); }
  .picker-card__cta .arrow { transition: transform 0.15s ease; }
  .picker-card:hover .picker-card__cta .arrow { transform: translateX(3px); }
  .picker-card__badge { position: absolute; top: 18px; right: 18px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 3px 9px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-text); }

  .also-row { max-width: 980px; margin: 8px auto 60px; padding: 0 24px; text-align: center; }
  .also-row a { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); text-decoration: none; border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); }
  .also-row a:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-tint); }

  .data-note { max-width: 980px; margin: 0 auto 50px; padding: 0 24px; }
  .data-note-inner { background: var(--accent-tint); border: 1px solid var(--border); border-radius: 8px; padding: 10px 16px; font-size: 0.8rem; color: var(--text); text-align: center; }
  .data-note-inner strong { color: var(--accent-text); }

  footer { border-top: 1px solid var(--border); padding: 22px 24px 40px; }
  footer .container { max-width: 980px; margin: 0 auto; padding-top: 18px; }
  footer p { font-size: 0.78rem; color: var(--text-muted); max-width: 780px; margin: 0 auto 8px; text-align: center; }

  /* Menú en móvil: se desplaza en horizontal en lugar de salirse de la pantalla */
  @media (max-width: 760px) {
    .topbar > div:last-child { width: 100%; min-width: 0; }
    .nav-tools { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .nav-tools::-webkit-scrollbar { display: none; }
    .nav-link { white-space: nowrap; }
  }

  /* Accesibilidad: contraste AA de textos sobre el color primario en modo oscuro */
  html[data-theme="dark"] .btn-primary, html[data-theme="dark"] .btn-fill, html[data-theme="dark"] .annual-banner__cell,
  html[data-theme="dark"] .category-tab.is-active, html[data-theme="dark"] .skip-link, html[data-theme="dark"] .chip[aria-pressed="true"] { color: #14152A; }

/* Aviso de alcance de la RPT */
.lede-note { margin: 12px 0 0; font-size: 0.9rem; line-height: 1.5; color: var(--text-muted); max-width: 60ch; }
