/* ==========================================================================
   TELETRABAJO.CL · SISTEMA «EN LÍNEA» · MARINO + DORADO (29-09-2026)
   Paleta elegida por Pablo (tras probar verde): papel cálido, tinta marino,
   azul marino de marca y dorado como señal. Reglas en docs/SISTEMA-VISUAL.md.
   - Claro es el tema de la marca; oscuro sigue al sistema o al botón.
   - --night/--mist/--stone-* son constantes: valen lo mismo en ambos temas
     (superficies que se quedan oscuras, como la sala del simulador).
   - --signal es para puntos y rellenos, nunca para texto sobre papel.
   ========================================================================== */
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 85% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Constantes */
  --night: #0F1B2D;
  --night-2: #1A2740;
  --mist: #F6F4EF;
  --mist-2: #E6E3DC;
  --mist-3: #D0CBC0;
  --stone-400: #98A2B3;
  --stone-500: #677386;
  --stone-600: #475264;
  --stone-700: #323C4C;
  --pine: #1B3A6B;
  --signal: #D9A441;

  /* Superficies */
  --canvas: #F6F4EF;
  --paper: #FFFFFF;
  --surface-raised: #FFFFFF;
  --surface-soft: #EEEBE4;
  --surface-sunk: #E8E4DB;
  --bg: var(--canvas);
  --bg-card: var(--paper);

  /* Texto */
  --ink: #0F1B2D;
  --ink-soft: #3A4658;
  --ink-muted: #545F70;
  --text: var(--ink);
  --text-muted: var(--ink-muted);

  /* Líneas */
  --line: #DCD8CE;
  --line-strong: #C3BDB0;
  --border: var(--line);

  /* Marca y estados */
  --primary: #1B3A6B;
  --primary-hover: #142D55;
  --primary-strong: #142D55;
  --primary-soft: #E4EAF4;
  --on-primary: #FFFFFF;
  --accent: #8A5E0C;
  --ok: #1F7A55;
  --ok-strong: #145C3F;
  --ok-soft: #E1EFE8;
  --amber: #A8620F;
  --amber-strong: #8A4F0A;
  --amber-soft: #F6E8D2;
  --warning: var(--amber);
  --danger: #B3261E;
  --danger-soft: #F8E1DE;
  --focus-ring: #1B3A6B;

  /* Forma y ritmo */
  --r-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --shell: 1180px;
  --app-page: 1040px;
  --reading-page: 740px;
  --content-page: var(--app-page);
  --font: "Instrument Sans", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --shadow-card: none;
  --shadow-control: none;
  --shadow-pop: 0 12px 32px rgba(17, 26, 23, 0.14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0B1322;
  --paper: #111C30;
  --surface-raised: #16233B;
  --surface-soft: #0E1829;
  --surface-sunk: #080E1A;
  --ink: #EEF2F8;
  --ink-soft: #B9C3D4;
  --ink-muted: #8D99AE;
  --line: #22304A;
  --line-strong: #33436A;
  --primary: #E0B458;
  --primary-hover: #EBC677;
  --primary-strong: #EBC677;
  --primary-soft: #2A2413;
  --on-primary: #1A1405;
  --accent: #E0B458;
  --ok: #6FD39B;
  --ok-strong: #8BE6B5;
  --ok-soft: #14291F;
  --amber: #E8B45C;
  --amber-strong: #F0C97E;
  --amber-soft: #2B2215;
  --danger: #F2877E;
  --danger-soft: #2E1715;
  --focus-ring: #E0B458;
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.45);
}

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

body {
  background-color: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  font-size: 16px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(27,58,107, 0.3);
  color: var(--mist);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

a:focus:not(:focus-visible) {
  outline: none;
}

/* Premium scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--canvas); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.brand-symbol {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(27,58,107, 0.3);
  flex-shrink: 0;
}

.brand-wordmark {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand-wordmark strong {
  color: var(--primary);
  font-weight: 900;
}

.container {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

html[data-text-size="large"] {
  font-size: 18px;
}

.text-size-control {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.text-size-control button {
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.text-size-control button:hover {
  background: var(--mint);
  color: var(--primary);
}

.text-size-control button:last-child {
  border-right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* SAAS TOOL CARDS GRID (CALCADA DE VALOR-UF-NEXT) */
.saas-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.saas-tool-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.saas-tool-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tool-icon-square {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(27,58,107, 0.08);
  display: grid;
  place-items: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .tool-icon-square {
  background: rgba(27,58,107, 0.12);
}

.saas-tool-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.saas-tool-card p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tool-card-action {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease;
}

.saas-tool-card:hover .tool-card-action {
  gap: 0.6rem;
}

.ui-icon {
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
  stroke: currentColor;
}

/* UNIVERSAL SAAS MODAL STYLING (FASE 2) */
.saas-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 27, 45, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  animation: modalFadeIn 0.2s ease;
}

.saas-modal-content {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  max-width: 660px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.saas-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* PRINT MEDIA STYLING FOR ATS CV BUILDER (PERFECT SINGLE-PAGE PDF) */
@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  html, body {
    background: #ffffff !important;
    color: var(--night) !important;
    font-size: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 210mm !important;
    min-height: 297mm !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .site-header, .site-footer, .breadcrumbs, .saas-hero-badge, .no-print, .text-size-control, .theme-toggle, .mobile-nav-drawer, .mobile-nav-backdrop, .cv-builder-grid > div:first-child, .section-title, .subtitle {
    display: none !important;
  }

  .container, .article-content, main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }

  .cv-builder-grid {
    display: block !important;
  }

  #cvPreviewCard {
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    min-height: 297mm !important;
    padding: 16mm 17mm 15mm !important;
    margin: 0 !important;
    background: #ffffff !important;
    width: 210mm !important;
    max-width: 210mm !important;
    overflow: visible !important;
  }

  #cvLivePreview {
    color: var(--night) !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 266mm !important;
    font-size: 10.5pt !important;
    line-height: 1.45 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #cvLivePreview header {
    padding-bottom: 5mm !important;
    margin-bottom: 7mm !important;
    border-bottom: 0.7mm solid #264884 !important;
  }

  #cvLivePreview h2 {
    font-size: 22pt !important;
    margin-bottom: 1mm !important;
    letter-spacing: -0.025em !important;
  }

  #cvLivePreview section {
    margin-bottom: 6mm !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  #cvLivePreview h4 {
    margin: 0 0 2.4mm !important;
    padding-bottom: 1.3mm !important;
    font-size: 9.5pt !important;
    letter-spacing: 0.075em !important;
  }

  #cvLivePreview p {
    font-size: 10.25pt !important;
    line-height: 1.52 !important;
  }

  #cvLivePreview ul {
    margin-top: 0.25rem !important;
  }

  #cvLivePreview li {
    font-size: 9.8pt !important;
    margin-bottom: 1.2mm !important;
  }

  .simulator-page > *:not(#simStageWrapper),
  #simStageWrapper > *:not(#simDiagResult):not(#simFinalReport) {
    display: none !important;
  }

  /* El informe oculto en pantalla tampoco debe imprimirse. */
  #simDiagResult[hidden],
  #simFinalReport[hidden] {
    display: none !important;
  }

  .simulator-page #simStageWrapper {
    display: block !important;
    min-height: 0 !important;
    margin: 0 !important;
    position: static !important;
  }

  .simulator-page #simDiagResult {
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    width: 210mm !important;
    max-width: 210mm !important;
    min-height: 297mm !important;
    margin: 0 !important;
    padding: 16mm 17mm !important;
    border-radius: 0 !important;
    color: var(--night) !important;
    background: #ffffff !important;
  }
}

/* UNIVERSAL HYPERLINK & VISITED LINK STYLING */
a,
a:visited {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

[data-theme="light"] a,
[data-theme="light"] a:visited {
  color: var(--primary);
}

[data-theme="light"] a:hover {
  color: var(--primary);
}

/* HEADER & NAVIGATION */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.logo svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  transition: background 0.2s ease;
}

.theme-toggle:hover {
  background: var(--border);
}

/* HERO SECTION */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(27,58,107, 0.1);
  color: var(--primary);
  border: 1px solid rgba(27,58,107, 0.25);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* CHIPS & NAVIGATION TILES */
.chips-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none !important;
  font-size: 0.9375rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

[data-theme="light"] .chip {
  background: #ffffff;
  border-color: var(--mist-3);
  color: var(--night) !important;
}

.chip:hover,
.chip.active {
  background: linear-gradient(135deg, var(--primary), var(--primary)) !important;
  color: var(--on-primary) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(27,58,107, 0.35);
}

[data-theme="light"] .chip:hover,
[data-theme="light"] .chip.active {
  background: linear-gradient(135deg, var(--primary), var(--primary)) !important;
  color: var(--on-primary) !important;
}

/* CALCULATOR CARD */
.calc-box {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.calc-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.form-group input,
.form-group select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.875rem;
  border-radius: var(--radius);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
}

.preset-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.btn-preset {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: center;
  justify-content: center;
  box-sizing: border-box;
}

.btn-preset.active,
.btn-preset:hover {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

.calc-result {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  text-align: center;
}

.res-item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.res-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.res-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.copy-btn {
  background: var(--border);
  color: var(--text);
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.copy-btn:hover {
  background: var(--primary);
  color: var(--on-primary);
}

/* RADAR SALARIAL TABLE */
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  margin-bottom: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

[data-theme="light"] th {
  background: var(--mist);
}

tr:last-child td {
  border-bottom: none;
}

/* CARDS GRID FOR POSTS AND TOOLS */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.post-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: 180px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--night) 0%, var(--night-2) 100%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .post-img-wrapper {
  background: linear-gradient(135deg, var(--mist) 0%, var(--mist-2) 100%);
  border-bottom-color: var(--mist-3);
}

/* Subtle centered branding icon placeholder while loading */
.post-img-wrapper::before {
  content: '';
  font-size: 2.25rem;
  opacity: 0.2;
  position: absolute;
}

.post-img-wrapper img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent !important;
  font-size: 0 !important;
  transition: opacity 0.3s ease-in-out;
}

.post-card:hover .post-img-wrapper img {
  opacity: 0.95;
}

.post-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.post-meta {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.post-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.post-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.post-card h3 a:hover {
  color: var(--primary);
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

/* HERRAMIENTAS GRID */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tool-badge {
  align-self: flex-start;
  background: rgba(31,138,91, 0.15);
  color: var(--accent);
  border: 1px solid rgba(31,138,91, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* PAGINATION COMPONENT */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.page-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.page-item:hover,
.page-item.active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

.page-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ARTICLE DETAILED VIEW & LINKS STYLING */
.article-content {
  width: 100%;
  max-width: var(--content-page);
  margin: 0 auto;
  padding: 2.5rem 0 5rem;
}

.breadcrumbs {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.article-header {
  margin-bottom: 2.5rem;
}

.article-header h1 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.article-meta-bar {
  display: flex;
  gap: 1.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  flex-wrap: wrap;
}

.article-hero-img {
  width: 100%;
  max-height: 440px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.post-body h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}

.post-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 0.875rem;
  color: var(--text);
}

.post-body p {
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  color: var(--text);
  line-height: 1.75;
}

.post-body ul, .post-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-body li {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
}

/* HIGH CONTRAST IN-BODY HYPERLINKS IN DARK AND LIGHT MODES */
.post-body a {
  color: var(--primary) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  font-weight: 600 !important;
  transition: color 0.2s ease !important;
}

.post-body a:hover {
  color: var(--primary-hover) !important;
}

[data-theme="light"] .post-body a {
  color: var(--primary) !important;
}

[data-theme="light"] .post-body a:hover {
  color: var(--primary) !important;
}

.post-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
  font-style: italic;
}

/* VERDICT, AUTHOR & HIGHLIGHT BOXES */
.verdict-box,
.takeaways-box {
  background: var(--bg-card) !important;
  border-left: 4px solid var(--primary) !important;
  border-radius: 0 var(--radius) var(--radius) 0 !important;
  padding: 1.5rem 1.75rem !important;
  margin: 2rem 0 !important;
  color: var(--text) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .verdict-box,
[data-theme="light"] .takeaways-box {
  background: #F5F7FA !important;
  border-left-color: var(--primary) !important;
  color: var(--night) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.verdict-box p,
.takeaways-box p,
.verdict-box span,
.takeaways-box span,
.verdict-box strong,
.takeaways-box strong,
.verdict-box li,
.takeaways-box li {
  color: var(--text) !important;
}

.takeaways-box ul,
.takeaways-box ol {
  padding-left: 1.25rem !important;
  margin: 0.75rem 0 0 0 !important;
}

.takeaways-box li {
  margin-bottom: 0.5rem !important;
  font-size: 0.9375rem !important;
  line-height: 1.6 !important;
}

[data-theme="light"] .verdict-box p,
[data-theme="light"] .takeaways-box p,
[data-theme="light"] .verdict-box span,
[data-theme="light"] .takeaways-box span,
[data-theme="light"] .verdict-box strong,
[data-theme="light"] .takeaways-box strong {
  color: var(--night) !important;
}

.verdict-box p:first-child,
.takeaways-box h4 {
  color: var(--primary) !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  margin-bottom: 0.75rem !important;
}

[data-theme="light"] .verdict-box p:first-child,
[data-theme="light"] .takeaways-box h4 {
  color: var(--primary) !important;
}

.author-box {
  display: flex !important;
  align-items: center !important;
  background: var(--bg-card) !important;
  padding: 1.25rem 1.5rem !important;
  border-radius: var(--radius-lg) !important;
  margin: 2rem 0 !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}

[data-theme="light"] .author-box {
  background: #ffffff !important;
  border-color: var(--mist-2) !important;
  color: var(--night) !important;
}

.author-box p,
.author-box span,
.author-box strong {
  color: var(--text) !important;
}

[data-theme="light"] .author-box p,
[data-theme="light"] .author-box span,
[data-theme="light"] .author-box strong {
  color: var(--night) !important;
}

/* EXCEL SaaS TEMPLATE DOWNLOAD CARD */
.excel-template-box {
  background: var(--ok-strong);
  border: 1px solid var(--ok);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2.5rem 0;
  box-shadow: 0 12px 35px rgba(31,138,91, 0.15);
}

[data-theme="light"] .excel-template-box {
  background: var(--ok-soft);
  border-color: var(--ok);
}

.excel-header {
  padding: 1.5rem 1.75rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(31,138,91, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.excel-badge {
  background: var(--ok);
  color: var(--on-primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.excel-main-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 0.375rem;
}

[data-theme="light"] .excel-main-title {
  color: var(--ok-strong);
}

.excel-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-excel-dl {
  background: var(--ok);
  color: var(--on-primary);
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(31,138,91, 0.3);
}

.btn-excel-dl:hover {
  background: var(--ok);
}

.btn-excel-copy {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

[data-theme="light"] .btn-excel-copy {
  background: #ffffff;
  color: var(--ok-strong);
  border-color: var(--ok-soft);
}

.excel-sheets-container {
  padding: 1.5rem 1.75rem;
}

.excel-sheet-section {
  margin-bottom: 1.75rem;
}

.excel-sheet-section:last-child {
  margin-bottom: 0;
}

.sheet-title {
  color: var(--ok);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

[data-theme="light"] .sheet-title {
  color: var(--ok);
}

.excel-table {
  min-width: 650px;
}

.excel-table th {
  background: var(--ok);
  color: var(--on-primary);
  font-weight: 700;
}

.excel-table td {
  border-color: rgba(31,138,91, 0.2);
  color: var(--ink);
}

[data-theme="light"] .excel-table td {
  color: var(--ok-strong);
}

/* UX_TOOL CONTAINER & FORM ELEMENTS FOR ALL 2,505 POSTS */
#ux-tool-container,
.ux-tool-container,
.post-body div[id*="ux-tool"] {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 2rem !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
  color: var(--text) !important;
  margin: 2.5rem 0 !important;
}

[data-theme="light"] #ux-tool-container,
[data-theme="light"] .ux-tool-container,
[data-theme="light"] .post-body div[id*="ux-tool"] {
  background: #ffffff !important;
  border-color: var(--mist-2) !important;
  color: var(--night) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

/* Force inner div wrappers to match card background */
#ux-tool-container div,
.ux-tool-container div {
  background: transparent !important;
  color: var(--text) !important;
}

[data-theme="light"] #ux-tool-container div,
[data-theme="light"] .ux-tool-container div {
  color: var(--night) !important;
}

#ux-tool-container h3,
#ux-tool-container label,
.ux-tool-container h3,
.ux-tool-container label {
  color: var(--text) !important;
}

[data-theme="light"] #ux-tool-container h3,
[data-theme="light"] #ux-tool-container label,
[data-theme="light"] .ux-tool-container h3,
[data-theme="light"] .ux-tool-container label {
  color: var(--night) !important;
}

.post-body input[type="text"],
.post-body input[type="number"],
.post-body textarea,
.post-body select,
#ux-tool-container input,
#ux-tool-container textarea,
#ux-tool-container select {
  background: var(--bg) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 0.875rem 1rem !important;
  font-size: 0.9375rem !important;
  width: 100% !important;
}

[data-theme="light"] .post-body input[type="text"],
[data-theme="light"] .post-body input[type="number"],
[data-theme="light"] .post-body textarea,
[data-theme="light"] .post-body select,
[data-theme="light"] #ux-tool-container input,
[data-theme="light"] #ux-tool-container textarea,
[data-theme="light"] #ux-tool-container select {
  background: var(--mist) !important;
  color: var(--night) !important;
  border-color: var(--mist-3) !important;
}

#ux-btn-action,
#ux-btn-copy,
.ux-tool-container button,
.post-body button[type="button"],
.post-body button[id*="ux-btn"] {
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  color: var(--on-primary) !important;
  font-weight: 700 !important;
  padding: 0.875rem 1.5rem !important;
  border-radius: var(--radius) !important;
  border: none !important;
  cursor: pointer !important;
  transition: box-shadow 0.2s ease !important;
}

#ux-btn-copy {
  background: var(--ok) !important;
}

#ux-btn-action:hover,
#ux-btn-copy:hover,
.ux-tool-container button:hover {
  box-shadow: 0 6px 20px rgba(27,58,107, 0.35) !important;
}

/* UX_RESULT_BOX, PRE & OUTPUT DISPLAY AREA */
#ux-result-box,
.ux-result-box {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 1.75rem !important;
  margin-top: 1.75rem !important;
  color: var(--text) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] #ux-result-box,
[data-theme="light"] .ux-result-box {
  background: var(--mist) !important;
  border-color: var(--mist-3) !important;
  color: var(--night) !important;
}

/* Result content text inherits theme colors cleanly */
#ux-result-box p,
#ux-result-box div,
#ux-result-box li,
#ux-result-box span,
#ux-result-box strong {
  color: var(--text) !important;
  background: transparent !important;
  border: none !important;
}

[data-theme="light"] #ux-result-box p,
[data-theme="light"] #ux-result-box div,
[data-theme="light"] #ux-result-box li,
[data-theme="light"] #ux-result-box span,
[data-theme="light"] #ux-result-box strong {
  color: var(--night) !important;
}

#ux-result-box h4,
#ux-result-box h3,
#ux-result-box .result-header {
  color: var(--primary) !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

[data-theme="light"] #ux-result-box h4,
[data-theme="light"] #ux-result-box h3 {
  color: var(--primary) !important;
}

#ux-result-content,
.ux-result-content {
  background: transparent !important;
  color: var(--text) !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
  word-break: break-word !important;
  border: none !important;
  padding: 0 !important;
}

/* Force all text elements inside result content to inherit pristine high contrast */
#ux-result-content p,
#ux-result-content div,
#ux-result-content li,
#ux-result-content td,
#ux-result-content span,
#ux-result-content strong,
#ux-result-content pre {
  color: var(--text) !important;
}

[data-theme="light"] #ux-result-content p,
[data-theme="light"] #ux-result-content div,
[data-theme="light"] #ux-result-content li,
[data-theme="light"] #ux-result-content td,
[data-theme="light"] #ux-result-content span,
[data-theme="light"] #ux-result-content strong,
[data-theme="light"] #ux-result-content pre {
  color: var(--night) !important;
}

/* FOOTER */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.75rem;
  margin-top: 4rem;
}

.footer-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.8fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.footer-brand-panel {
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 800;
}

.footer-brand:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-brand-panel > p {
  max-width: 38ch;
  margin: 1rem 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.footer-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 440px;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
}

.footer-contact-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-contact-label {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#emailHolder {
  overflow-wrap: anywhere;
}

.footer-copy-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  margin: 0;
  padding: 0.65rem 0.8rem;
  white-space: nowrap;
}

.footer-copy-btn svg {
  width: 18px;
  height: 18px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.footer-col h4 {
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  margin-top: 2.75rem;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-service-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 18%, transparent);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .article-header h1 {
    font-size: 1.875rem;
  }
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links {
    gap: 1rem;
    font-size: 0.875rem;
  }
}

/* CV PARSER & DROPZONE STYLING */
.dropzone-container {
  border: 2px dashed var(--primary);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  background: var(--bg-card);
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 2rem;
  position: relative;
}

.dropzone-container:hover,
.dropzone-container.dragover {
  background: rgba(27,58,107, 0.1);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
}

.dropzone-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.dropzone-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.dropzone-subtitle {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.skill-tag {
  background: rgba(27,58,107, 0.15);
  color: var(--primary);
  border: 1px solid rgba(27,58,107, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
}

[data-theme="light"] .skill-tag {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-soft);
}

/* SILICON VALLEY SENIOR SAAS UI DESIGN SYSTEM */
.saas-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(27,58,107, 0.1);
  border: 1px solid rgba(27,58,107, 0.3);
  border-radius: var(--radius-lg) !important;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  max-width: 100%;
  box-sizing: border-box;
  line-height: 1.3;
}

[data-theme="light"] .saas-hero-badge {
  background: var(--primary-soft);
  border-color: var(--primary-soft);
  color: var(--primary);
}

.saas-dot-pulse {
  width: 8px !important;
  height: 8px !important;
  min-width: 8px !important;
  min-height: 8px !important;
  max-width: 8px !important;
  max-height: 8px !important;
  background-color: var(--ok) !important;
  border-radius: 50% !important;
  box-shadow: 0 0 10px var(--ok);
  animation: pulse-dot 1.8s infinite ease-in-out;
  flex-shrink: 0 !important;
  display: inline-block !important;
  align-self: center;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 16px var(--ok); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.saas-card-glass {
  background: rgba(15, 27, 45, 0.75) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  padding: 2.5rem !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="light"] .saas-card-glass {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: var(--mist-2) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06) !important;
}

.saas-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.saas-metric-card {
  background: rgba(15, 27, 45, 0.6);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

[data-theme="light"] .saas-metric-card {
  background: var(--mist);
  border-color: var(--mist-2);
}

.saas-metric-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.saas-score-circle {
  width: 96px;
  height: 96px;
  min-width: 96px;
  min-height: 96px;
  max-width: none;
  flex: 0 0 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,58,107, 0.2) 0%, rgba(31,138,91, 0.2) 100%);
  border: 3px solid var(--ok);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(31,138,91, 0.25);
}

.saas-score-val {
  font-size: 2rem;
  color: var(--ok);
  line-height: 1;
}

.saas-score-lbl {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* SAAS JOB CARD COMPONENT (STRICT ZERO DEFORMATION) */
.saas-job-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.saas-job-card:hover {
  border-color: var(--primary);
}

.saas-job-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.saas-job-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  word-break: break-word;
  flex: 1;
  min-width: 0;
}

.saas-job-match {
  font-size: 0.75rem;
  background: rgba(27,58,107, 0.15);
  color: var(--primary);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.saas-job-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.5;
  word-break: break-word;
}

.saas-job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  width: 100%;
}

.saas-job-salary {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.saas-salary-val {
  font-size: 1.85rem !important;
  font-weight: 900 !important;
  color: var(--ok) !important;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.saas-salary-lbl {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.saas-apply-btn {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius) !important; /* 8px clean SaaS radius */
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.saas-apply-btn:hover {
  background: var(--primary-hover);
}

/* ----------------------------------------------------
   STRICT 320px MOBILE RESPONSIVE ENGINE (ZERO OVERFLOW)
   ---------------------------------------------------- */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  position: relative;
}

*, *::before, *::after {
  max-width: 100%;
  box-sizing: border-box;
}

img, video, iframe, table, pre, code, input, select, textarea, button {
  max-width: 100%;
}

/* ---------- MOBILE HAMBURGER & SIDE-DRAWER (CALCULADORA IPC STANDARD) ---------- */
.mobile-menu-button {
  display: none;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-menu-button {
    display: grid !important;
  }
}

/* Fullscreen Backdrop Overlay + Slide-in Drawer */
.menu-overlay[hidden],
.menu-drawer[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 27, 45, 0.65);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  opacity: 0;
  visibility: hidden;
  display: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.menu-overlay.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  pointer-events: auto !important;
  transition: opacity 220ms ease;
}

.menu-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 100vw);
  background: var(--paper);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: -12px 0 32px rgba(15, 27, 45, 0.3);
  overflow: hidden;
}

.menu-overlay.is-open .menu-drawer {
  transform: translateX(0);
}

.menu-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  flex-shrink: 0;
}

.menu-drawer-head .brand {
  font-size: 1.05rem;
}

.menu-close {
  flex-shrink: 0;
}

.menu-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0 24px;
  -webkit-overflow-scrolling: touch;
}

.menu-section {
  padding: 14px 20px 6px;
}

.menu-section + .menu-section {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 16px;
}

.menu-section-kicker {
  display: block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.menu-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 120ms ease, color 120ms ease;
}

.menu-nav a:last-child {
  border-bottom: 0;
}

.menu-nav a:hover,
.menu-nav a:focus-visible {
  color: var(--primary);
  background: rgba(27,58,107, 0.08);
}

.menu-nav a[aria-current='page'] {
  color: var(--primary);
  background: rgba(27,58,107, 0.12);
  font-weight: 700;
  position: relative;
}

.menu-nav a[aria-current='page']::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

/* CHIPS & BUTTONS - CLEAN SAAS GEOMETRY SITE-WIDE */
.chip, button.chip, a.chip, .btn, .hero-badge, .theme-toggle {
  border-radius: var(--radius) !important; /* 8px clean SaaS radius */
}

button.chip,
a.chip,
.copy-btn,
.btn-preset,
.saas-apply-btn,
.btn-excel-dl,
.btn-excel-copy,
.tool-card-action {
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

button.chip,
a.chip {
  flex-shrink: 0;
}

.saas-hero-badge {
  border-radius: var(--radius-lg) !important; /* 12px clean rect radius */
  white-space: normal !important;
  word-break: break-word !important;
  text-align: center;
}

/* Mobile Breakpoints <= 768px and <= 480px down to 320px */
@media screen and (max-width: 768px) {
  .site-header {
    padding: 0.5rem 0;
  }

  .header-inner {
    padding: 0.5rem 0.75rem;
  }

  .desktop-nav {
    display: none !important;
  }

  .mobile-menu-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .saas-tools-grid,
  .saas-grid-2col,
  .news-grid,
  .calc-form,
  .calc-result {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .saas-tool-card,
  .calc-box,
  .saas-card-glass,
  .dropzone-container {
    padding: 1.25rem 0.85rem !important;
  }

  .preset-buttons {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }

  .btn-preset {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 0.5rem 0.35rem !important;
  }

  .saas-modal-content {
    padding: 1.25rem 0.85rem !important;
    max-width: 95vw !important;
  }

  /* Job card responsive rules */
  .saas-job-card {
    padding: 1rem 0.85rem !important;
  }

  .saas-job-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.35rem !important;
  }

  .saas-job-match {
    white-space: normal !important;
    display: inline-block !important;
    max-width: 100% !important;
  }

  .saas-job-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .saas-apply-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.9375rem !important;
    white-space: normal !important;
  }

  h1 {
    font-size: clamp(1.4rem, 6vw, 2.25rem) !important;
    line-height: 1.25 !important;
    word-break: break-word;
  }

  h2 {
    font-size: clamp(1.2rem, 5vw, 1.75rem) !important;
    word-break: break-word;
  }

  h3 {
    font-size: clamp(1rem, 4vw, 1.35rem) !important;
    word-break: break-word;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 0.5rem !important;
  }

  .logo {
    font-size: 1.05rem;
  }

  .brand-symbol {
    width: 30px;
    height: 30px;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .text-size-control button {
    min-width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .chip, .skill-tag {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.65rem !important;
    white-space: normal !important;
    word-break: break-word;
  }

  th, td {
    padding: 0.5rem 0.5rem !important;
    font-size: 0.8125rem !important;
  }

  .saas-modal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .saas-modal-header button {
    align-self: flex-end;
    margin-top: -2rem;
  }

  .res-val {
    font-size: clamp(0.95rem, 4.5vw, 1.25rem) !important;
    word-break: break-word !important;
  }
}

/* ==========================================================
   HOME DECISION HUB
   Dense desktop hierarchy with a verified 320px fallback.
   ========================================================== */
.home-role-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.home-role-selector .chip {
  width: 100%;
  min-width: 0;
  padding: 0.75rem 0.65rem;
  font-size: 0.88rem;
  -webkit-tap-highlight-color: transparent;
  transition: none !important;
}

.home-role-selector .chip:active,
.btn-preset:active,
#btnHeroSearchJobs:active {
  transform: none !important;
}

.home-role-selector .chip:focus-visible,
.btn-preset:focus-visible,
#btnHeroSearchJobs:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.btn-preset,
.btn-preset.active,
.btn-preset:hover {
  transition: none !important;
}

.home-job-card {
  gap: 0.8rem !important;
  padding: 1.15rem 1.25rem !important;
  overflow: hidden;
}

.home-job-card .saas-job-header {
  align-items: center;
}

.home-job-card .saas-job-title {
  font-size: clamp(1.08rem, 2.2vw, 1.23rem);
  line-height: 1.3;
}

.home-job-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem 1.35rem;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  background: var(--surface-soft);
}

.home-job-company,
.home-job-location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.35;
}

.home-job-company .ui-icon,
.home-job-location .ui-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--primary);
}

.home-job-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.home-job-facts > span {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-soft) 82%, var(--bg-card));
}

.home-job-facts small {
  color: var(--ink-muted);
  font-size: 0.69rem;
  font-weight: 760;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-transform: uppercase;
}

.home-job-facts strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.35;
}

.home-job-card .saas-job-footer {
  margin-top: 0;
  padding-top: 0.8rem;
}

.home-job-card .saas-salary-val {
  font-size: clamp(1.5rem, 4vw, 1.9rem) !important;
}

.home-job-card .saas-salary-lbl {
  max-width: 330px;
  margin-top: 0.15rem;
  line-height: 1.35;
}

.job-context-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.home-job-card .job-context-badges {
  justify-content: center;
}

.job-context-badge,
.job-date-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.32rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 0.75rem;
  font-weight: 760;
  line-height: 1.2;
}

.job-context-badge-chile {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  color: color-mix(in srgb, var(--accent) 82%, var(--ink));
  background: color-mix(in srgb, var(--accent) 9%, var(--surface-soft));
}

.jobs-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.jobs-filter-grid label {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 740;
}

.jobs-filter-grid input,
.jobs-filter-grid select {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface-soft);
}

.jobs-directory-card {
  position: relative;
  display: grid;
  gap: 1rem;
  overflow: hidden;
  padding: 1.4rem 1.5rem !important;
  border-color: color-mix(in srgb, var(--line) 82%, var(--primary));
  box-shadow: 0 12px 30px rgba(15, 27, 45, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.jobs-directory-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  content: '';
}

.jobs-directory-card:hover {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--line));
  box-shadow: 0 16px 38px rgba(15, 27, 45, 0.1);
  transform: translateY(-2px);
}

.jobs-directory-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
}

.jobs-directory-company,
.jobs-directory-location {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  min-width: 0;
  margin: 0;
}

.jobs-directory-company {
  margin-bottom: 0.25rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 780;
}

.jobs-directory-identity {
  min-width: 0;
}

.jobs-directory-company .ui-icon,
.jobs-directory-location .ui-icon {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
}

.jobs-directory-card .saas-job-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  font-weight: 800;
}

.jobs-directory-location {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.jobs-directory-meta {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-soft) 76%, transparent);
}

.jobs-directory-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.job-date-badge-today {
  border-color: color-mix(in srgb, var(--ok) 48%, var(--line));
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 12%, var(--paper));
}

.jobs-directory-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.jobs-directory-footer .saas-salary-val {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 800;
}

.jobs-directory-footer .saas-salary-lbl {
  display: block;
  margin-top: 0.18rem;
  color: var(--ink-muted);
  font-size: 0.72rem;
}

.home-market-pulse,
.home-silo-section,
.home-explainer,
.home-faq {
  width: min(100%, 1040px);
  margin: 0 auto 4rem;
}

.home-market-pulse {
  padding: clamp(1.25rem, 3.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.home-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.home-metric-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.home-metric-kicker {
  margin-bottom: 0.45rem;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.home-metric-card > strong {
  color: var(--ink);
  font-size: clamp(1.25rem, 2.7vw, 1.62rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.home-metric-card p {
  flex: 1;
  margin: 0.65rem 0 0.7rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.home-metric-card small,
.home-metric-card a {
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.home-metric-card a {
  color: var(--primary);
}

.home-section-lead {
  max-width: 720px;
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

.home-silo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.home-silo-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.25rem 0.85rem;
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.home-silo-icon {
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  border-radius: 11px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface-soft));
}

.home-silo-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
}

.home-silo-card > p {
  margin: 0.25rem 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.home-silo-card nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
}

.home-silo-card nav a {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 750;
}

.home-explainer {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.35rem, 4vw, 2.35rem);
  border-block: 1px solid var(--line);
}

.home-explainer .section-title {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.3rem);
}

.home-explainer-copy p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.home-explainer-copy p:last-child {
  margin-bottom: 0;
}

.home-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.home-faq details {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
}

.home-faq summary {
  min-height: 58px;
  padding: 1rem 2.5rem 1rem 1rem;
  color: var(--ink);
  font-weight: 760;
  line-height: 1.4;
  cursor: pointer;
}

.home-faq details p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

@media screen and (max-width: 760px) {
  .home-role-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-job-facts,
  .home-metrics-grid,
  .home-explainer {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-silo-grid,
  .home-faq-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen and (max-width: 520px) {
  .home-role-selector {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-role-selector .chip {
    white-space: nowrap !important;
  }

  .home-job-card {
    padding: 1rem !important;
  }

  .home-job-card .saas-job-header,
  .home-job-card .saas-job-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .home-job-card .saas-job-match {
    align-self: flex-start;
  }

  .home-job-primary {
    align-items: stretch;
    flex-direction: column;
    padding: 0.8rem;
    text-align: left;
  }

  .home-job-company,
  .home-job-location {
    justify-content: flex-start;
    text-align: left;
  }

  .home-job-card .saas-job-salary {
    width: 100%;
  }

  .home-job-card .saas-apply-btn {
    width: 100%;
  }

  .home-silo-card {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 1rem;
  }

  .home-silo-icon {
    width: 38px;
    height: 38px;
  }

  .home-silo-card nav {
    align-items: flex-start;
    flex-direction: column;
  }

}

/* RESPONSIVE FOUNDATION — verified down to 320px */
html { overflow-x: clip; }
body { width: auto !important; min-width: 0; overflow-x: clip !important; }
main, section, article, header, footer, nav, div, form, fieldset { min-width: 0; }
.cv-builder-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(1.1rem, 2.25vw, 1.5rem);
}
.cv-builder-actions, .cv-experience-heading { display: flex; gap: 0.75rem; }
.cv-experience-heading { justify-content: space-between; }
.post-body { overflow-wrap: anywhere; }
.post-body pre, .post-body code { white-space: pre-wrap; overflow-wrap: anywhere; }
.post-body iframe, .post-body video, .post-body embed, .post-body object { width: 100%; }

@media screen and (max-width: 768px) {
  .header-inner { flex-direction: row; gap: 0.5rem; width: 100%; }
  .logo { min-width: 0; }
  .brand-wordmark { white-space: nowrap; }
  .posts-grid, .tools-grid, .saas-tools-grid, .saas-grid-2col, .cv-builder-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .post-card, .tool-card, .saas-tool-card, .calc-box, .calc-result, .saas-card-glass { min-width: 0; }
  .post-card-body { padding: 1.1rem; }
  .hero { padding: 2.25rem 0 2rem !important; }
  .hero p { font-size: 1rem; }
  .calc-result { padding: 1rem; }
  .res-val, .saas-salary-val { overflow-wrap: anywhere; }
  .section-title { align-items: flex-start; font-size: 1.35rem; }
  .article-meta-bar { align-items: flex-start; }
  .cv-builder-actions, .cv-experience-heading { flex-direction: column; }
  .cv-builder-actions > * { width: 100%; flex: none !important; }
  #cvPreviewCard { padding: 1rem !important; }
}

/* ATS CV builder: independent columns, clean output and safe overflow */
.article-content.cv-builder-page {
  width: 100%;
  max-width: var(--content-page);
}

.article-content.tool-page-wide {
  max-width: var(--content-page);
}

.cv-editor-card {
  align-self: start;
  justify-content: flex-start;
}

.cv-editor-card .cv-builder-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cv-builder-actions .chip {
  min-height: 48px;
  padding: 0.7rem 0.85rem !important;
  font-size: 0.875rem;
  line-height: 1;
  box-shadow: none;
}

.cv-builder-actions .chip:hover {
  box-shadow: var(--shadow-control);
}

.cv-builder-actions .cv-secondary-action {
  color: var(--ink) !important;
  background: var(--surface-soft) !important;
  border-color: var(--line) !important;
}

.cv-builder-actions .cv-secondary-action:hover {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.cv-editor-card input,
.cv-editor-card textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cv-editor-card label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
}

.cv-editor-section {
  margin: 1.25rem 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.cv-editor-section h4 {
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-size: 0.93rem;
}

.cv-editor-section input,
.cv-editor-section textarea {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper);
}

.cv-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 0.75rem;
}

#cvFormSummary {
  min-height: 138px;
  max-height: 320px;
  resize: vertical;
  overflow-y: auto;
}

#cvPreviewCard {
  align-self: start;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

#cvLivePreview {
  min-height: clamp(620px, 63vw, 900px);
  display: flex;
  flex-direction: column;
}

#cvLivePreview section[hidden],
#cvLivePreview div[hidden] {
  display: none !important;
}

#prevEducationSection h4,
#prevAdditionalSection h4 {
  margin: 0 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--mist-2);
  color: var(--night);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#prevEducationSection ul {
  margin: 0.35rem 0 0 1.2rem;
  padding: 0;
  color: var(--stone-700);
  font-size: 0.875rem;
  line-height: 1.5;
}

.cv-additional-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.cv-additional-grid p {
  margin: 0;
  color: var(--stone-700);
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#cvLivePreview,
#cvLivePreview > *,
#prevName,
#prevRole,
#prevContact,
#prevSummary {
  max-width: 100%;
}

#prevName,
#prevRole,
#prevContact,
#prevSummary,
#cvLivePreview li {
  overflow-wrap: anywhere;
  word-break: normal;
}

#prevSummary {
  white-space: normal;
}

.cv-builder-grid .saas-tool-card:hover {
  transform: none;
}

@media screen and (max-width: 920px) {
  .cv-builder-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Verified-source badges */
.source-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.4rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 999px;
  color: color-mix(in srgb, var(--accent) 72%, var(--ink));
  background: color-mix(in srgb, var(--accent) 9%, var(--surface-soft));
  font-weight: 750;
  white-space: nowrap;
}

.source-status-badge.is-delayed {
  border-color: color-mix(in srgb, var(--amber-strong) 42%, var(--line));
  color: color-mix(in srgb, var(--amber-strong) 78%, var(--ink));
  background: color-mix(in srgb, var(--amber) 10%, var(--surface-soft));
}

/* Radar: dense, traceable job information without feed-like empty cards. */
.radar-toolbar {
  margin-bottom: 1.25rem;
  padding: 1.25rem !important;
}

.radar-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(170px, 0.8fr));
  gap: 0.85rem;
}

.radar-filter-grid label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 750;
}

.radar-filter-grid input,
.radar-filter-grid select {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface-soft);
}

.radar-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.radar-source-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.radar-source-row .chip {
  min-height: 38px;
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
}

.radar-job-list {
  display: grid;
  gap: 0.9rem;
}

.radar-job-card {
  overflow: hidden;
  padding: 1.15rem 1.2rem !important;
}

.radar-job-top {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(190px, auto);
  align-items: center;
  gap: 0.9rem;
}

.radar-company-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--line));
  border-radius: 12px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface-soft));
  font-size: 0.82rem;
  font-weight: 800;
}

.radar-company-name {
  margin: 0 0 0.2rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.02em;
}

.radar-job-heading .saas-job-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.3;
}

.radar-salary-box {
  min-width: 190px;
  padding: 0.65rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 11px;
  text-align: right;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface-soft));
}

.radar-salary-box small,
.radar-salary-box strong {
  display: block;
}

.radar-salary-box small {
  margin-bottom: 0.15rem;
  color: var(--ink-muted);
  font-size: 0.7rem;
}

.radar-salary-box strong {
  color: color-mix(in srgb, var(--accent) 72%, var(--ink));
  font-size: 0.98rem;
  line-height: 1.25;
}

.radar-job-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.radar-job-facts > span {
  min-width: 0;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.radar-job-facts small,
.radar-job-facts strong {
  display: block;
}

.radar-job-facts small {
  margin-bottom: 0.15rem;
  color: var(--ink-muted);
  font-size: 0.67rem;
}

.radar-job-facts strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.78rem;
}

.radar-job-location {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.radar-job-location .ui-icon {
  flex: 0 0 auto;
  margin-top: 0.08rem;
  color: var(--primary);
}

.radar-job-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.radar-job-footer {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(120px, 0.7fr) auto;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.radar-quality {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.radar-quality > span {
  color: var(--amber);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.radar-quality strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.radar-quality small,
.radar-source small {
  color: var(--ink-muted);
  font-size: 0.68rem;
}

.radar-source span,
.radar-source small {
  display: block;
}

.radar-source span {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 750;
}

.radar-more-row {
  display: flex;
  justify-content: center;
  margin-top: 1.15rem;
}

/* Final control-state contract: never inherit hyperlink blue over a blue CTA. */
button,
[role="button"],
a.chip,
a.saas-apply-btn,
.copy-btn,
.btn-preset,
.btn-excel-dl,
.btn-excel-copy {
  -webkit-tap-highlight-color: transparent;
  appearance: none;
}

.chip.active:is(:hover, :focus-visible, :active),
button.chip.active:is(:hover, :focus-visible, :active),
a.chip.active:is(:hover, :focus-visible, :active),
.saas-apply-btn:is(:hover, :focus-visible, :active),
.btn-excel-dl:is(:hover, :focus-visible, :active),
#btnAiCvOpt:is(:hover, :focus-visible, :active),
#btnSubscribeAlerts:is(:hover, :focus-visible, :active),
#btnStartInterview:is(:hover, :focus-visible, :active),
#btnEvaluateAnswer:is(:hover, :focus-visible, :active) {
  color: var(--on-primary) !important;
  text-decoration: none !important;
}

.chip.active :is(svg, path, polygon, line, polyline, circle),
.saas-apply-btn :is(svg, path, polygon, line, polyline, circle),
.btn-excel-dl :is(svg, path, polygon, line, polyline, circle) {
  color: inherit;
  stroke: currentColor;
}

.cv-builder-actions .cv-secondary-action:is(:hover, :focus-visible, :active) {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: color-mix(in srgb, var(--primary) 8%, var(--surface-soft)) !important;
}

button:focus-visible,
[role="button"]:focus-visible,
a.chip:focus-visible,
a.saas-apply-btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 34%, transparent);
  outline-offset: 2px;
}

@media screen and (max-width: 760px) {
  .radar-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .radar-source-row,
  .radar-job-footer {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr);
  }

  .radar-source-row {
    flex-direction: column;
  }

  .radar-source-row .chip,
  .radar-job-footer .saas-apply-btn {
    width: 100%;
    justify-content: center;
  }

  .radar-job-top {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .radar-company-mark {
    width: 42px;
    height: 42px;
  }

  .radar-salary-box {
    grid-column: 1 / -1;
    min-width: 0;
    text-align: left;
  }
}

@media screen and (max-width: 420px) {
  .radar-toolbar,
  .radar-job-card {
    padding: 0.9rem !important;
  }

  .radar-job-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .radar-quality {
    flex-wrap: wrap;
  }
}

/* CV Analyzer — flagship product workspace */
.cv-analyzer-page {
  max-width: var(--content-page);
}

.cv-analyzer-hero {
  max-width: 850px;
  margin: 0 auto 2rem;
  text-align: center;
}

.cv-analyzer-hero h1 {
  max-width: 760px;
  margin: 0.9rem auto 0.75rem;
  color: var(--ink);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 820;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.cv-analyzer-hero > p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.65;
}

.cv-analyzer-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem 0.8rem;
  max-width: 780px;
  margin: 1rem auto 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 12px;
  text-align: left;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface-soft));
}

.cv-analyzer-privacy strong {
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--accent) 72%, var(--ink));
  font-size: 0.78rem;
}

.cv-analyzer-privacy span {
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.45;
}

.cv-analyzer-shell {
  max-width: 1040px;
  margin: 0 auto 3.5rem;
  padding: clamp(1rem, 2.4vw, 1.5rem) !important;
  overflow: hidden;
}

.cv-analyzer-input-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
}

.cv-analyzer-input-panel,
.cv-analyzer-guide {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.cv-analyzer-input-panel {
  background: var(--surface-soft);
}

.cv-analyzer-guide {
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--primary) 7%, var(--bg-card)), var(--bg-card));
}

.cv-analyzer-panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cv-analyzer-step {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line));
  border-radius: 10px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface-soft));
  font-size: 0.72rem;
  font-weight: 800;
}

.cv-analyzer-panel-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.cv-analyzer-panel-heading p {
  margin: 0.2rem 0 0;
  color: var(--ink-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.cv-analyzer-dropzone {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 82px;
  padding: 0.8rem !important;
  border-width: 1px !important;
  border-radius: 12px !important;
  text-align: left;
  background: var(--bg-card);
}

.cv-analyzer-dropzone .dropzone-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 9%, var(--surface-soft));
}

.cv-analyzer-dropzone .dropzone-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.cv-analyzer-dropzone .dropzone-title {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
}

.cv-analyzer-dropzone .dropzone-subtitle {
  margin-top: 0.1rem;
  color: var(--ink-muted);
  font-size: 0.72rem;
}

.cv-analyzer-dropzone .chip {
  min-height: 38px;
  padding: 0.45rem 0.7rem;
  font-size: 0.74rem;
}

.cv-analyzer-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.8rem 0;
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cv-analyzer-divider::before,
.cv-analyzer-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.cv-analyzer-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 0.85rem;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-card);
}

.cv-analyzer-mode-switch button {
  min-height: 38px;
  border: 0;
  border-radius: 8px !important;
  color: var(--ink-muted);
  background: transparent;
  font-size: 0.75rem;
  cursor: pointer;
}

.cv-analyzer-mode-switch button.active {
  color: var(--on-primary);
  background: var(--primary-strong);
}

.cv-profession-panel label,
.cv-match-filters label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 750;
}

.cv-match-filters label span {
  color: var(--ink-muted);
  font-weight: 500;
}

.cv-profession-panel input,
.cv-match-filters input,
.cv-match-filters select {
  width: 100%;
  min-height: 42px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--bg-card);
}

.cv-profession-panel p {
  margin: 0.4rem 0 0;
  color: var(--ink-muted);
  font-size: 0.68rem;
}

.cv-match-filters {
  display: grid;
  grid-template-columns: minmax(150px, 0.65fr) minmax(0, 1.35fr);
  gap: 0.7rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.cv-analyzer-text-field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
}

.cv-analyzer-text-field textarea {
  display: block;
  width: 100%;
  min-height: 190px;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--bg-card);
  font: inherit;
  font-size: 0.83rem;
  line-height: 1.55;
  resize: vertical;
}

.cv-analyzer-text-field textarea:focus {
  border-color: var(--primary);
  outline: 3px solid color-mix(in srgb, var(--primary) 16%, transparent);
}

.cv-analyzer-input-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.4rem;
  color: var(--ink-muted);
  font-size: 0.67rem;
}

.cv-analyzer-primary {
  width: 100%;
  justify-content: center;
  margin-top: 0.85rem;
  padding: 0.8rem 1rem !important;
}

.cv-analysis-status {
  min-height: 1.2em;
  margin: 0.5rem 0 0;
  color: var(--ink-muted);
  font-size: 0.7rem;
  text-align: center;
}

.cv-analyzer-benefits {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-analyzer-benefits li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.cv-analyzer-benefits li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface-soft));
}

.cv-analyzer-benefits svg {
  width: 15px;
  height: 15px;
}

.cv-analyzer-benefits strong,
.cv-analyzer-benefits small {
  display: block;
}

.cv-analyzer-benefits strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.cv-analyzer-benefits small {
  margin-top: 0.12rem;
  color: var(--ink-muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.cv-analyzer-trust {
  margin-top: 0.85rem;
  padding: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface-soft));
}

.cv-analyzer-trust strong,
.cv-analyzer-trust span {
  display: block;
}

.cv-analyzer-trust strong {
  color: var(--ink);
  font-size: 0.75rem;
}

.cv-analyzer-trust span {
  margin-top: 0.2rem;
  color: var(--ink-muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.cv-analysis-dashboard {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.cv-analysis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cv-analysis-header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.15rem 0 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}

.cv-analysis-score-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(180px, 0.7fr));
  gap: 0.8rem;
}

.cv-analysis-score-grid .saas-metric-card {
  padding: 1rem !important;
}

.cv-analysis-score-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.cv-analysis-score-copy {
  min-width: 0;
}

.cv-analysis-score-card h3,
.cv-analysis-score-grid .saas-metric-card > h3 {
  margin: 0.2rem 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cv-analysis-score-card p,
.cv-analysis-score-grid .saas-metric-card > p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.cv-analysis-metric-label {
  color: var(--primary);
  font-size: 0.67rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cv-analysis-skills {
  margin-top: 0.8rem;
  padding: 1rem !important;
}

.cv-analysis-skills h3 {
  margin: 0 0 0.65rem;
  color: var(--ink);
  font-size: 0.88rem;
}

.cv-coach-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem 1.25rem;
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line));
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 42%),
    var(--paper);
}

.cv-coach-copy {
  min-width: 0;
}

.cv-coach-copy h3 {
  margin: 0.25rem 0 0.35rem;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.3;
}

.cv-coach-copy p,
.cv-coach-result p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.cv-coach-button {
  justify-content: center;
  min-height: 46px;
  white-space: nowrap;
}

.cv-coach-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.72rem;
}

.cv-coach-result {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.cv-coach-result[hidden] {
  display: none;
}

.cv-coach-result strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.cv-coach-result ul,
.cv-coach-handoff-notice ul {
  margin: 0.4rem 0 0 1.1rem;
  color: var(--ink-muted);
  font-size: 0.74rem;
}

.cv-coach-result .chip {
  justify-content: center;
  white-space: nowrap;
}

.cv-coach-handoff-notice {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(31,138,91, 0.34);
  border-radius: 14px;
  background: rgba(31,138,91, 0.08);
  color: var(--ink);
}

.cv-coach-handoff-notice[hidden] {
  display: none;
}

.cv-coach-handoff-notice strong {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ok);
}

.cv-coach-handoff-notice span {
  color: var(--ink-muted);
  font-size: 0.76rem;
}

.cv-analysis-findings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.cv-analysis-findings > section {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.cv-finding-heading {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.cv-finding-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
}

.cv-finding-heading svg {
  width: 15px;
  height: 15px;
}

.cv-finding-heading.positive { color: var(--ok); }
.cv-finding-heading.warning { color: var(--amber); }
.cv-finding-heading.action { color: var(--primary); }

.cv-analysis-findings ul,
.cv-analysis-findings ol {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding-left: 1rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.45;
}

.cv-match-job-card {
  padding: 1rem !important;
}

.cv-match-job-top,
.cv-match-job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.cv-match-job-top h4 {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
}

.cv-match-company {
  margin: 0 0 0.18rem;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 760;
}

.cv-match-job-card > .saas-job-meta {
  margin: 0.5rem 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.cv-match-job-card .skills-tags {
  margin: 0.55rem 0 0.75rem;
}

.cv-match-job-footer {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.cv-match-job-footer strong,
.cv-match-job-footer small {
  display: block;
}

.cv-match-job-footer strong {
  color: var(--ink);
  font-size: 0.83rem;
}

.cv-match-job-footer small {
  margin-top: 0.12rem;
  color: var(--ink-muted);
  font-size: 0.67rem;
}

@media screen and (max-width: 860px) {
  .cv-analyzer-input-grid,
  .cv-analysis-score-grid,
  .cv-analysis-findings {
    grid-template-columns: minmax(0, 1fr);
  }

  .cv-analyzer-guide {
    order: -1;
  }

  .cv-analyzer-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv-coach-panel,
  .cv-coach-result {
    grid-template-columns: minmax(0, 1fr);
  }

  .cv-coach-button,
  .cv-coach-result .chip {
    width: 100%;
  }
}

@media screen and (max-width: 520px) {
  .cv-analyzer-hero {
    margin-bottom: 1.25rem;
  }

  .cv-analyzer-privacy,
  .cv-analysis-header {
    align-items: stretch;
    flex-direction: column;
  }

  .cv-analyzer-input-panel,
  .cv-analyzer-guide {
    padding: 0.85rem;
  }

  .cv-analyzer-benefits {
    grid-template-columns: minmax(0, 1fr);
  }

  .cv-analyzer-dropzone {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .cv-analyzer-dropzone .chip {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .cv-analyzer-input-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .cv-analysis-score-card {
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
  }

  .cv-analysis-score-card .saas-score-circle {
    width: 78px;
    height: 78px;
    min-width: 78px;
    min-height: 78px;
    flex-basis: 78px;
  }

  .cv-analysis-score-card .saas-score-val {
    font-size: 1.65rem;
  }

  .cv-analysis-header .source-status-badge {
    white-space: normal;
  }

  .cv-match-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .cv-match-job-top,
  .cv-match-job-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .cv-match-job-top .source-status-badge,
  .cv-match-job-footer .saas-apply-btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }
}

@media screen and (max-width: 560px) {
  .cv-form-row,
  .cv-additional-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cv-editor-card .cv-builder-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .privacy-notice {
    align-items: center !important;
    flex-direction: column;
    padding: 1rem !important;
  }

  .privacy-notice > span {
    display: block;
    width: 100%;
  }
}

@media screen and (max-width: 420px) {
  .container { padding-inline: 0.75rem !important; }
  .header-inner { padding-inline: 0.75rem; }
  .brand-symbol { width: 28px; height: 28px; }
  .brand-wordmark { font-size: 1rem; }
  .header-actions .text-size-control { display: none; }
  .mobile-menu-btn, .theme-toggle { min-width: 40px; min-height: 40px; padding: 0.45rem !important; justify-content: center; }
  .saas-hero-badge { padding: 0.45rem 0.65rem; text-align: left; }
  .saas-dot-pulse { aspect-ratio: 1; }
  .calc-box, .saas-tool-card, .saas-card-glass, .dropzone-container { padding: 1rem !important; }
  .preset-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .preset-buttons > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .chip, button, input, select, textarea { min-width: 0; }
  .breadcrumbs { overflow-wrap: anywhere; }
  .post-img-wrapper { height: auto; }
}

/* ==========================================================
   TELETRABAJO SaaS POLISH — accessible, solid and app-like
   ========================================================== */




html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-height: 100vh;
  font-size: 17px;
  line-height: 1.65;
  background-image:
    radial-gradient(circle at 12% -10%, rgba(27,58,107, 0.09), transparent 30rem),
    radial-gradient(circle at 92% 8%, rgba(31,138,91, 0.055), transparent 26rem);
  background-attachment: fixed;
}

::selection {
  color: #ffffff;
  background: var(--primary);
}

[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  color: var(--on-primary) !important;
  background: var(--primary);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.skip-link:focus { transform: translateY(0); }

#main-content:focus { outline: none; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--focus-ring) 24%, transparent) !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button,
.chip,
.copy-btn,
.btn-preset,
.saas-apply-btn,
.page-item,
.btn-excel-dl,
.btn-excel-copy {
  min-height: 46px;
  border-radius: var(--radius) !important;
  line-height: 1.25;
  -webkit-tap-highlight-color: transparent;
}

button:active,
.chip:active,
.copy-btn:active,
.saas-apply-btn:active,
.page-item:active {
  transform: translateY(1px) !important;
}

.site-header {
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  border-bottom-color: color-mix(in srgb, var(--border) 80%, transparent);
  box-shadow: 0 8px 30px rgba(15, 27, 45, 0.14);
}

.header-inner {
  min-height: 72px;
  max-width: var(--shell);
  padding-inline: clamp(1rem, 2.5vw, 2rem);
  gap: 1rem;
}

.logo { flex-shrink: 0; }
.logo:hover { text-decoration: none; }

.brand-symbol {
  border-radius: 11px;
  box-shadow: 0 7px 18px rgba(27,58,107, 0.3);
}

.desktop-nav { min-width: 0; }

.nav-links {
  justify-content: center;
  gap: 0.15rem;
}

.nav-links a {
  display: block;
  padding: 0.6rem 0.68rem;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  padding: 0 !important;
  border: 1px solid var(--line);
  border-radius: var(--radius) !important;
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.icon-button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--canvas);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-size-control button {
  min-width: 36px;
  height: 38px;
  min-height: 38px !important;
}

.hero { max-width: 900px; }

.hero h1,
.article-header h1 {
  text-wrap: balance;
  letter-spacing: -0.035em;
}

.hero p {
  max-width: 720px;
  margin-inline: auto;
  color: var(--ink-soft);
}

.saas-hero-badge,
.hero-badge {
  min-height: 36px;
  border-color: color-mix(in srgb, var(--primary) 42%, transparent);
  background: color-mix(in srgb, var(--primary) 12%, var(--paper));
}

.chips-grid { gap: 0.85rem; }

.chip {
  justify-content: center;
  padding: 0.78rem 1.15rem;
  border-color: color-mix(in srgb, var(--line) 88%, transparent);
  font-weight: 750;
  box-shadow: 0 3px 10px rgba(15, 27, 45, 0.08);
}

.chip:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.calc-box,
.saas-card-glass,
.saas-tool-card,
.tool-card,
.post-card,
.saas-job-card {
  border-color: color-mix(in srgb, var(--line) 88%, transparent) !important;
  box-shadow: var(--shadow-card);
}

.calc-box {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: 22px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--bg-card) 98%, var(--primary)), var(--bg-card));
}

.calc-box::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.section-title {
  line-height: 1.25;
  text-wrap: balance;
}

.form-group { gap: 0.7rem; }

.form-group label {
  gap: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 750;
}

.form-group input,
.form-group select,
.post-body input,
.post-body select,
.post-body textarea,
#modalCoverLetterText {
  min-height: 50px;
  border-width: 1.5px !important;
  background: color-mix(in srgb, var(--surface-soft) 88%, var(--paper)) !important;
}

.form-group input:hover,
.form-group select:hover,
.post-body input:hover,
.post-body select:hover,
.post-body textarea:hover {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border)) !important;
}

.form-group input:focus,
.form-group select:focus,
.post-body input:focus,
.post-body select:focus,
.post-body textarea:focus {
  border-color: var(--primary) !important;
}

input[type="range"] {
  min-height: 34px;
  cursor: pointer;
}

.preset-buttons { gap: 0.65rem; }

.btn-preset {
  padding: 0.65rem 0.35rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-width: 1.5px;
  background: var(--surface-soft);
}

.btn-preset:hover,
.btn-preset.active {
  color: var(--on-primary);
  box-shadow: var(--shadow-control);
}

.calc-result {
  padding: 0;
  gap: 0.9rem;
  border: 0;
  background: transparent;
}

.res-item {
  justify-content: center;
  min-height: 126px;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.res-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.res-val {
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}

.calc-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.calc-actions .copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  background: color-mix(in srgb, var(--border) 82%, var(--paper));
}

.calc-actions #btnShareCalc {
  border-color: var(--line) !important;
  background: var(--surface-soft) !important;
  color: var(--ink) !important;
}

.calc-actions #btnShareCalc:is(:hover, :focus-visible, :active) {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: var(--on-primary) !important;
}

.calc-actions .copy-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-control);
}

#btnWspCalc:hover { background: #1fb958 !important; }

.saas-tool-card,
.tool-card,
.post-card,
.saas-job-card,
.saas-metric-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.saas-tool-card:hover,
.tool-card:hover,
.post-card:hover,
.saas-job-card:hover,
.saas-metric-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 62%, var(--line)) !important;
  box-shadow: 0 18px 40px rgba(15, 27, 45, 0.22);
}

.post-card h3 { font-size: 1.18rem; }
.post-excerpt { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.6; }
.post-card-link { display: inline-flex; min-height: 44px; align-items: center; font-weight: 800; }

.saas-job-card { padding: 1.35rem; }
.saas-job-title { font-size: 1.12rem; line-height: 1.35; }
.saas-job-meta { color: var(--ink-soft); font-size: 0.94rem; }
.saas-job-title,
.saas-job-meta,
.home-job-company,
.home-job-location,
#radarProvenance,
#liveSalaryMeta {
  min-width: 0;
  overflow-wrap: anywhere;
}
.saas-job-match { padding: 0.45rem 0.7rem; }
.saas-apply-btn { min-height: 48px; }

.table-wrapper {
  box-shadow: var(--shadow-card);
  scrollbar-color: var(--primary) var(--surface-soft);
}

th { color: var(--ink-soft); }
tbody tr:hover { background: color-mix(in srgb, var(--primary) 7%, transparent); }

.article-content,
.article-content.tool-page,
.article-content.tool-page-wide,
.article-content.cv-builder-page,
.article-content.simulator-page {
  max-width: var(--content-page);
}
.post-body { max-width: 76ch; margin-inline: auto; }
.post-body p, .post-body li { font-size: 1.075rem; line-height: 1.8; }
.post-body h2 { text-wrap: balance; line-height: 1.3; }
.post-body blockquote { font-style: normal; border-radius: 0 14px 14px 0; }

.breadcrumbs {
  min-height: 42px;
  flex-wrap: wrap;
  line-height: 1.4;
}

.page-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
}

.excel-actions,
.cv-builder-actions { gap: 0.85rem; }

.btn-excel-dl,
.btn-excel-copy { display: inline-flex; align-items: center; justify-content: center; }

.saas-modal-overlay { padding: 1rem; }
.saas-modal-content { max-height: min(88vh, 760px); overflow-y: auto; }

.mobile-nav-drawer {
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  box-shadow: 0 18px 30px rgba(15, 27, 45, 0.22);
}

.mobile-nav-list a { min-height: 48px; display: flex; align-items: center; }

.site-footer { background: color-mix(in srgb, var(--bg-card) 96%, var(--canvas)); }
.footer-col a { display: inline-flex; min-height: 38px; align-items: center; font-size: 0.94rem; }
.footer-bottom { line-height: 1.6; }

/* Unified Navigation Breakpoint (900px) */
@media screen and (max-width: 900px) {
  .desktop-nav { display: none !important; }
  .mobile-menu-button { display: grid !important; }
}

@media screen and (max-width: 960px) {
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .footer-brand-panel > p { max-width: 58ch; }
  .footer-contact-card { max-width: 560px; }
}

@media screen and (max-width: 768px) {
  body { font-size: 16.5px; background-attachment: scroll; }
  .header-inner { min-height: 64px; }
  .mobile-nav-drawer { max-height: calc(100vh - 64px); }
  .calc-actions { grid-template-columns: minmax(0, 1fr); }
  .calc-actions .copy-btn { min-height: 54px; }
  .res-item { min-height: 108px; }
  .excel-actions { width: 100%; flex-direction: column; }
  .excel-actions > * { width: 100%; }
  .post-body p, .post-body li { font-size: 1.03rem; }
  .site-footer { padding-top: 2.75rem; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2.5rem; }
}

@media screen and (max-width: 420px) {
  .header-inner { gap: 0.45rem; }
  .theme-toggle, .mobile-menu-btn { min-width: 42px; min-height: 42px; }
  .calc-actions { gap: 0.85rem; }
  .res-item { padding: 1rem 0.75rem; }
  .form-group label { flex-direction: column; gap: 0.2rem; }
  .chips-grid .chip { width: 100%; }
  .saas-job-card { padding: 1rem; }
  .post-card-body { padding: 1.15rem; }
  .footer-nav { grid-template-columns: minmax(0, 1fr); gap: 1.35rem; }
  .footer-contact-card { align-items: stretch; flex-direction: column; }
  .footer-copy-btn { width: 100%; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-service-note { white-space: normal; }
}

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

@media (forced-colors: active) {
  :where(a, button, input, select, textarea):focus-visible { outline: 3px solid CanvasText !important; }
  .saas-dot-pulse { forced-color-adjust: none; }
}
/* Final touch-target pass after real viewport measurement */
.logo { min-height: 44px; padding-block: 0.25rem; }
.tool-card-action { min-height: 44px; align-items: center; }
.footer-col a { min-height: 44px; }
/* ==========================================================
   SERIOUS SAAS FINISH — vector UI, trust and discovery
   ========================================================== */
.inline-icon-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.inline-icon-label .ui-icon,
.section-title .ui-icon,
.data-disclaimer .ui-icon,
.table-scroll-hint .ui-icon {
  flex: 0 0 auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.post-img-wrapper::before {
  width: 46px;
  height: 46px;
  font-size: 0;
  border: 2px solid color-mix(in srgb, var(--primary) 48%, transparent);
  border-radius: 14px;
  background:
    linear-gradient(90deg, transparent 46%, var(--primary) 46% 54%, transparent 54%),
    linear-gradient(transparent 46%, var(--primary) 46% 54%, transparent 54%);
  opacity: 0.3;
}

.post-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 64%, rgba(15, 27, 45, 0.2));
}

.post-img-wrapper img,
.article-hero-img {
  filter: saturate(0.82) contrast(1.04);
}

.section-eyebrow {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.salary-preview-section {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 4rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-heading-row > div { max-width: 760px; }
.section-heading-row .section-title { margin-bottom: 0.5rem; }
.section-heading-row p { color: var(--ink-soft); }

.salary-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.salary-preview-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.salary-preview-card span { color: var(--ink-soft); font-size: 0.9rem; }
.salary-preview-card strong { color: var(--accent); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.salary-preview-card small { color: var(--ink-muted); font-weight: 700; }

.data-disclaimer,
.table-scroll-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.data-disclaimer { margin-top: 1rem; }
.table-scroll-hint { display: none; margin-bottom: 0.65rem; }

.demand-level {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.demand-high,
.demand-very-high { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.demand-medium { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }

.news-search-panel {
  margin-bottom: 2rem;
  padding: clamp(1.15rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.news-search-panel h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.news-search-panel > div:first-child p { color: var(--ink-soft); }

.news-search-field {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

.news-search-field .ui-icon {
  position: absolute;
  left: 1rem;
  z-index: 1;
  color: var(--primary);
  pointer-events: none;
}

.news-search-field input {
  width: 100%;
  min-height: 54px;
  padding: 0.8rem 1rem 0.8rem 3rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface-soft);
}

.news-search-field input:focus { border-color: var(--primary); }
.news-search-status { margin: 0.65rem 0 0; color: var(--ink-soft); font-size: 0.9rem; }

.news-search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.news-search-result {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 76px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink) !important;
  background: var(--surface-soft);
  text-decoration: none !important;
}

.news-search-result:hover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface-soft));
}

.news-search-result strong { line-height: 1.35; }
.news-search-result span { color: var(--ink-soft); font-size: 0.86rem; line-height: 1.45; }

@media screen and (max-width: 768px) {
  .section-heading-row { align-items: stretch; flex-direction: column; }
  .section-heading-row .chip { width: 100%; }
  .salary-preview-grid { grid-template-columns: minmax(0, 1fr); }
  .news-search-results { grid-template-columns: minmax(0, 1fr); }
  .table-scroll-hint { display: flex; }
}

@media screen and (max-width: 420px) {
  .theme-toggle,
  .mobile-menu-btn { min-width: 44px; min-height: 44px; }
}

/* ==========================================================
   TELETRABAJO PRODUCT SYSTEM v5
   Formal, fast and consistent across every application surface.
   ========================================================== */




html {
  background: var(--canvas);
  scroll-padding-top: 5.5rem;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  background-color: var(--canvas);
  background-image:
    radial-gradient(circle at 15% -8%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 30rem),
    radial-gradient(circle at 92% 4%, color-mix(in srgb, var(--accent) 4%, transparent), transparent 26rem);
  background-attachment: scroll;
}

h1, h2, h3, h4,
.brand-wordmark,
button,
.chip {
  font-family: var(--font);
}

.container {
  max-width: var(--shell);
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.site-header {
  min-height: 68px;
  padding: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  background: color-mix(in srgb, var(--bg-card) 94%, transparent);
  box-shadow: 0 8px 28px rgba(15, 27, 45, 0.12);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.header-inner {
  min-height: 68px;
  max-width: var(--shell);
  padding: 0.55rem clamp(1rem, 3vw, 2rem);
}

.logo,
.footer-brand,
.brand {
  gap: 0.72rem;
  color: var(--ink) !important;
  text-decoration: none !important;
}

.brand-symbol {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-symbol .brand-mark-svg {
  display: block;
  width: 40px;
  height: 40px;
}

.editorial-trust-mark .brand-mark-svg {
  display: block;
  width: 36px;
  height: 36px;
}

.brand-wordmark {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 780;
  letter-spacing: -0.038em;
}

.brand-wordmark strong {
  color: var(--primary);
  font-weight: 780;
}

.nav-links {
  gap: 0.18rem;
}

.nav-links a {
  min-height: 40px;
  padding: 0.55rem 0.66rem;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink-soft) !important;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.25;
}

.nav-links a:hover {
  color: var(--ink) !important;
  border-color: color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--surface-raised) 74%, transparent);
}

.nav-links a.active {
  color: var(--primary) !important;
  border-color: color-mix(in srgb, var(--primary) 26%, var(--line));
  background: color-mix(in srgb, var(--primary) 10%, var(--paper));
}

.header-actions {
  gap: 0.45rem;
}

.text-size-control,
.icon-button {
  border-color: var(--line);
  background: var(--surface-soft);
  box-shadow: none;
}

.text-size-control button {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 720;
}

.hero {
  max-width: 920px;
  padding: clamp(3.4rem, 7vw, 5.5rem) 0 3rem;
}

.hero h1 {
  max-width: 900px;
  margin-inline: auto;
  color: var(--ink);
  font-size: clamp(2.45rem, 5.2vw, 4.45rem);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: -0.058em;
}

.hero p {
  max-width: 700px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  line-height: 1.65;
}

.hero-badge,
.saas-hero-badge {
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--line));
  border-radius: 999px !important;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--paper));
  box-shadow: none;
  letter-spacing: 0.01em;
}

.article-content {
  max-width: var(--reading-page);
  padding-top: clamp(2rem, 4vw, 3.25rem);
}

.article-content.tool-page,
.article-content.tool-page-wide,
.article-content.cv-builder-page,
.article-content.simulator-page,
.article-content.catalog-page {
  max-width: var(--app-page);
}

.article-header {
  margin-bottom: 2rem;
}

.article-header h1,
.tool-page > h1,
.catalog-page > h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.breadcrumbs {
  min-height: 36px;
  margin-bottom: 1.35rem;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.breadcrumbs a {
  color: var(--ink-muted) !important;
}

.section-title {
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -0.03em;
}

.section-eyebrow {
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 780;
  letter-spacing: 0.11em;
}

.calc-box,
.saas-card-glass,
.saas-tool-card,
.tool-card,
.post-card,
.saas-job-card,
.salary-preview-section,
.news-search-panel {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--bg-card) !important;
  box-shadow: var(--shadow-card);
}

.calc-box::before {
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.saas-tool-card:hover,
.tool-card:hover,
.post-card:hover,
.saas-job-card:hover,
.saas-metric-card:hover,
.chip:hover {
  transform: none !important;
}

.saas-tool-card:hover,
.tool-card:hover,
.post-card:hover,
.saas-job-card:hover,
.saas-metric-card:hover {
  border-color: color-mix(in srgb, var(--primary) 48%, var(--line)) !important;
  box-shadow: var(--shadow-card);
}

.tool-icon-square {
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line));
  border-radius: 12px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface-soft));
}

button,
.button,
.chip,
.copy-btn,
.btn-preset,
.saas-apply-btn,
.page-item,
.btn-excel-dl,
.btn-excel-copy {
  min-height: 44px;
  border-radius: 10px !important;
  font-weight: 700;
  box-shadow: none;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

button.chip,
a.chip,
.copy-btn,
.btn-preset,
.saas-apply-btn,
.btn-excel-dl,
.btn-excel-copy,
.tool-card-action {
  white-space: nowrap !important;
}

.chip {
  border-color: var(--line);
  color: var(--ink) !important;
  background: var(--surface-soft);
}

.chip:hover {
  border-color: color-mix(in srgb, var(--primary) 52%, var(--line)) !important;
  color: var(--primary) !important;
  background: color-mix(in srgb, var(--primary) 7%, var(--surface-soft)) !important;
  box-shadow: none;
}

.chip.active,
button.chip.active,
a.chip.active,
.saas-apply-btn,
.btn-excel-dl {
  border-color: var(--primary-strong) !important;
  color: var(--on-primary) !important;
  background: var(--primary-strong) !important;
  box-shadow: 0 8px 18px rgba(27,58,107, 0.2);
}

.chip.active:hover,
button.chip.active:hover,
a.chip.active:hover,
.saas-apply-btn:hover,
.btn-excel-dl:hover {
  border-color: var(--primary) !important;
  color: var(--on-primary) !important;
  background: var(--primary) !important;
  box-shadow: 0 10px 22px rgba(27,58,107, 0.24);
}

.form-group input,
.form-group select,
.post-body input,
.post-body select,
.post-body textarea,
.cv-editor-card input,
.cv-editor-card textarea,
#modalCoverLetterText,
#simAnswerInput {
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  color: var(--ink) !important;
  background: var(--surface-soft) !important;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 3%, transparent);
}

.form-group input:focus,
.form-group select:focus,
.post-body input:focus,
.post-body select:focus,
.post-body textarea:focus,
.cv-editor-card input:focus,
.cv-editor-card textarea:focus,
#modalCoverLetterText:focus,
#simAnswerInput:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent) !important;
  outline: none;
}

.privacy-notice {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line)) !important;
  color: var(--accent) !important;
  background: color-mix(in srgb, var(--accent) 7%, var(--bg-card)) !important;
}

.cv-builder-grid {
  grid-template-columns: minmax(340px, 0.88fr) minmax(0, 1.12fr);
  gap: 1.35rem;
}

.cv-editor-card,
#cvPreviewCard {
  border-radius: var(--radius-lg) !important;
}

#cvPreviewCard {
  border-color: var(--mist-3) !important;
  color: var(--night) !important;
  background: #ffffff !important;
  box-shadow: 0 16px 38px rgba(15, 27, 45, 0.18);
}

#cvPreviewCard:hover {
  border-color: var(--stone-400) !important;
}

.cv-builder-actions .chip {
  min-height: 46px;
  font-size: 0.84rem;
}

#simWelcomeOverlay,
#simInterviewCanvas {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--bg-card) !important;
  box-shadow: var(--shadow-card) !important;
}

#simWelcomeOverlay {
  position: relative;
  overflow: hidden;
}

#simWelcomeOverlay::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

#btnStartInterview,
#btnEvaluateAnswer {
  border-color: var(--primary-strong) !important;
  background: var(--primary-strong) !important;
  box-shadow: 0 8px 18px rgba(27,58,107, 0.2) !important;
}

#btnStartInterview:hover,
#btnEvaluateAnswer:hover {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
}

.sim-config-grid,
.sim-video-grid,
.sim-actions {
  min-width: 0;
}

.sim-video-grid > *,
.sim-config-grid > * {
  min-width: 0;
}

.sim-report-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.sim-report-context > div {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.sim-report-context h4 {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 0.9rem;
}

.sim-report-context p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.article-hero-img {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.post-body {
  max-width: var(--reading-page);
  color: var(--ink);
}

.post-body p,
.post-body li {
  color: var(--ink);
  font-size: 1.045rem;
  line-height: 1.78;
}

.editorial-trust-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 0 0 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink-soft);
  background: var(--bg-card);
}

.editorial-trust-mark {
  flex: 0 0 auto;
}

.editorial-trust-card strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-size: 0.9rem;
}

.editorial-trust-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.83rem;
  line-height: 1.55;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-card) 94%, var(--canvas));
}

.footer-brand {
  min-height: 44px;
  align-items: center;
}

.offline-shell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(100% - 2rem, 560px);
  min-height: 100vh;
  margin: 0 auto;
}

.offline-shell h1 {
  margin: 1rem 0 0.65rem;
  font-size: clamp(2rem, 8vw, 3.4rem);
  letter-spacing: -0.05em;
}

.offline-shell p:not(.section-eyebrow) {
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
}

@media screen and (max-width: 1080px) {
  .desktop-nav {
    display: none !important;
  }

  .mobile-menu-button {
    display: grid !important;
  }
}

@media screen and (max-width: 920px) {
  .cv-builder-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen and (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  .container {
    padding-inline: 0.9rem !important;
  }

  .header-inner {
    padding-inline: 0.8rem;
  }

  .text-size-control {
    display: none;
  }

  .icon-button.theme-toggle,
  .mobile-menu-button {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
  }

  .brand-wordmark {
    font-size: 1.04rem;
  }

  .brand-symbol,
  .brand-symbol .brand-mark-svg {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding-top: 2.75rem !important;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.25rem);
  }

  .article-content {
    padding-top: 1.75rem;
  }

  .saas-tool-card,
  .saas-card-glass,
  .calc-box,
  .news-search-panel,
  .salary-preview-section {
    padding: 1.1rem !important;
  }

  #simWelcomeOverlay,
  #simInterviewCanvas {
    border-radius: 14px !important;
  }

  .editorial-trust-card {
    padding: 0.9rem;
  }
}

@media screen and (min-width: 641px) and (max-width: 920px) {
  .jobs-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 480px) {
  #liveSalaryFilters {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #quickFilterChips {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible !important;
  }

  #quickFilterChips .chip {
    width: 100%;
    min-width: 0;
    padding-inline: 0.55rem;
  }

  .sim-config-grid,
  .sim-video-grid,
  .sim-report-context {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .sim-room-header,
  .sim-answer-header,
  .sim-log-header {
    align-items: stretch !important;
    flex-direction: column;
  }

  .sim-room-header > div,
  .sim-participant-header {
    flex-wrap: wrap;
  }

  .sim-room-header #btnToggleLang,
  .sim-actions > button {
    width: 100% !important;
    min-width: 0 !important;
  }

  .sim-actions {
    flex-direction: column !important;
  }

  .sim-actions > button {
    flex: none !important;
    white-space: nowrap !important;
  }

  .sim-participant-header #aiSpeakingBadge {
    margin-left: 48px;
  }

  button.chip,
  a.chip,
  .copy-btn,
  .btn-preset,
  .saas-apply-btn,
  .btn-excel-dl,
  .btn-excel-copy {
    white-space: normal !important;
  }
}

/* Final theme guard: video-interview surfaces stay dark in every theme. */
#simStageWrapper {
  min-height: 360px !important;
}

#simWelcomeOverlay,
#simInterviewCanvas {
  border-color: #2A374D !important;
  color: var(--mist) !important;
  background: #121822 !important;
  box-shadow: 0 22px 48px rgba(15, 27, 45, 0.34) !important;
}

#simWelcomeOverlay {
  min-height: 360px !important;
  padding: clamp(1.75rem, 4vw, 2.25rem) !important;
}

#simWelcomeOverlay h2 {
  color: var(--mist) !important;
  font-size: clamp(1.55rem, 3.5vw, 1.9rem) !important;
  letter-spacing: -0.03em;
}

#simWelcomeOverlay .sim-welcome-copy {
  color: #A8B4CA !important;
  font-size: clamp(0.92rem, 1.7vw, 1rem) !important;
}

#simWelcomeOverlay .sim-welcome-copy span {
  color: #CAD3E2 !important;
}

#simWelcomeOverlay .sim-welcome-status {
  color: var(--ok) !important;
}

@media screen and (max-width: 520px) {
  #simStageWrapper,
  #simWelcomeOverlay {
    min-height: 0 !important;
  }

  #simWelcomeOverlay {
    padding: 1.25rem !important;
  }

  #simWelcomeOverlay .sim-welcome-avatar {
    width: 78px !important;
    height: 78px !important;
    flex-basis: 78px;
    margin-bottom: 0.85rem !important;
  }

  #simWelcomeOverlay .sim-welcome-status {
    font-size: 0.68rem !important;
    margin-bottom: 0.65rem !important;
  }

  #simWelcomeOverlay h2 {
    font-size: 1.35rem !important;
  }

  #simWelcomeOverlay .sim-welcome-copy {
    margin-bottom: 1.1rem !important;
    font-size: 0.86rem !important;
    line-height: 1.5 !important;
  }

  #btnStartInterview {
    width: 100%;
    min-width: 0;
    padding-inline: 1rem !important;
  }
}

/* 320 px hardening: every product surface must shrink inside the viewport. */
@media screen and (max-width: 480px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .container,
  .article-content,
  .article-content.tool-page,
  .article-content.tool-page-wide,
  .article-content.cv-builder-page,
  .article-content.simulator-page,
  .article-content.catalog-page {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-inline: auto !important;
    padding-inline: 0.8rem !important;
  }

  .cv-analyzer-page,
  .cv-analyzer-hero,
  .cv-analyzer-privacy,
  .cv-analyzer-shell,
  .cv-analyzer-input-grid,
  .cv-analyzer-input-panel,
  .cv-analyzer-guide,
  .cv-analysis-dashboard,
  .radar-page,
  .radar-toolbar,
  .radar-job-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .cv-analyzer-shell {
    padding: 0.7rem !important;
  }

  .cv-analyzer-hero h1 {
    font-size: clamp(1.75rem, 9.5vw, 2.15rem);
    overflow-wrap: anywhere;
  }

  .cv-analyzer-hero > p,
  .cv-analyzer-privacy span,
  .cv-analyzer-panel-heading p,
  .radar-job-card p {
    overflow-wrap: anywhere;
  }

  .hero-badge,
  .saas-hero-badge {
    max-width: 100%;
    height: auto;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  .cv-analyzer-mode-switch button,
  .cv-analyzer-primary,
  .radar-toolbar button,
  .radar-job-card .saas-apply-btn {
    min-width: 0;
    white-space: normal !important;
  }
}

@media screen and (max-width: 640px) {
  .jobs-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .jobs-directory-header,
  .jobs-directory-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .jobs-directory-card {
    padding: 1rem !important;
  }

  .job-date-badge {
    align-self: flex-start;
  }

  .jobs-directory-footer .saas-apply-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}

@media screen and (max-width: 360px) {
  .job-context-badges {
    align-items: stretch;
    flex-direction: column;
  }

  .job-context-badge {
    width: 100%;
    border-radius: 9px;
  }
}

/* Home CV matching, application preparation, and live jobs pagination. */
.home-match-method-label {
  margin: 0 0 0.45rem;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.home-match-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.home-match-mode-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.72rem 0.9rem;
  border: 1px solid transparent;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}

.home-match-mode-switch button .ui-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.home-match-mode-switch button.active {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--line));
  color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 4px 14px rgba(27,58,107, 0.09);
}

.home-cv-dropzone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  min-height: 108px;
  padding: 1rem 1.15rem;
  border: 1.5px dashed color-mix(in srgb, var(--primary) 62%, var(--line));
  border-radius: 12px;
  color: var(--ink);
  background: color-mix(in srgb, var(--primary) 5%, var(--bg-card));
  cursor: pointer;
}

.home-cv-dropzone:hover,
.home-cv-dropzone.dragover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 9%, var(--bg-card));
}

.home-cv-dropzone-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, var(--surface-soft));
}

.home-cv-dropzone-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.home-cv-dropzone-copy strong {
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}

.home-cv-dropzone-copy small,
.home-match-status {
  color: var(--ink-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.home-match-status {
  margin: 0.55rem 0 0;
}

.home-match-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 6%, var(--bg-card));
}

.home-match-next-step > div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.home-match-next-step strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}

.home-match-next-step span {
  color: var(--ink-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.home-match-next-step .chip,
.cv-analysis-jobs-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.home-match-next-step .chip {
  flex: 0 0 auto;
}

.cv-analysis-jobs-cta {
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
}

.home-profile-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 760;
}

.home-profession-input {
  width: 100%;
  min-height: 50px;
  padding: 0.72rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface-soft);
  font: inherit;
}

.home-profession-input:focus {
  border-color: var(--primary);
  outline: 3px solid color-mix(in srgb, var(--primary) 18%, transparent);
  outline-offset: 1px;
}

.home-profession-input[aria-invalid="true"] {
  border-color: #b91c1c;
}

.home-profile-suggestions-label {
  margin: 0.7rem 0 0.45rem;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 720;
}

.home-search-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.home-search-options label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 750;
}

.home-search-options select {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 2.1rem 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface-soft);
}

.home-remember-profile {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.76rem;
  line-height: 1.4;
  cursor: pointer;
}

.home-remember-profile input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 0.05rem;
  accent-color: var(--primary);
}

.jobs-source-heading,
.jobs-source-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.jobs-source-heading .ui-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.jobs-source-actions {
  flex-wrap: wrap;
}

.jobs-source-actions .chip {
  min-height: 42px;
  cursor: pointer;
}

.jobs-source-current { color: var(--ok); }
.jobs-source-warning { color: var(--amber-strong); }

.jobs-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: -0.75rem 0 1rem;
}

.jobs-results-bar > p {
  flex: 1 1 540px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}

.jobs-language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.jobs-language-switch legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.jobs-language-switch button {
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 8px;
  color: var(--ink-soft);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 760;
  cursor: pointer;
}

.jobs-language-switch button.active {
  color: var(--on-primary);
  background: var(--primary);
}

.jobs-language-switch button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 28%, transparent);
  outline-offset: 2px;
}

.jobs-translation-status {
  min-height: 1.25rem;
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.jobs-directory-description-wrap {
  padding-top: 0.05rem;
}

.jobs-directory-description.is-clamped {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.jobs-directory-description.is-expanded {
  display: block;
  overflow: visible;
}

.job-description-toggle {
  min-height: 38px;
  margin: 0.35rem 0 0;
  padding: 0.35rem 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 780;
  cursor: pointer;
}

.job-description-toggle:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.job-description-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 28%, transparent);
  outline-offset: 3px;
  border-radius: 4px;
}

.jobs-empty-state {
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  background: var(--paper);
  text-align: center;
}

.jobs-empty-state strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.jobs-empty-state p {
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.55;
}

@media screen and (max-width: 560px) {
  .home-search-options { grid-template-columns: minmax(0, 1fr); }
  .jobs-source-heading { align-items: flex-start; }
  .jobs-source-actions { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .jobs-source-actions .chip { justify-content: center; width: 100%; }
  .jobs-results-bar { align-items: stretch; flex-direction: column; }
  .jobs-results-bar > p { flex: 0 1 auto; }
  .jobs-language-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .jobs-language-switch button { width: 100%; }
}

.job-card-actions,
.modal-application-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.job-card-actions .chip,
.job-card-actions .saas-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0;
  text-decoration: none;
}

.modal-application-note {
  margin: 0.75rem 0 0;
  color: var(--ink-muted);
  font-size: 0.77rem;
  line-height: 1.45;
  text-align: center;
}

.jobs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 2rem 0 0;
}

.jobs-pagination .page-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--bg-card);
  cursor: pointer;
}

.jobs-pagination .page-item:hover,
.jobs-pagination .page-item:focus-visible,
.jobs-pagination .page-item.active {
  border-color: var(--primary);
  color: var(--on-primary);
  background: var(--primary);
}

.jobs-pagination .page-item.disabled,
.jobs-pagination .page-item:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

@media screen and (max-width: 640px) {
  .home-match-next-step {
    align-items: stretch;
    flex-direction: column;
  }

  .home-match-next-step .chip {
    width: 100%;
    min-width: 0;
  }

  .job-card-actions,
  .modal-application-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .jobs-directory-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .jobs-directory-card {
    padding: 1.15rem 1rem 1.15rem 1.15rem !important;
  }

  .jobs-directory-location {
    align-items: flex-start;
  }

  .job-card-actions .chip,
  .job-card-actions .saas-apply-btn,
  .modal-application-actions > * {
    width: 100%;
    min-width: 0;
  }

  .jobs-pagination {
    gap: 0.35rem;
  }

  .jobs-pagination .page-item {
    flex: 1 1 44px;
    padding-inline: 0.55rem;
  }
}

@media screen and (max-width: 380px) {
  .home-match-mode-switch {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-cv-dropzone {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .home-cv-dropzone .chip {
    width: 100%;
  }

  .jobs-pagination .page-item:not(.active):not(:first-child):not(:last-child) {
    display: none;
  }
}

/* ===================================================================
   SIMULADOR DE ENTREVISTA — sistema de producto
   Sala oscura constante en ambos temas, geometria SaaS, 320px real.
   =================================================================== */

.simulator-page {
  --sim-surface: #121822;
  --sim-tile: #19212F;
  --sim-frame: #0D1118;
  --sim-line: #2A374D;
  --sim-line-soft: #202A3B;
  --sim-text: #F5F7FA;
  --sim-text-soft: #A3B1C9;
  --sim-accent: var(--primary);
  --sim-good: var(--ok);
  --sim-warn: var(--amber);
  --sim-bad: var(--danger);
}

.sim-intro {
  max-width: 760px;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.sim-intro h1 {
  margin: 0.65rem 0 0.75rem;
  font-size: clamp(1.6rem, 4.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.sim-intro-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.94rem, 2vw, 1.06rem);
  line-height: 1.6;
}

.sim-privacy-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  max-width: 660px;
  margin: 1.35rem auto 0;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(31,138,91, 0.28);
  border-radius: 12px;
  background: rgba(31,138,91, 0.08);
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: left;
}

.sim-privacy-notice .ui-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--accent);
}

.sim-privacy-notice strong { color: var(--ink); }

/* ---------- Configuracion ---------- */
.sim-config-card { padding: 1.5rem 1.6rem; margin-bottom: 1.75rem; }

.sim-config-title {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.sim-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

.sim-field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }

.sim-field label {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.sim-field select {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.sim-field select:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,58,107, 0.22);
}

/* ---------- Salas ---------- */
.sim-room {
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 1px solid var(--sim-line) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--sim-surface) !important;
  color: var(--sim-text) !important;
}

.sim-room[hidden] { display: none !important; }

.sim-waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sim-welcome-avatar {
  width: 96px;
  height: 96px;
  margin-bottom: 1rem;
  border: 3px solid var(--sim-accent);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 26px rgba(27,58,107, 0.36);
}

.sim-welcome-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sim-welcome-status {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.28rem 0.8rem;
  border: 1px solid rgba(31,138,91, 0.32);
  border-radius: 999px;
  background: rgba(31,138,91, 0.14);
  color: var(--sim-good) !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sim-welcome-title {
  margin: 0 0 0.5rem;
  color: var(--sim-text) !important;
  font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sim-welcome-copy {
  max-width: 540px;
  margin: 0 auto 1.4rem;
  color: var(--sim-text-soft) !important;
  font-size: 0.94rem;
  line-height: 1.6;
}

.sim-welcome-copy strong { color: var(--sim-accent); }

.sim-welcome-hint {
  margin: 0.9rem 0 0;
  color: var(--sim-text-soft);
  font-size: 0.78rem;
  opacity: 0.85;
}

/* ---------- Cabecera de sala ---------- */
.sim-room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.9rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--sim-line);
}

.sim-room-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.sim-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid rgba(179,38,30, 0.4);
  border-radius: 999px;
  background: rgba(179,38,30, 0.14);
  color: var(--sim-bad);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sim-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sim-bad);
  animation: simPulse 1.8s ease-in-out infinite;
}

@keyframes simPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.sim-progress-label {
  color: var(--sim-text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.sim-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.6rem;
  border-radius: 8px;
  background: var(--night-2);
  color: var(--sim-text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sim-timer .ui-icon { width: 14px; height: 14px; }
.sim-timer.is-warn { background: rgba(217,146,46, 0.16); color: var(--sim-warn); }
.sim-timer.is-over { background: rgba(179,38,30, 0.18); color: var(--sim-bad); }

.sim-progress-track {
  height: 4px;
  margin-bottom: 1.2rem;
  border-radius: 999px;
  background: var(--sim-line-soft);
  overflow: hidden;
}

.sim-progress-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sim-accent), var(--sim-good));
  transition: width 0.35s ease;
}

/* ---------- Rejilla de video ---------- */
.sim-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.2rem;
}

.sim-tile {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 0;
  padding: 1.05rem;
  border: 1.5px solid var(--sim-line);
  border-radius: 16px;
  background: var(--sim-tile);
}

.sim-participant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.sim-participant-id {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.sim-avatar-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sim-accent), var(--sim-good));
  color: #0C1017;
}

.sim-avatar-chip .ui-icon { width: 17px; height: 17px; }

.sim-participant-names { min-width: 0; display: flex; flex-direction: column; }

.sim-participant-names strong {
  color: var(--sim-text);
  font-size: 0.9rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sim-participant-names span {
  color: var(--sim-accent);
  font-size: 0.72rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sim-state-badge {
  flex-shrink: 0;
  padding: 0.24rem 0.55rem;
  border: 1px solid rgba(31,138,91, 0.3);
  border-radius: 8px;
  background: rgba(31,138,91, 0.13);
  color: var(--sim-good);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.sim-state-badge[hidden] { display: none; }
.sim-state-idle { border-color: var(--sim-line); background: var(--night-2); color: var(--sim-text-soft); }
.sim-state-live { border-color: rgba(31,138,91, 0.45); background: rgba(31,138,91, 0.16); color: var(--sim-good); }

.sim-stage-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 196px;
  border: 1px solid var(--sim-line);
  border-radius: 13px;
  background: linear-gradient(180deg, var(--sim-frame) 0%, #1E2737 100%);
  overflow: hidden;
}

.sim-avatar-face {
  width: 88px;
  height: 88px;
  border: 3px solid var(--sim-accent);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(27,58,107, 0.4);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.sim-avatar-face img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sim-avatar-face.is-speaking {
  border-color: var(--sim-good);
  box-shadow: 0 0 38px rgba(31,138,91, 0.72);
  transform: scale(1.05);
}

.sim-status-tag {
  padding: 0.22rem 0.65rem;
  border: 1px solid rgba(27,58,107, 0.3);
  border-radius: 999px;
  background: rgba(27,58,107, 0.12);
  color: var(--sim-accent);
  font-size: 0.73rem;
  font-weight: 700;
  text-align: center;
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sim-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 18px;
  opacity: 0.4;
  transition: opacity 0.25s ease;
}

.sim-equalizer .eq-bar {
  width: 4px;
  height: 6px;
  border-radius: 2px;
  background: var(--sim-accent);
  transition: height 0.16s ease;
}

.sim-stage-frame.is-speaking .sim-equalizer { opacity: 1; }
.sim-stage-frame.is-speaking .eq-bar { animation: simEq 0.9s ease-in-out infinite; }
.sim-stage-frame.is-speaking .eq-bar:nth-child(2) { animation-delay: 0.12s; background: var(--primary-soft); }
.sim-stage-frame.is-speaking .eq-bar:nth-child(3) { animation-delay: 0.24s; background: var(--sim-good); }
.sim-stage-frame.is-speaking .eq-bar:nth-child(4) { animation-delay: 0.36s; background: var(--primary-soft); }
.sim-stage-frame.is-speaking .eq-bar:nth-child(5) { animation-delay: 0.48s; }

@keyframes simEq { 0%, 100% { height: 5px; } 50% { height: 17px; } }

@media (prefers-reduced-motion: reduce) {
  .sim-live-dot,
  .sim-stage-frame.is-speaking .eq-bar { animation: none; }
  .sim-progress-fill { transition: none; }
}

.sim-webcam-frame { background: var(--sim-frame); }
.sim-webcam-frame video { width: 100%; height: 100%; object-fit: cover; }
.sim-webcam-frame video[hidden] { display: none; }

.sim-webcam-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
}

.sim-webcam-placeholder[hidden] { display: none; }
.sim-webcam-placeholder strong { color: var(--sim-text); font-size: 0.9rem; }

.sim-webcam-placeholder > span:not(.sim-webcam-icon) {
  max-width: 210px;
  color: var(--sim-text-soft);
  font-size: 0.76rem;
  line-height: 1.45;
}

.sim-webcam-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.2rem;
  border: 2px dashed var(--night-2);
  border-radius: 50%;
  color: var(--sim-text-soft);
}

.sim-webcam-icon .ui-icon { width: 22px; height: 22px; }

.sim-device-row { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.sim-device-row .sim-btn { flex: 1 1 130px; justify-content: center; }

/* ---------- Respuesta ---------- */
.sim-answer-block {
  padding: 1.05rem;
  margin-bottom: 1rem;
  border: 1.5px solid var(--sim-line);
  border-radius: 16px;
  background: var(--sim-tile);
}

.sim-answer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.sim-answer-header label { color: var(--sim-text); font-size: 0.88rem; font-weight: 700; }

.sim-word-count {
  color: var(--sim-text-soft);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sim-answer-block textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--night-2);
  border-radius: 12px;
  background: var(--sim-surface);
  color: var(--sim-text);
  font-family: inherit;
  font-size: 0.93rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
}

.sim-answer-block textarea:focus-visible {
  border-color: var(--sim-accent);
  box-shadow: 0 0 0 3px rgba(27,58,107, 0.2);
}

.sim-answer-block textarea::placeholder { color: #6A7A97; }

.sim-answer-hint {
  margin: 0.55rem 0 0;
  color: var(--sim-text-soft);
  font-size: 0.76rem;
}

/* ---------- Aviso en linea ---------- */
.sim-notice {
  padding: 0.7rem 0.95rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(27,58,107, 0.3);
  border-radius: 11px;
  background: rgba(27,58,107, 0.1);
  color: #E1E6EF;
  font-size: 0.84rem;
  line-height: 1.5;
}

.sim-notice[hidden] { display: none; }
.sim-notice-warn { border-color: rgba(217,146,46, 0.36); background: rgba(217,146,46, 0.1); color: #F6E8D2; }
.sim-notice-error { border-color: rgba(179,38,30, 0.36); background: rgba(179,38,30, 0.1); color: #fecaca; }

/* ---------- Registro ---------- */
.sim-log-details {
  margin-bottom: 1.1rem;
  border: 1px solid var(--sim-line);
  border-radius: 12px;
  background: #090C12;
  overflow: hidden;
}

.sim-log-summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  color: var(--sim-accent);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.sim-log-summary::-webkit-details-marker { display: none; }
.sim-log-summary .ui-icon { width: 15px; height: 15px; }
.sim-log-details[open] .sim-log-summary { border-bottom: 1px solid var(--sim-line); }
.sim-log-body { padding: 0.75rem 0.9rem; }
.sim-log-body .sim-btn { margin-bottom: 0.6rem; }

#simConsoleLog {
  height: 108px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #86efac;
  font: 0.74rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* ---------- Botones ---------- */
.sim-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 11px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.sim-btn .ui-icon { flex-shrink: 0; width: 16px; height: 16px; }
.sim-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.sim-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.sim-btn-primary { background: var(--primary-strong); border-color: var(--primary-strong); color: var(--on-primary); }
.sim-btn-primary:hover:not(:disabled),
.sim-btn-primary:active:not(:disabled) { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.sim-btn-primary:hover:not(:disabled) .ui-icon { color: var(--on-primary); }

.sim-btn-secondary { background: #29354B; border-color: #2C4672; color: #E1E6EF; }
.sim-btn-secondary:hover:not(:disabled) { background: #243D68; color: #fff; }

.sim-btn-ghost { background: var(--night-2); border-color: var(--night-2); color: var(--sim-text); }
.sim-btn-ghost:hover:not(:disabled) { background: #29364D; border-color: #415880; color: #fff; }
.sim-btn-ghost.is-active { border-color: var(--sim-good); background: rgba(31,138,91, 0.16); color: #bbf7d0; }
.sim-btn-ghost.is-unsupported { opacity: 0.5; }

.sim-btn-quiet { background: transparent; border-color: transparent; color: var(--sim-text-soft); }
.sim-btn-quiet:hover:not(:disabled) { color: var(--sim-text); text-decoration: underline; }

.sim-btn-lg { min-height: 52px; padding: 0.8rem 1.9rem; font-size: 1rem; }
.sim-btn-sm { min-height: 36px; padding: 0.35rem 0.7rem; font-size: 0.76rem; }
.sim-btn-block { width: 100%; }
.sim-btn-grow { flex: 2 1 220px; }

.sim-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; min-width: 0; }
.sim-actions .sim-btn { flex: 1 1 auto; }
.sim-actions .sim-btn-quiet { flex: 0 1 auto; }

/* ---------- Informes ---------- */
.sim-report { padding: clamp(1.2rem, 3vw, 1.8rem); margin-top: 1.6rem; }
.sim-report[hidden] { display: none !important; }

.sim-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.3rem;
}

.sim-report-head h3 { margin: 0; font-size: 1.2rem; color: var(--ink); }

.sim-report-head-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  min-width: 0;
}

.sim-score-pill {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sim-score-pill-sm { padding: 0.2rem 0.55rem; font-size: 0.76rem; }
.sim-score-pill.is-good { border-color: rgba(31,138,91, 0.4); background: rgba(31,138,91, 0.12); color: var(--accent); }
.sim-score-pill.is-mid { border-color: rgba(217,146,46, 0.4); background: rgba(217,146,46, 0.12); color: var(--warning); }
.sim-score-pill.is-low { border-color: rgba(179,38,30, 0.4); background: rgba(179,38,30, 0.12); color: var(--danger); }

.sim-report-section { margin-bottom: 1.25rem; }
.sim-report-section h4 { margin: 0 0 0.5rem; color: var(--ink); font-size: 0.92rem; font-weight: 800; }

.sim-callout {
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.89rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.sim-callout-good { border-color: rgba(31,138,91, 0.24); background: rgba(31,138,91, 0.06); }
.sim-callout-info { border-color: rgba(27,58,107, 0.24); background: rgba(27,58,107, 0.06); font-style: italic; }

.sim-report-next { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-top: 1.4rem; }

.sim-final-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.5rem;
}

.sim-final-stats > div {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  min-width: 0;
}

.sim-final-stats dt {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sim-final-stats dd {
  margin: 0.3rem 0 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sim-final-list { display: flex; flex-direction: column; gap: 0.7rem; }

.sim-final-row {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.sim-final-row-head { display: flex; align-items: flex-start; gap: 0.6rem; }

.sim-final-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-strong);
  color: var(--on-primary);
  font-size: 0.74rem;
  font-weight: 800;
}

.sim-final-q { flex: 1; margin: 0; color: var(--ink); font-size: 0.86rem; font-weight: 600; line-height: 1.45; }
.sim-final-row-head .sim-score-pill { flex-shrink: 0; }

.sim-final-a {
  margin: 0.6rem 0 0 2.1rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

/* ---------- 320 px ---------- */
@media screen and (max-width: 560px) {
  .sim-room { padding: 0.9rem; }
  .sim-tile { padding: 0.85rem; }
  .sim-stage-frame { height: 168px; }
  .sim-avatar-face { width: 74px; height: 74px; }
  .sim-video-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .sim-report-context { grid-template-columns: 1fr; }
  .sim-final-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .sim-report-head,
  .sim-report-head-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sim-report-head-actions .sim-score-pill { text-align: center; }
  .sim-report-head-actions .sim-btn { width: 100%; }

  .sim-actions { flex-direction: column; }
  .sim-actions .sim-btn { width: 100%; flex: 1 1 auto; }
  .sim-report-next .sim-btn { width: 100%; }
  .sim-device-row { flex-direction: column; }
  .sim-device-row .sim-btn { width: 100%; }
  .sim-room-header { gap: 0.5rem; }
  .sim-room-header #btnToggleLang { width: 100%; }
}

@media screen and (max-width: 360px) {
  .sim-final-stats { grid-template-columns: 1fr; }
  .sim-btn { font-size: 0.82rem; padding-inline: 0.7rem; }
  .sim-btn-lg { font-size: 0.92rem; padding-inline: 1rem; }
  .sim-participant-names strong { font-size: 0.84rem; }
  .sim-final-a { margin-left: 0; }
}

/* ---------- Impresion ---------- */
@media print {
  .simulator-page .sim-intro,
  .simulator-page .sim-config-card,
  .simulator-page .breadcrumbs,
  #simWelcomeOverlay,
  #simInterviewCanvas,
  .sim-report-next { display: none !important; }

  .sim-report { border: none !important; box-shadow: none !important; page-break-inside: avoid; }
}

/* ===================================================================
   ZONAS PUBLICITARIAS — reserva anti-CLS
   El alto se reserva antes de que AdSense responda para que el
   contenido no salte cuando el anuncio se rellena. Si el dominio no
   es el de produccion el bloque se marca [hidden] y no ocupa nada.
   =================================================================== */

.ad-reserved {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 280px;
  margin: 2rem auto;
  overflow: hidden;
  contain: layout;
}

.ad-reserved[hidden] {
  display: none !important;
  min-height: 0;
  margin: 0;
}

.ad-reserved .adsbygoogle {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* Vista previa: AdSense no se carga fuera del dominio de produccion, pero el
   hueco se dibuja para poder revisar ubicacion y alto reservado. Nunca se
   muestra en teletrabajo.cl porque alli el bloque si recibe el anuncio. */
.ad-reserved.is-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(95,107,102, 0.06) 10px,
    rgba(95,107,102, 0.06) 20px
  );
  text-align: center;
}

.ad-reserved.is-preview .adsbygoogle { display: none; }

.ad-reserved.is-preview::before {
  content: attr(data-ad-label);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding-inline: 1rem;
}

.ad-reserved.is-preview::after {
  content: "Espacio reservado · el anuncio solo se sirve en teletrabajo.cl";
  color: var(--ink-muted);
  font-size: 0.72rem;
  padding-inline: 1rem;
}

.ad-in-article {
  min-height: 250px;
  margin: 2.25rem auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

@media screen and (min-width: 768px) {
  .ad-reserved { min-height: 250px; }
}

@media print {
  .ad-reserved { display: none !important; }
}

.ad-page-end {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* ===================================================================
   SIMULADOR — entrada a prueba de dudas
   Toda la decision ocurre en la sala de espera: un puesto, una forma de
   responder y un boton. Lo demas se pliega.
   =================================================================== */

/* Los tres pasos: lo primero que se ve al llegar. */
.sim-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.sim-steps li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--sim-line);
  border-radius: 999px;
  background: rgba(27,58,107, 0.07);
}

.sim-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sim-accent);
  color: #0C1017;
  font-size: 0.72rem;
  font-weight: 900;
}

.sim-step-text {
  color: var(--sim-text);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Bloque de configuracion visible: solo lo imprescindible. */
.sim-setup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 1.6rem;
  text-align: left;
}

.sim-setup-field { display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; }

.sim-setup-field label,
.sim-setup-label {
  color: var(--sim-text);
  font-size: 0.92rem;
  font-weight: 700;
}

.sim-setup-field select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--night-2);
  border-radius: 12px;
  background: var(--sim-tile);
  color: var(--sim-text);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.sim-setup-field select:focus-visible {
  border-color: var(--sim-accent);
  box-shadow: 0 0 0 3px rgba(27,58,107, 0.22);
}

/* Escribir o hablar: se decide antes de que el navegador pida permisos. */
.sim-mode-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }

.sim-mode-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-height: 92px;
  padding: 0.8rem 0.6rem;
  border: 1.5px solid var(--night-2);
  border-radius: 13px;
  background: var(--sim-tile);
  color: var(--sim-text-soft);
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.sim-mode-option .ui-icon { width: 20px; height: 20px; margin-bottom: 0.15rem; flex-shrink: 0; }
.sim-mode-option:hover { border-color: #4A6188; color: var(--sim-text); }
.sim-mode-option:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.sim-mode-option.is-selected {
  border-color: var(--sim-accent);
  background: rgba(27,58,107, 0.14);
  color: var(--sim-text);
  box-shadow: inset 0 0 0 1px rgba(27,58,107, 0.35);
}

.sim-mode-option.is-selected .ui-icon { color: var(--sim-accent); }
.sim-mode-title { font-size: 0.92rem; font-weight: 800; line-height: 1.2; }
.sim-mode-note { font-size: 0.72rem; font-weight: 600; opacity: 0.8; line-height: 1.3; }

.sim-mode-hint {
  margin: 0;
  color: var(--sim-text-soft);
  font-size: 0.78rem;
  line-height: 1.45;
  min-height: 2.2em;
}

/* El boton que arranca todo: uno solo y grande. */
.sim-btn-hero { width: 100%; max-width: 420px; margin: 0 auto; }

.sim-reassure {
  margin: 0.85rem 0 0;
  color: var(--sim-text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Ajustes que casi nadie necesita: plegados por defecto. */
.sim-advanced {
  width: 100%;
  max-width: 720px;
  margin: 1.35rem auto 0;
  text-align: left;
}

.sim-advanced > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0;
  color: var(--sim-accent);
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.sim-advanced > summary::-webkit-details-marker { display: none; }
.sim-advanced > summary::before { content: "+"; font-weight: 900; }
.sim-advanced[open] > summary::before { content: "\2212"; }

.sim-advanced-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.9rem;
  margin-top: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--sim-line);
  border-radius: 12px;
  background: rgba(15, 27, 45, 0.6);
}

.sim-advanced-body .sim-field label { color: var(--sim-text); font-size: 0.79rem; }

.sim-advanced-body .sim-field select {
  border-color: var(--night-2);
  background: var(--sim-surface);
  color: var(--sim-text);
}

/* Quien entrevista: aclaracion en lenguaje llano al pie de la sala. */
.sim-welcome-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 620px;
  margin: 1.5rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--sim-line);
  color: var(--sim-text-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.sim-welcome-hint strong { color: var(--sim-text); }

.sim-avatar-inline {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 1.5px solid var(--sim-accent);
  border-radius: 50%;
  overflow: hidden;
}

.sim-avatar-inline img { width: 100%; height: 100%; object-fit: cover; }

/* Contador de palabras que orienta en vez de solo contar. */
.sim-word-count.is-short { color: var(--sim-warn); }
.sim-word-count.is-ok { color: var(--sim-text-soft); }
.sim-word-count.is-good { color: var(--sim-good); }

.sim-answer-hint strong { color: var(--sim-text); }
.sim-answer-hint em { color: var(--sim-accent); font-style: normal; font-weight: 700; }

/* Acciones secundarias: separadas del boton principal, sin competirle. */
.sim-actions-minor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.sim-actions-minor .sim-btn { min-height: 34px; padding: 0.25rem 0.4rem; font-weight: 600; }

/* Pregunta y respuesta guardadas: consultables, no obligatorias. */
.sim-report-recall { margin-bottom: 1.25rem; }

.sim-report-recall > summary {
  padding: 0.4rem 0;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.sim-report-recall .sim-report-context { margin-top: 0.75rem; }

.sim-final-verdict {
  margin: 0 0 1.5rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.6;
}

.sim-score-note {
  margin: -0.75rem 0 1.4rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

@media screen and (max-width: 560px) {
  .sim-steps { flex-direction: column; align-items: stretch; gap: 0.45rem; }
  .sim-steps li { justify-content: flex-start; border-radius: 11px; }
  .sim-step-text { white-space: normal; }
  .sim-setup { grid-template-columns: 1fr; gap: 1.1rem; }
  .sim-btn-hero { max-width: none; }
  .sim-actions-minor { flex-direction: column; gap: 0.35rem; }
  .sim-welcome-hint { text-align: center; }
}

@media screen and (max-width: 360px) {
  .sim-mode-picker { grid-template-columns: 1fr; }
  .sim-mode-option { min-height: 0; flex-direction: row; justify-content: flex-start; gap: 0.5rem; text-align: left; }
  .sim-mode-option .ui-icon { margin-bottom: 0; }
  .sim-mode-note { display: none; }
}

@media print {
  .sim-report-recall { display: block !important; }
  .sim-report-recall > summary { display: none; }
  .sim-report-recall .sim-report-context { display: grid !important; }
}

/* ===================================================================
   SIMULADOR — correcciones sobre revision visual
   =================================================================== */

/* El pie de la sala de espera era un flex y cada nodo de texto se
   convertia en item: los puntos quedaban huerfanos al inicio de linea.
   Vuelve a ser un parrafo con el retrato en linea. */
.sim-welcome-hint {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
  max-width: 620px;
  margin: 1.5rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--sim-line);
  text-align: left;
}

.sim-welcome-hint p {
  margin: 0;
  color: var(--sim-text-soft);
  font-size: 0.79rem;
  line-height: 1.6;
}

.sim-welcome-hint strong { color: var(--sim-text); font-weight: 700; }
.sim-avatar-inline { margin-top: 0.1rem; }

/* La opcion de voz se marca antes de elegirla si el navegador no la ofrece. */
.sim-mode-option.is-unsupported { opacity: 0.55; }
.sim-mode-option.is-unsupported .sim-mode-note { color: var(--sim-warn); opacity: 1; }

/* Los controles de dispositivo se apoyan abajo para que las dos tarjetas
   de la sala terminen a la misma altura. */
.sim-device-row { margin-top: auto; }
.sim-device-row .sim-btn[hidden] { display: none; }

/* La respuesta y el reloj aparecen solo cuando hay una pregunta viva. */
#simAnswerBlock[hidden],
#simTimerDisplay[hidden],
#simLogPanel[hidden],
.sim-actions[hidden],
.sim-actions-minor[hidden] { display: none !important; }

.sim-session-language {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--sim-line);
  border-radius: 999px;
  color: var(--sim-text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

/* El contador arranca neutro: en ambar parecia un error ya cometido. */
.sim-word-count { color: var(--sim-text-soft); }

/* Con la respuesta oculta durante el saludo, el boton principal queda
   pegado a la rejilla de video. */
#simInterviewCanvas .sim-actions { margin-top: 1.1rem; }

/* ===================================================================
   PRODUCT UI 2026 — una interfaz SaaS continua, firme y comprensible
   =================================================================== */

/* Menos cajas flotantes: las superficies se separan por ritmo, linea y tono. */
main {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--canvas) 94%, var(--primary)) 0, var(--canvas) 34rem);
}

.saas-tool-card,
.tool-card,
.post-card,
.saas-job-card,
.saas-metric-card {
  transform: none !important;
}

.saas-tool-card:hover,
.tool-card:hover,
.post-card:hover,
.saas-job-card:hover,
.saas-metric-card:hover {
  transform: none !important;
  box-shadow: var(--shadow-card);
}

.home-hero {
  padding-top: clamp(2.25rem, 5vw, 4.25rem) !important;
}

.home-hero > h1 { max-width: 19ch; margin-inline: auto; }

.home-search-console {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line)) !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 60px rgba(15, 27, 45, 0.11) !important;
}

.home-search-console::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.home-match-mode-switch {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.home-match-mode-switch button {
  border: 0 !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}

.home-match-mode-switch button.active {
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(15, 27, 45, 0.1) !important;
}

.home-cv-dropzone {
  border-width: 1.5px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-soft) 64%, var(--paper));
}

#btnHeroSearchJobs {
  margin-top: 0.9rem;
  min-height: 54px;
  box-shadow: 0 10px 24px rgba(27,58,107, 0.2);
}

/* El creador se comporta como una aplicación: editor estable + hoja de trabajo. */
.cv-builder-intro {
  text-align: left !important;
  max-width: var(--content-page) !important;
}

.cv-builder-intro .saas-hero-badge { margin-inline: 0; }
.cv-builder-intro h1 { max-width: 18ch; line-height: 1.08; }
.cv-builder-intro > p { max-width: 65ch; }

.cv-builder-intro .privacy-notice {
  justify-content: flex-start !important;
  margin-inline: 0 !important;
  text-align: left !important;
}

.cv-builder-grid {
  align-items: start;
  gap: 1.25rem;
}

.cv-editor-card {
  border-radius: 16px !important;
  box-shadow: 0 18px 45px rgba(15, 27, 45, 0.1) !important;
}

.cv-editor-card > div:not(.cv-builder-actions):not(.cv-editor-section):not(.cv-coach-handoff-notice) {
  margin-bottom: 1rem !important;
}

.cv-editor-card label {
  margin-bottom: 0.4rem !important;
  color: var(--ink) !important;
  font-size: 0.82rem !important;
  font-weight: 750 !important;
}

.cv-editor-card input,
.cv-editor-card textarea {
  min-height: 48px;
  border: 1.5px solid var(--line) !important;
  background: var(--surface-soft) !important;
}

.cv-editor-card textarea { min-height: 104px; resize: vertical; }

.cv-editor-section {
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

#cvPreviewCard {
  position: sticky;
  top: 88px;
  border-radius: 6px !important;
  box-shadow: 0 22px 55px rgba(15, 27, 45, 0.14) !important;
}

/* Sala de entrevista: contraste explícito y agrupación sin ambigüedad. */
#simStageWrapper {
  --sim-surface: #171E2A;
  --sim-tile: #1D2737;
  --sim-frame: #0F141D;
  --sim-line: #344563;
  --sim-text: var(--mist);
  --sim-text-soft: #C6D0E1;
  --sim-accent: #89A8DD;
  --sim-good: var(--ok);
  --sim-warn: var(--amber-soft);
  color: var(--sim-text);
}

.sim-room {
  border: 1px solid #2F4161 !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 85% 0, rgba(27,58,107, 0.12), transparent 24rem),
    var(--sim-surface) !important;
  box-shadow: 0 24px 60px rgba(15, 27, 45, 0.25) !important;
}

.sim-waiting {
  padding: clamp(1.25rem, 3vw, 2rem) !important;
  text-align: left;
}

.sim-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin-inline: auto;
}

.sim-steps li {
  justify-content: flex-start;
  min-height: 48px;
  border-radius: 12px;
  background: rgba(27,58,107, 0.07);
}

.sim-setup {
  padding: 1.15rem;
  border: 1px solid var(--sim-line);
  border-radius: 14px;
  background: rgba(15, 27, 45, 0.42);
}

.sim-mode-option {
  min-height: 84px;
  box-shadow: none !important;
}

.sim-mode-option.is-selected {
  border-color: var(--sim-accent) !important;
  background: rgba(27,58,107, 0.16) !important;
}

.sim-btn-primary {
  background: #2B5294;
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(27,58,107, 0.26);
}

.sim-reassure,
.sim-mode-hint,
.sim-welcome-hint p { color: var(--sim-text-soft) !important; }

.sim-advanced > summary { min-height: 44px; }

@media screen and (max-width: 920px) {
  #cvPreviewCard { position: static; }
}

@media screen and (max-width: 560px) {
  .home-hero {
    padding: 1.35rem 0.75rem 2rem !important;
  }

  .home-hero .saas-hero-badge { margin-bottom: 0.85rem !important; }

  .home-hero > h1 {
    max-width: 17ch;
    margin-bottom: 0.75rem !important;
    font-size: clamp(1.75rem, 9vw, 2.2rem) !important;
    line-height: 1.12 !important;
  }

  .home-hero > p {
    margin-bottom: 1.4rem !important;
    font-size: 1rem !important;
    line-height: 1.55 !important;
  }

  .home-search-console {
    padding: 1.1rem !important;
    border-radius: 16px !important;
  }

  .home-search-console > div:first-child { margin-bottom: 1rem !important; }
  .home-search-console h3 { font-size: 1.15rem !important; }
  .home-match-method-label { margin-top: 0.4rem; }

  .home-cv-dropzone {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
  }

  .home-cv-dropzone > .chip { grid-column: 1 / -1; width: 100%; }

  .cv-builder-intro { margin-bottom: 1.5rem !important; }
  .cv-builder-intro h1 { font-size: 2rem !important; }
  .cv-builder-intro .privacy-notice { align-items: flex-start !important; }
  .cv-editor-card { padding: 1.1rem !important; }

  .sim-intro { margin-bottom: 1.25rem; }
  .sim-intro h1 { font-size: 1.85rem; }
  .sim-steps { grid-template-columns: 1fr; }
  .sim-setup { padding: 0.9rem; }
  .sim-mode-picker { grid-template-columns: 1fr; }
  .sim-mode-option {
    min-height: 58px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }
  .sim-mode-option .ui-icon { margin: 0; }
}

/* ===================================================================
   HOME EMPLOYMENT WORKSPACE — producto, no pila de tarjetas
   =================================================================== */
.home-hero {
  width: 100%;
  max-width: 1040px !important;
}

.home-hero-intro h1 {
  max-width: 19ch;
  margin-inline: auto;
}

.home-hero-intro > p {
  max-width: 66ch !important;
}

.home-search-heading > div {
  flex: 1 1 520px;
  min-width: 0;
}

.home-search-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  max-width: 860px;
  margin: 0.9rem auto 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.home-search-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.home-search-trust span::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.home-results-meta {
  margin: 0.32rem 0 0 !important;
  color: var(--ink-soft);
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
}

.home-results-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.home-live-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 999px;
  color: color-mix(in srgb, var(--accent) 78%, var(--ink));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-soft));
  font-size: 0.75rem;
  font-weight: 780;
  line-height: 1.2;
}

.home-live-pill::before {
  width: 6px;
  height: 6px;
  margin-right: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

#btnRefineHomeSearch {
  min-height: 36px;
  padding: 0.45rem 0.72rem;
  font-size: 0.78rem;
}

.home-results-workspace[hidden] {
  display: none !important;
}

.home-results-loading,
.home-results-state {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  min-height: 150px;
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface-soft) 72%, transparent);
  text-align: center;
}

.home-results-state strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.home-results-state p {
  max-width: 58ch;
  margin: 0 !important;
  font-size: 0.9rem !important;
}

.home-loading-bars {
  display: inline-grid;
  grid-template-columns: repeat(3, 28px);
  gap: 6px;
}

.home-loading-bars i {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--primary) 30%, var(--line));
  animation: home-loading-pulse 1.1s ease-in-out infinite;
}

.home-loading-bars i:nth-child(2) { animation-delay: 0.12s; }
.home-loading-bars i:nth-child(3) { animation-delay: 0.24s; }

@keyframes home-loading-pulse {
  50% { background: var(--primary); }
}

.home-job-card-compact {
  display: grid !important;
  gap: 0.85rem !important;
  padding: 1.15rem 1.25rem !important;
  border-color: color-mix(in srgb, var(--line) 92%, transparent) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(15, 27, 45, 0.07) !important;
}

.home-job-card-compact:hover {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--line)) !important;
  box-shadow: 0 10px 28px rgba(15, 27, 45, 0.09) !important;
}

.home-job-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.home-job-heading {
  min-width: 0;
}

.home-job-card-compact .saas-job-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-weight: 780;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.home-job-card-compact .home-job-company {
  display: flex;
  justify-content: flex-start;
  gap: 0.4rem 0.7rem;
  margin: 0.28rem 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.4;
  text-align: left;
}

.home-job-card-compact .home-job-company strong {
  color: var(--primary);
}

.home-job-card-compact .home-job-company span {
  padding-left: 0.7rem;
  border-left: 1px solid var(--line);
}

.home-job-card-compact .saas-job-match {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0.3rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 999px;
  color: color-mix(in srgb, var(--accent) 74%, var(--ink));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-soft));
  font-size: 0.7rem;
  font-weight: 780;
}

.home-job-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  margin: 0;
  padding: 0;
  color: var(--ink-muted);
  font-size: 0.79rem;
  line-height: 1.4;
  list-style: none;
}

.home-job-meta-line li {
  display: inline-flex;
  align-items: center;
}

.home-job-meta-line li + li::before {
  width: 3px;
  height: 3px;
  margin: 0 0.55rem;
  border-radius: 50%;
  background: var(--ink-muted);
  content: "";
  opacity: 0.65;
}

.home-job-match-reasons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
}

.home-job-match-reasons > span {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 740;
}

.home-job-match-reasons .skills-tags {
  margin: 0;
}

.home-job-match-reasons .skill-tag {
  min-height: 26px;
  padding: 0.25rem 0.55rem;
  font-size: 0.7rem;
}

.home-job-match-reasons .skill-tag-more {
  color: var(--ink-soft);
  background: var(--surface-soft);
}

.home-job-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.home-job-card-compact .saas-job-salary {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.14rem;
  min-width: 0;
}

.home-job-card-compact .saas-salary-lbl {
  order: 0;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-job-card-compact .saas-salary-val {
  order: 1;
  color: var(--accent);
  font-size: clamp(1.05rem, 2vw, 1.28rem) !important;
  font-weight: 820;
  line-height: 1.25;
}

.home-job-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-flow: row wrap;
  gap: 0.55rem;
}

.home-job-actions .chip,
.home-job-primary-action {
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  font-size: 0.78rem;
}

.home-job-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.home-match-next-step {
  margin-top: 1rem !important;
  padding: 1rem !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

/* La portada inferior se lee como un sistema continuo. */
.home-alerts-section,
.salary-preview-section,
.home-market-pulse,
.home-silo-section,
.home-explainer,
.home-faq,
.home-tools-section,
.home-guides-section {
  width: min(1120px, calc(100% - 2rem));
  max-width: 1120px !important;
  margin-inline: auto !important;
}

.home-alerts-section {
  margin-bottom: 4.5rem !important;
}

.home-alerts-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(420px, 1.16fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3.5vw, 2.25rem) !important;
  border-color: var(--line) !important;
  background: var(--bg-card) !important;
  box-shadow: 0 12px 34px rgba(15, 27, 45, 0.07) !important;
  text-align: left !important;
}

.home-alerts-copy h3 {
  font-size: clamp(1.45rem, 2.8vw, 2rem) !important;
}

.home-alerts-copy p {
  margin: 0 !important;
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
}

.home-alerts-action,
.home-alerts-action form {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
}

.home-alerts-action #jobAlertsForm > div > div {
  border-color: var(--line) !important;
  background: var(--surface-soft) !important;
  box-shadow: none !important;
}

.home-alert-field-icon {
  display: inline-flex;
  flex: 0 0 19px;
  width: 19px;
  margin-right: 0.6rem;
  color: var(--primary);
}

.home-alert-field-icon .ui-icon {
  width: 19px;
  height: 19px;
}

#btnSubscribeAlerts,
#btnAiTaxAdvice {
  background: var(--primary-strong) !important;
  box-shadow: none !important;
}

.home-alerts-action > div:last-child {
  justify-content: flex-start !important;
  line-height: 1.45;
}

.salary-preview-section,
.home-market-pulse {
  padding: 3rem 0 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.salary-preview-card,
.home-metric-card {
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-soft) 78%, var(--bg-card));
}

.home-silo-grid,
.home-faq-list,
.home-tools-section .saas-tools-grid {
  gap: 1px;
  padding: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.home-silo-card,
.home-faq details,
.home-tools-section .saas-tool-card {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.home-silo-card,
.home-faq details {
  background: var(--bg-card);
}

.home-tools-section .saas-tool-card {
  background: var(--bg-card) !important;
}

.home-guides-section {
  margin-bottom: 4.5rem;
}

.home-guides-section .post-card {
  border-radius: 14px !important;
  box-shadow: none !important;
}

@media screen and (min-width: 1120px) {
  .home-hero.has-results {
    display: grid;
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: 0.9rem 1.5rem;
    max-width: 1280px !important;
    padding: 1.5rem 2rem 2.5rem !important;
    text-align: left !important;
  }

  .home-hero.has-results .home-hero-intro,
  .home-hero.has-results .home-quick-nav {
    display: none !important;
  }

  .home-hero.has-results .home-search-console {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 84px;
    max-width: none !important;
    margin: 0 !important;
    padding: 1.2rem !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 34px rgba(15, 27, 45, 0.08) !important;
  }

  .home-hero.has-results .home-search-heading {
    display: grid !important;
    gap: 0.7rem !important;
    margin-bottom: 1rem !important;
  }

  .home-hero.has-results .home-search-heading h3 {
    font-size: 1.08rem !important;
  }

  .home-hero.has-results .home-search-heading p {
    font-size: 0.79rem !important;
    line-height: 1.48;
  }

  .home-hero.has-results .home-search-heading .source-status-badge {
    justify-self: start;
  }

  .home-hero.has-results .home-match-mode-switch {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero.has-results .home-role-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero.has-results .home-role-selector .chip {
    min-height: 52px;
    line-height: 1.25;
    white-space: normal !important;
  }

  .home-hero.has-results .home-search-trust {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    margin: 0.15rem 0 0;
    padding-inline: 0.35rem;
  }

  .home-hero.has-results .home-results-workspace {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
  }

  .home-hero.has-results .home-results-toolbar {
    position: relative;
    margin-bottom: 0.85rem !important;
    padding: 0.9rem 1rem !important;
    border: 1px solid var(--line) !important;
    border-radius: 14px;
    background: color-mix(in srgb, var(--bg-card) 94%, transparent);
    box-shadow: 0 8px 26px rgba(15, 27, 45, 0.08);
  }
}

@media screen and (max-width: 1119px) {
  .home-hero.has-results {
    max-width: 760px !important;
    padding-top: 1rem !important;
  }

  .home-hero.has-results .home-hero-intro,
  .home-hero.has-results .home-search-console,
  .home-hero.has-results .home-search-trust,
  .home-hero.has-results .home-quick-nav {
    display: none !important;
  }

  .home-hero.has-results .home-results-workspace {
    max-width: none !important;
    margin: 0 !important;
  }

  .home-hero.has-results .home-results-toolbar {
    margin-bottom: 0.85rem !important;
    padding: 0 0 0.85rem !important;
  }

  .home-alerts-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen and (max-width: 620px) {
  .home-hero-intro h1 {
    max-width: 17ch;
    margin-bottom: 0.8rem !important;
    font-size: clamp(1.85rem, 9vw, 2.35rem) !important;
    line-height: 1.1 !important;
  }

  .home-hero-intro > p {
    margin-bottom: 1.4rem !important;
    font-size: 0.96rem !important;
  }

  .home-search-trust {
    gap: 0.35rem 0.75rem;
  }

  .home-quick-nav {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x proximity;
  }

  .home-quick-nav .chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .home-results-toolbar,
  .home-results-actions,
  .home-job-card-top,
  .home-job-card-bottom {
    align-items: stretch !important;
    flex-direction: column;
  }

  .home-results-actions {
    justify-content: flex-start;
  }

  .home-live-pill,
  #btnRefineHomeSearch {
    justify-content: center;
    width: 100%;
  }

  .home-job-card-compact {
    padding: 1rem !important;
  }

  .home-job-card-compact .saas-job-match {
    align-self: flex-start;
  }

  .home-job-card-compact .home-job-company {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .home-job-card-compact .home-job-company span {
    padding-left: 0;
    border-left: 0;
  }

  .home-job-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .home-job-actions .chip,
  .home-job-primary-action {
    width: 100%;
  }

  .home-alerts-section,
  .salary-preview-section,
  .home-market-pulse,
  .home-silo-section,
  .home-explainer,
  .home-faq,
  .home-tools-section,
  .home-guides-section {
    width: min(calc(100% - 1.5rem), 1120px);
  }

  .home-alerts-panel {
    padding: 1.15rem !important;
  }

  .home-alerts-action #jobAlertsForm > div {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .home-alerts-action #jobAlertsForm > div > div,
  .home-alerts-action #jobAlertsForm input,
  .home-alerts-action #jobAlertsForm select {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-loading-bars i {
    animation: none;
  }
}
/* ====================================================
   PLATFORM NAVIGATION + ACCESSIBILITY CALIBRATION
   Final isolated layer: header, drawer, A+, back-to-top
   ==================================================== */
.site-header.platform-header {
  --header-hit: 44px;
  z-index: 300;
}

.platform-header .header-inner {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  width: 100%;
  max-width: 1320px;
  min-height: 72px;
  padding: 10px clamp(14px, 2vw, 24px);
  gap: clamp(12px, 1.5vw, 20px);
}

.platform-header .logo {
  min-width: 0;
}

.platform-header .brand-symbol,
.platform-header .brand-symbol .brand-mark-svg {
  width: 40px;
  height: 40px;
}

.platform-header .brand-wordmark {
  font-size: 19px;
  line-height: 1;
  white-space: nowrap;
}

.platform-header .desktop-nav {
  min-width: 0;
  justify-self: center;
}

.platform-header .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  list-style: none;
}

.platform-header .nav-links > li {
  position: relative;
  flex: 0 0 auto;
  max-width: none;
}

.platform-header .nav-direct-link,
.platform-header .nav-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 0 !important;
  max-width: none !important;
  min-height: var(--header-hit) !important;
  height: var(--header-hit);
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 10px !important;
  color: var(--ink-soft) !important;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  cursor: pointer;
}

.platform-header :is(.nav-direct-link, .nav-menu-trigger):hover,
.platform-header .nav-menu-trigger[aria-expanded="true"],
.platform-header :is(.nav-direct-link, .nav-menu-trigger).active {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--line));
  color: var(--primary) !important;
  background: color-mix(in srgb, var(--primary) 9%, var(--paper));
}

.platform-header .nav-chevron {
  width: 16px;
  height: 16px;
  max-width: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 150ms ease;
}

.platform-header .nav-menu-trigger[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.platform-header .nav-menu-panel {
  position: absolute;
  inset-block-start: calc(100% + 9px);
  inset-inline-start: 50%;
  z-index: 400;
  display: grid;
  width: 300px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 0 20px 48px rgba(15, 27, 45, 0.24);
  transform: translateX(-50%);
}

.platform-header .nav-menu-panel-wide {
  width: 340px;
}

.platform-header .nav-menu-item-end .nav-menu-panel {
  right: 0;
  left: auto;
  transform: none;
}

.platform-header .nav-menu-panel[hidden] {
  display: none !important;
}

.platform-header .nav-menu-label {
  display: block;
  padding: 7px 10px 8px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-header .nav-menu-panel a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  color: var(--ink) !important;
  background: transparent;
  text-decoration: none !important;
  white-space: normal;
}

.platform-header .nav-menu-panel a:hover,
.platform-header .nav-menu-panel a:focus-visible,
.platform-header .nav-menu-panel a[aria-current="page"] {
  color: var(--primary) !important;
  background: color-mix(in srgb, var(--primary) 9%, var(--surface-soft));
}

.platform-header .nav-menu-panel a > .ui-icon {
  width: 18px;
  height: 18px;
  justify-self: center;
  color: var(--primary);
}

.platform-header .nav-menu-panel a > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.platform-header .nav-menu-panel strong {
  color: currentColor;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
}

.platform-header .nav-menu-panel small {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.35;
}

.platform-header .header-actions {
  justify-self: end;
  flex: 0 0 auto;
  gap: 7px;
}

.platform-header .header-upload-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  max-width: none;
  min-height: var(--header-hit);
  padding: 0 14px;
  border: 1px solid var(--primary-strong);
  border-radius: 10px;
  color: var(--on-primary) !important;
  background: var(--primary-strong);
  box-shadow: 0 8px 18px rgba(27,58,107, 0.18);
  font-size: 13px;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
}

.platform-header .header-upload-cta:hover {
  border-color: var(--primary);
  color: var(--on-primary) !important;
  background: var(--primary);
}

.platform-header .header-upload-cta .ui-icon {
  width: 17px;
  height: 17px;
}

.platform-header .header-text-size-control {
  display: grid;
  grid-template-columns: repeat(2, 40px);
  flex: 0 0 82px;
  width: 82px;
  min-width: 82px;
  max-width: 82px;
  height: var(--header-hit);
  overflow: visible;
  border-radius: 10px;
}

.platform-header .header-text-size-control button {
  width: 40px;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 42px;
  min-height: 42px !important;
  max-height: 42px !important;
  padding: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
}

.platform-header .header-text-size-control button:first-child {
  border-radius: 9px 0 0 9px !important;
}

.platform-header .header-text-size-control button:last-child {
  border-radius: 0 9px 9px 0 !important;
}

.platform-header .header-text-size-control button[aria-pressed="true"] {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 11%, var(--paper));
}

.platform-header .icon-button,
.platform-menu .menu-close {
  width: var(--header-hit) !important;
  min-width: var(--header-hit) !important;
  max-width: var(--header-hit) !important;
  height: var(--header-hit) !important;
  min-height: var(--header-hit) !important;
  max-height: var(--header-hit) !important;
}

.platform-header .mobile-menu-button {
  display: none !important;
}

.platform-header .menu-button-label {
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
}

body.menu-open {
  overflow: hidden !important;
}

.menu-overlay.platform-menu {
  z-index: 9999;
}

.platform-menu .menu-drawer {
  width: min(380px, 100vw);
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background: var(--paper);
}

.platform-menu .menu-drawer-head {
  min-height: 72px;
  padding: 12px 16px;
}

.platform-menu .menu-drawer-head .brand-symbol,
.platform-menu .menu-drawer-head .brand-symbol .brand-mark-svg {
  width: 38px;
  height: 38px;
}

.platform-menu .menu-drawer-head .brand-wordmark {
  font-size: 18px;
}

.platform-menu .menu-close {
  --header-hit: 44px;
}

.platform-menu .menu-nav {
  padding: 0 0 max(20px, env(safe-area-inset-bottom));
}

.platform-menu .menu-primary-action {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 70%, var(--paper));
}

.platform-menu .drawer-upload-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--primary-strong);
  border-radius: 11px;
  color: var(--on-primary) !important;
  background: var(--primary-strong);
  font-size: 15px;
  font-weight: 780;
  line-height: 1.25;
  text-decoration: none !important;
}

.platform-menu .menu-primary-action p {
  margin: 8px 2px 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.45;
}

.platform-menu .menu-section {
  padding: 16px 16px 7px;
}

.platform-menu .menu-section + .menu-section {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.platform-menu .menu-section-kicker {
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.075em;
}

.platform-menu .menu-nav a:not(.drawer-upload-cta) {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 10px 11px;
  border: 0;
  border-radius: 10px;
  color: var(--ink) !important;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  white-space: normal;
}

.platform-menu .menu-nav a:not(.drawer-upload-cta) .ui-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.platform-menu .menu-nav a[aria-current="page"] {
  color: var(--primary) !important;
  background: color-mix(in srgb, var(--primary) 11%, var(--surface-soft));
}

.platform-menu .menu-nav a[aria-current="page"]::before {
  display: none;
}

.platform-menu .menu-preferences {
  margin: 10px 16px 0;
  padding: 15px 12px 16px;
  border-top: 1px solid var(--line);
}

.platform-menu .menu-preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.platform-menu .drawer-text-size-control {
  display: grid !important;
  grid-template-columns: repeat(2, 44px);
  flex: 0 0 90px;
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  height: 46px;
  overflow: visible;
}

.platform-menu .drawer-text-size-control button {
  width: 44px;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}

.platform-menu .drawer-text-size-control button[aria-pressed="true"] {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 11%, var(--paper));
}

.back-to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 220;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 48px;
  max-width: none;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--line));
  border-radius: 999px !important;
  color: var(--on-primary);
  background: var(--primary-strong);
  box-shadow: 0 12px 28px rgba(27,58,107, 0.24);
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  cursor: pointer;
}

.back-to-top[hidden] {
  display: none !important;
}

.back-to-top:hover {
  border-color: var(--primary);
  background: var(--primary);
}

.home-search-console {
  container-type: inline-size;
}

#btnHeroSearchJobs {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 9px;
  min-width: 0;
  min-height: 50px;
  padding: 11px 15px !important;
  font-size: 16px !important;
  line-height: 1.25;
  white-space: normal !important;
  text-align: center;
}

#btnHeroSearchJobs .ui-icon {
  flex: 0 0 18px;
}

#btnHeroSearchJobs .btn-label {
  min-width: 0;
  overflow-wrap: break-word;
}

.home-cv-dropzone-copy strong {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.home-hero.has-results .home-cv-dropzone {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
}

.home-hero.has-results .home-cv-dropzone > .chip {
  grid-column: 1 / -1;
  width: 100%;
}

@container (max-width: 560px) {
  .home-cv-dropzone {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }

  .home-cv-dropzone > .chip {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@container (max-width: 360px) {
  .home-cv-dropzone {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }
}

@media screen and (max-width: 1120px) {
  .platform-header .header-inner {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .platform-header .desktop-nav {
    display: none !important;
  }

  .platform-header .mobile-menu-button {
    display: inline-flex !important;
    width: auto !important;
    min-width: var(--header-hit) !important;
    max-width: none !important;
    padding: 0 12px !important;
    gap: 7px;
  }
}

@media screen and (max-width: 760px) {
  .platform-header .header-upload-cta {
    display: none;
  }
}

@media screen and (max-width: 640px) {
  .platform-header .header-inner {
    padding-inline: 10px;
    gap: 8px;
  }

  .platform-header .header-text-size-control {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .platform-header .menu-button-label {
    display: none;
  }

  .platform-header .mobile-menu-button {
    width: var(--header-hit) !important;
    min-width: var(--header-hit) !important;
    max-width: var(--header-hit) !important;
    padding: 0 !important;
  }

  .platform-menu .menu-drawer-head,
  .platform-menu .menu-section {
    padding-inline: 12px;
  }

  .back-to-top {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: 48px;
    padding: 0;
  }

  .back-to-top span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media screen and (max-width: 360px) {
  .platform-header .brand-symbol,
  .platform-header .brand-symbol .brand-mark-svg {
    width: 32px;
    height: 32px;
  }

  .platform-header .brand-wordmark {
    font-size: 15.5px;
  }
}

@media print {
  .back-to-top {
    display: none !important;
  }
}

/* CV STUDIO V3 — editor tech, vista A4 y exportacion ATS */
.cv-builder-page {
  overflow: visible;
}

.cv-studio {
  width: min(1240px, 100%);
  margin: 0 auto 3.5rem;
  color: var(--ink);
}

.cv-studio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--paper) 94%, var(--primary) 6%);
  box-shadow: 0 12px 34px rgba(15, 27, 45, 0.07);
}

.cv-studio-progress {
  display: grid;
  grid-template-columns: auto minmax(90px, 150px);
  align-items: center;
  gap: 4px 14px;
  min-width: min(100%, 310px);
}

.cv-studio-progress .section-eyebrow,
.cv-studio-progress strong {
  grid-column: 1;
}

.cv-studio-progress strong {
  font-size: 17px;
  line-height: 1.25;
}

#cvCompletionText {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
}

.cv-progress-track {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 72%, transparent);
}

#cvProgressBar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--ok));
  transition: width 180ms ease;
}

.cv-studio-toolbar-actions,
.cv-view-tabs {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cv-view-tabs {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.cv-view-tabs button,
.cv-density-control select {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  color: var(--ink-muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.cv-view-tabs button {
  padding: 0 14px;
  cursor: pointer;
}

.cv-view-tabs button[aria-selected="true"] {
  color: var(--primary-strong);
  background: var(--paper);
  box-shadow: 0 3px 10px rgba(15, 27, 45, 0.09);
}

.cv-density-control {
  display: grid;
  gap: 3px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.cv-density-control select {
  min-width: 126px;
  padding: 0 32px 0 11px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  text-transform: none;
}

.cv-studio-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: 18px;
}

.cv-editor-v3 {
  display: grid;
  gap: 0;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 17px !important;
  box-shadow: 0 18px 48px rgba(15, 27, 45, 0.1) !important;
}

.cv-editor-v3-heading,
.cv-form-section,
.cv-editor-v3-actions {
  padding: 21px 22px;
}

.cv-editor-v3-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.cv-editor-v3-heading h2,
.cv-form-section-heading h3 {
  margin: 3px 0 0;
  color: var(--ink);
  line-height: 1.2;
}

.cv-editor-v3-heading h2 {
  font-size: 21px;
}

.cv-save-state {
  max-width: 140px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

.cv-validation-summary {
  margin: 16px 22px 0;
  padding: 12px 14px;
  border: 1px solid #f1a7a7;
  border-radius: 11px;
  color: #9f1c1c;
  background: #fff2f2;
  font-size: 13px;
  line-height: 1.5;
}

.cv-form-section + .cv-form-section {
  border-top: 1px solid var(--line);
}

.cv-form-section {
  display: grid;
  gap: 14px;
}

.cv-form-section-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin-bottom: 2px;
}

.cv-form-section-heading-action {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.cv-form-section-heading h3 {
  font-size: 17px;
}

.cv-form-section-heading p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.cv-form-step {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line));
  border-radius: 10px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 9%, var(--paper));
  font-size: 13px;
  font-weight: 850;
}

.cv-editor-v3 label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.35;
}

.cv-editor-v3 label b {
  color: var(--primary);
}

.cv-editor-v3 input,
.cv-editor-v3 textarea,
.cv-editor-v3 select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}


html[data-text-size="large"] .cv-editor-v3 label {
  font-size: 14px;
}

html[data-text-size="large"] .cv-editor-v3 input,
html[data-text-size="large"] .cv-editor-v3 textarea,
html[data-text-size="large"] .cv-editor-v3 select {
  font-size: 16px;
}

html[data-text-size="large"] .cv-editor-v3-heading h2 {
  font-size: 23px;
}

html[data-text-size="large"] .cv-form-section-heading h3 {
  font-size: 19px;
}

html[data-text-size="large"] .cv-form-section-heading p,
html[data-text-size="large"] .cv-summary-tools > span,
html[data-text-size="large"] .cv-save-state,
html[data-text-size="large"] .cv-view-tabs button,
html[data-text-size="large"] .cv-density-control select {
  font-size: 13.5px;
}
.cv-editor-v3 textarea {
  min-height: 108px;
  resize: vertical;
}

.cv-editor-v3 input:focus,
.cv-editor-v3 textarea:focus,
.cv-editor-v3 select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}

.cv-editor-v3 [aria-invalid="true"] {
  border-color: #c53030 !important;
}

.cv-field-grid {
  display: grid;
  gap: 12px;
}

.cv-field-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cv-summary-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -6px;
}

.cv-summary-tools > span {
  color: var(--ink-muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.cv-add-entry {
  align-self: start;
  min-height: 44px;
}

.cv-repeater-list {
  display: grid;
  gap: 11px;
}

.cv-repeater-card {
  display: grid;
  gap: 11px;
  padding: 14px;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-soft) 66%, var(--paper));
}

.cv-repeater-empty {
  margin: 0;
}

.cv-repeater-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cv-repeater-card-heading strong {
  font-size: 13px;
}

.cv-remove-entry {
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #a12626;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.cv-remove-entry:hover {
  border-color: #efb4b4;
  background: #fff1f1;
}

.cv-editor-v3-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 68%, var(--paper));
}

.cv-editor-v3-actions .chip {
  min-height: 46px;
  justify-content: center;
}
.cv-editor-v3-actions .chip,
.cv-mobile-actions .chip {
  white-space: normal !important;
  text-align: center;
}


.cv-danger-quiet {
  color: #9f1c1c !important;
}

.cv-preview-pane-v3 {
  position: sticky;
  top: 82px;
  min-width: 0;
}

.cv-page-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 9px;
  color: var(--ink-muted);
  font-size: 11.5px;
  font-weight: 650;
}

.cv-resume-v3 {
  box-sizing: border-box;
  width: 100%;
  min-height: min(74vw, 960px);
  padding: clamp(28px, 4.2vw, 58px);
  overflow: hidden;
  border: 1px solid #CCD4E3;
  border-radius: 7px;
  color: var(--night-2);
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 27, 45, 0.16);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.48;
  text-align: left;
}

.cv-resume-header {
  padding-bottom: 17px;
  border-bottom: 3px solid #2F5AA4;
}

.cv-resume-header h2 {
  margin: 0;
  color: #151C28;
  font-size: clamp(26px, 3.2vw, 39px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.cv-resume-header > p {
  margin: 6px 0 10px;
  color: var(--primary);
  font-size: 17px;
  font-weight: 750;
}

.cv-resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 13px;
  color: #45546D;
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.cv-resume-contact a {
  color: inherit;
  text-decoration: none;
}

.cv-resume-section {
  margin-top: 20px;
}

.cv-resume-section > h3 {
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #CBD3E2;
  color: #151C28;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.cv-resume-section p,
.cv-resume-section ul {
  margin-top: 0;
  margin-bottom: 0;
}

.cv-resume-inline-list {
  color: #2C3A51;
  font-weight: 650;
}

.cv-resume-entry {
  margin-bottom: 14px;
}

.cv-resume-entry:last-child {
  margin-bottom: 0;
}

.cv-resume-entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.cv-resume-entry-head h4,
.cv-resume-entry-title {
  margin: 0;
  color: #1B2332;
  font-size: 14px;
  line-height: 1.35;
}

.cv-resume-entry-head span {
  flex: 0 0 auto;
  color: #52617A;
  font-size: 11.5px;
  font-weight: 650;
  text-align: right;
}

.cv-resume-entry-meta {
  margin: 2px 0 5px !important;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
}

.cv-resume-entry-detail {
  white-space: pre-line;
}

.cv-resume-project-link {
  display: inline-block;
  margin: 2px 0 5px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cv-resume-entry ul {
  padding-left: 18px;
}

.cv-resume-entry li + li {
  margin-top: 3px;
}

.cv-resume-v3[data-density="compact"] {
  padding: clamp(24px, 3.6vw, 48px);
  font-size: 12.5px;
  line-height: 1.39;
}

.cv-resume-v3[data-density="compact"] .cv-resume-header {
  padding-bottom: 12px;
}

.cv-resume-v3[data-density="compact"] .cv-resume-section {
  margin-top: 14px;
}

.cv-resume-v3[data-density="compact"] .cv-resume-entry {
  margin-bottom: 9px;
}

.cv-mobile-actions {
  display: none;
}

@media screen and (min-width: 961px) {
  .cv-view-tabs {
    display: none;
  }
}

@media screen and (max-width: 960px) {
  .cv-studio-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cv-studio-toolbar {
    align-items: flex-start;
  }

  .cv-studio-toolbar-actions {
    flex-direction: column;
    align-items: flex-end;
  }

  .cv-preview-pane-v3 {
    position: static;
  }

  .cv-studio[data-mobile-view="edit"] .cv-preview-pane-v3,
  .cv-studio[data-mobile-view="preview"] .cv-editor-v3 {
    display: none;
  }

  .cv-mobile-actions {
    position: sticky;
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 25;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 8px;
    margin: 14px 8px 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--paper) 93%, transparent);
    box-shadow: 0 15px 38px rgba(15, 27, 45, 0.18);
    backdrop-filter: blur(14px);
  }

  .cv-mobile-actions .chip {
    min-height: 46px;
    justify-content: center;
  }
}

@media screen and (max-width: 640px) {
  .cv-builder-intro h1 {
    font-size: clamp(2rem, 10vw, 2.5rem) !important;
  }

  .cv-studio-toolbar {
    display: grid;
    gap: 14px;
    padding: 14px;
  }

  .cv-studio-toolbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .cv-view-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv-field-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .cv-editor-v3-heading,
  .cv-form-section,
  .cv-editor-v3-actions {
    padding: 18px 15px;
  }

  .cv-editor-v3-heading {
    display: grid;
  }

  .cv-save-state {
    max-width: none;
    text-align: left;
  }

  .cv-form-section-heading-action {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .cv-form-section-heading-action .cv-add-entry {
    grid-column: 2;
    justify-self: start;
  }

  .cv-summary-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .cv-summary-tools .chip {
    width: 100%;
    justify-content: center;
  }

  .cv-editor-v3-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .cv-page-status {
    display: grid;
  }

  .cv-resume-v3 {
    min-height: 125vw;
    padding: 24px 20px;
  }

  .cv-resume-entry-head {
    display: grid;
    gap: 2px;
  }

  .cv-resume-entry-head span {
    text-align: left;
  }
}

@media screen and (max-width: 380px) {
  .cv-studio-toolbar-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .cv-density-control select {
    width: 100%;
  }

  .cv-mobile-actions {
    margin-inline: 0;
  }

  .cv-mobile-actions .chip {
    padding-inline: 8px;
    font-size: 12.5px;
  }
}

@page {
  size: A4 portrait;
  margin: 14mm 16mm 15mm;
}

@media print {
  html,
  body {
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--night-2) !important;
    background: #fff !important;
    font-size: 10pt !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body.clean-print .skip-link,
  body.clean-print .site-header,
  body.clean-print .site-footer,
  body.clean-print .breadcrumbs,
  body.clean-print .no-print,
  body.clean-print .cv-builder-legacy,
  body.clean-print .back-to-top,
  body.clean-print .menu-overlay,
  body.clean-print #saasAppModal {
    display: none !important;
  }

  body.clean-print main,
  body.clean-print .container,
  body.clean-print .article-content,
  body.clean-print .cv-builder-page,
  body.clean-print .cv-studio,
  body.clean-print .cv-studio-grid,
  body.clean-print .cv-preview-pane-v3 {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  body.clean-print #cvPreviewCardV3 {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--night-2) !important;
    background: #fff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 9.7pt !important;
    line-height: 1.4 !important;
  }

  body.clean-print .cv-resume-header h2 {
    font-size: 24pt !important;
  }

  body.clean-print .cv-resume-entry,
  body.clean-print .cv-resume-entry li {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  body.clean-print .cv-resume-section > h3,
  body.clean-print .cv-resume-entry-head {
    break-after: avoid-page;
    page-break-after: avoid;
  }

  body.clean-print p,
  body.clean-print li {
    orphans: 3;
    widows: 3;
  }
}

/* Sistema de ancho uniforme: accesos principales de la portada. */
.home-quick-nav {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch !important;
  gap: 0.75rem !important;
  width: min(1120px, calc(100% - 2rem));
  max-width: 1120px !important;
  margin: 2.5rem auto 3.5rem !important;
}

.home-quick-nav .chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  padding: 0.75rem 0.8rem !important;
  font-size: 0.85rem !important;
  line-height: 1.25;
  text-align: center;
}

@media screen and (max-width: 900px) {
  .home-quick-nav {
    display: flex !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding-bottom: 0.45rem;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
  }

  .home-quick-nav .chip {
    flex: 0 0 min(220px, 72vw);
    width: auto;
    scroll-snap-align: start;
  }
}

/* ── Trabajo freelance: guía + widget de gigs vivos ───────────────── */
.fl-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.fl-platform-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  background: var(--surface-soft, transparent);
}
.fl-platform-card ul {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}
.fl-platform-card a { font-weight: 700; }
.fl-cta-link { display: inline-block; font-weight: 700; }

.saas-job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.fl-gig-card { display: flex; flex-direction: column; gap: 0.6rem; }
.fl-gig-top { display: flex; gap: 0.75rem; align-items: flex-start; }
.fl-gig-mark {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface-raised, var(--line));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; color: var(--text-muted);
}
.fl-gig-company { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.fl-gig-card .saas-job-title { margin: 0.1rem 0 0; font-size: 1.02rem; line-height: 1.3; }
.fl-gig-meta { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.fl-gig-badge {
  display: inline-block;
  background: var(--surface-raised, rgba(95,107,102, 0.14));
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.75rem; font-weight: 700;
  color: var(--accent, inherit);
}
.fl-gig-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; }
.fl-gig-tags span {
  font-size: 0.72rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.05rem 0.45rem;
  color: var(--text-muted);
}
.fl-gig-footer {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; flex-wrap: wrap;
}
.fl-gig-footer small { color: var(--text-muted); font-size: 0.78rem; }
/* Mis ofertas: seguimiento local-first, sin cuenta ni backend. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.saved-nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  margin-left: 0.25rem;
  padding: 0 0.38rem;
  border-radius: 999px;
  color: var(--on-primary);
  background: var(--primary);
  font-size: 0.7rem;
  line-height: 1;
}

.save-job-btn {
  gap: 0.4rem;
  cursor: pointer;
}

.save-job-btn.is-saved {
  border-color: color-mix(in srgb, var(--ok) 58%, var(--line));
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 12%, var(--paper));
}

[data-theme="dark"] .save-job-btn.is-saved {
  color: var(--ok);
}

.saved-jobs-page {
  max-width: 1040px;
  margin-inline: auto;
}

.saved-jobs-hero {
  max-width: 820px;
  margin: 0 auto 2rem;
  text-align: center;
}

.saved-jobs-hero h1 {
  margin: 0.75rem 0;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 850;
  letter-spacing: -0.035em;
}

.saved-jobs-hero > p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.65;
}

.saved-jobs-privacy {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid color-mix(in srgb, var(--ok) 42%, var(--line));
  border-radius: 12px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--ok) 9%, var(--paper));
  text-align: left;
}

.saved-jobs-privacy .ui-icon {
  flex: 0 0 20px;
  color: var(--ok);
}

.saved-jobs-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  padding: 1.25rem;
}

.saved-jobs-toolbar > div:first-child {
  display: grid;
  gap: 0.25rem;
}

.saved-jobs-toolbar > div:first-child strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.saved-jobs-toolbar > div:first-child span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.saved-jobs-filter {
  display: grid;
  gap: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 760;
}

.saved-jobs-filter select,
.saved-job-fields select,
.saved-job-fields textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

.saved-jobs-toolbar-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.saved-jobs-toolbar-actions .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  cursor: pointer;
}

.saved-jobs-clear {
  margin-left: auto;
  color: #b42318;
}

.saved-jobs-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: normal;
  justify-items: stretch;
  align-content: start;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  padding: clamp(1.75rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
}

.saved-jobs-empty[hidden] {
  display: none;
}

.saved-jobs-empty-intro {
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  gap: 0.75rem;
}

.saved-jobs-empty-intro > .ui-icon {
  width: 36px;
  height: 36px;
  color: var(--primary);
}

.saved-jobs-empty-intro h2,
.saved-jobs-empty-intro p {
  margin: 0;
}

.saved-jobs-empty-intro p {
  max-width: 560px;
  color: var(--ink-soft);
}

.saved-jobs-empty-intro small {
  max-width: 620px;
  color: var(--ink-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.saved-jobs-empty-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.saved-jobs-empty-actions .chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
}

.saved-jobs-recommendations {
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.saved-jobs-recommendations-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.saved-jobs-recommendations-head span {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.saved-jobs-recommendations-head h3 {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-size: 1.15rem;
}

.saved-jobs-recommendations-head a {
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 780;
}

.saved-jobs-recommendations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.saved-jobs-recommendations-grid > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-soft);
  text-align: center;
}

.saved-job-recommendation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.saved-job-recommendation-company,
.saved-job-recommendation h4,
.saved-job-recommendation-meta {
  margin: 0;
}

.saved-job-recommendation-company {
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 780;
}

.saved-job-recommendation h4 {
  margin-top: 0.25rem;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.35;
}

.saved-job-recommendation-meta {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.45;
}

.saved-job-recommendation-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.9rem;
}

.saved-job-recommendation-actions .chip,
.saved-job-recommendation-actions .saas-apply-btn {
  min-height: 42px;
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
}

[data-saved-jobs-populated-only][hidden] {
  display: none !important;
}

.saved-jobs-list {
  display: grid;
  gap: 1rem;
}

.saved-job-card {
  display: grid;
  gap: 1rem;
  padding: 1.35rem !important;
}

.saved-job-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.saved-job-head h2,
.saved-job-company {
  margin: 0;
}

.saved-job-head h2 {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.3;
}

.saved-job-company {
  margin-bottom: 0.25rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 780;
}

.saved-job-status {
  flex: 0 0 auto;
  padding: 0.35rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 0.72rem;
  font-weight: 780;
}

.saved-job-status-applied { color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--paper)); }
.saved-job-status-interview { color: #3B6EC6; background: color-mix(in srgb, #7A9CD8 12%, var(--paper)); }
.saved-job-status-discarded { color: var(--amber-strong); background: color-mix(in srgb, var(--amber) 12%, var(--paper)); }

.saved-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.saved-job-meta span {
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 0.74rem;
  font-weight: 680;
}

.saved-job-fields {
  display: grid;
  grid-template-columns: minmax(160px, 0.34fr) minmax(260px, 1fr);
  gap: 0.8rem;
}

.saved-job-fields label {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 760;
}

.saved-job-fields textarea {
  min-height: 78px;
  resize: vertical;
  line-height: 1.45;
}

.saved-job-fields label small {
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 600;
  text-align: right;
}

.saved-job-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.saved-job-actions .chip {
  min-height: 46px;
  cursor: pointer;
}

.saved-job-availability {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.74rem;
  font-weight: 680;
}

.saved-job-availability.is-live { color: var(--ok); }
.saved-job-availability.is-closed { color: var(--amber-strong); }

.saved-jobs-filter-empty {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  background: var(--paper);
  text-align: center;
}

.saved-jobs-filter-empty p {
  margin: 0.4rem 0 0;
}

.saved-jobs-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.saved-jobs-help > div {
  display: grid;
  gap: 0.2rem;
}

.saved-jobs-help strong { color: var(--ink); }
.saved-jobs-help span { color: var(--ink-soft); font-size: 0.8rem; line-height: 1.45; }

@media screen and (max-width: 720px) {
  .saved-jobs-toolbar,
  .saved-job-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .saved-jobs-toolbar-actions,
  .saved-job-actions,
  .saved-jobs-help {
    align-items: stretch;
    flex-direction: column;
  }

  .saved-jobs-toolbar-actions .chip,
  .saved-job-actions > *,
  .saved-jobs-help .chip {
    width: 100%;
    justify-content: center;
  }

  .saved-jobs-clear { margin-left: 0; }

  .saved-jobs-recommendations-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen and (max-width: 420px) {
  .saved-jobs-privacy,
  .saved-job-head {
    align-items: flex-start;
  }

  .saved-job-head {
    flex-direction: column;
  }

  .saved-job-status { align-self: flex-start; }
  .saved-job-card { padding: 1rem !important; }

  .saved-jobs-empty-actions,
  .saved-job-recommendation-actions,
  .saved-jobs-recommendations-head {
    align-items: stretch;
    flex-direction: column;
  }

  .saved-jobs-empty-actions,
  .saved-jobs-empty-actions .chip,
  .saved-job-recommendation-actions > * {
    width: 100%;
  }

  .saved-jobs-empty-actions .chip,
  .saved-job-recommendation-actions > * {
    justify-content: center;
  }
}

/* Celular: iPhone hace zoom al enfocar un campo con letra menor a 16 px.
   Estos campos quedaban entre 12px-15.5px. Solo afecta a input, select y textarea. */
@media (max-width: 640px) {
  :is(input, select, textarea):is(.home-search-options select,
    #jobAlertsForm input,
    #jobAlertsForm select,
    .jobs-filter-grid input,
    .jobs-filter-grid select,
    .sim-setup-field select,
    .sim-field select,
    .cv-analyzer-text-field textarea,
    .cv-match-filters select,
    .cv-match-filters input,
    .cv-density-control select,
    .cv-editor-v3 input,
    .cv-editor-v3 textarea,
    #liveSalaryFilters input,
    #liveSalaryFilters select,
    .news-search-field input,
    #ux-tool-container select) { font-size: 16px; }
}
/* Casos que la regla anterior no alcanza: los campos dentro de los artículos
   tienen font-size con !important en .post-body, y el selector de alertas lo
   trae en línea (0.95rem). */
@media (max-width: 640px) {
  html body .post-body :is(input, select, textarea), html body #ux-tool-container :is(input, select, textarea), html body #alertCatSelect { font-size: 16px !important; }
}

/* ==========================================================================
   SISTEMA «EN LÍNEA» · CAPA FINAL (29-09-2026)
   Va al final a propósito: normaliza las capas anteriores sin reescribir las
   10.000 líneas históricas. Reglas en docs/SISTEMA-VISUAL.md:
   - superficies planas: borde de 1 px, sin sombras difusas ni degradados;
   - un botón principal (pino), uno de señal (verde, solo sobre oscuro),
     uno tranquilo (borde) y enlaces; alto mínimo 44 px;
   - radios en tokens: 8 / 10 / 14;
   - rótulos en frase normal: nada en MAYÚSCULAS espaciadas;
   - el punto verde «en línea» es la firma: se usa solo para estado vivo.
   ========================================================================== */

/* ---------- Base ---------- */
html body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas) !important;
  background-image: none !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

html main,
html main.container {
  background: none !important;
  box-shadow: none !important;
}

h1, h2, h3, h4, h5, h6,
.brand-wordmark,
button, .chip, input, select, textarea {
  font-family: var(--font);
}

h1, h2, h3 {
  font-stretch: 92%;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { letter-spacing: -0.022em; }

::selection {
  background: color-mix(in srgb, var(--signal) 45%, transparent);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--focus-ring) !important;
  outline-offset: 2px !important;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover { background: var(--ink-muted); }

.container {
  max-width: var(--shell);
  padding-inline: clamp(1rem, 3vw, 2rem);
}

/* Punto «en línea»: la firma de la marca. Estático: nada de pulsos. */
.tt-dot {
  display: inline-block;
  align-self: auto;
  margin-top: 0.42em;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 22%, transparent);
}

.is-delayed .tt-dot { background: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 22%, transparent); }

.saas-dot-pulse {
  animation: none !important;
  width: 8px !important;
  height: 8px !important;
  background: var(--signal) !important;
  box-shadow: none !important;
}

.tt-live {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.tt-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Botones ---------- */
.tt-btn,
html .chip,
html .copy-btn,
html .saas-apply-btn,
html .header-upload-cta,
html .drawer-upload-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.05rem;
  border-radius: var(--radius) !important;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none !important;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: none !important;
  background-image: none !important;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}

.tt-btn:active,
html .chip:active,
html .copy-btn:active,
html .saas-apply-btn:active { transform: translateY(1px); }

.tt-btn svg, html .chip svg, html .copy-btn svg { flex: 0 0 auto; width: 18px; height: 18px; }

/* Tranquilo: el secundario de todo el sitio */
.tt-btn-quiet,
html .chip,
html[data-theme] .chip,
html .copy-btn {
  background: var(--paper) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line-strong) !important;
}

html .chip:hover,
html[data-theme] .chip:hover,
.tt-btn-quiet:hover,
html .copy-btn:hover {
  background: var(--surface-soft) !important;
  border-color: var(--ink-muted) !important;
  color: var(--ink) !important;
  transform: none;
}

/* Principal: pino sólido */
.tt-btn-primary,
html .chip.active,
html[data-theme] .chip.active,
html[data-theme] .chip.active:hover,
html .saas-apply-btn,
html .header-upload-cta,
html .drawer-upload-cta {
  background: var(--primary) !important;
  color: var(--on-primary) !important;
  border: 1px solid var(--primary) !important;
}

.tt-btn-primary:hover,
html[data-theme] .chip.active:hover,
html .saas-apply-btn:hover,
html .header-upload-cta:hover,
html .drawer-upload-cta:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  color: var(--on-primary) !important;
}

html .chip.active svg, html .saas-apply-btn svg, html .header-upload-cta svg { color: currentColor; stroke: currentColor; }

/* Señal: verde «en línea», solo sobre superficies oscuras */
html .tt-btn-signal,
html #btnSubscribeAlerts.tt-btn-signal {
  background: var(--signal) !important;
  color: #1A1405 !important;
  border: 1px solid var(--signal) !important;
}
html .tt-btn-signal:hover,
html #btnSubscribeAlerts.tt-btn-signal:is(:hover, :focus-visible, :active) { background: #EBC677 !important; border-color: #EBC677 !important; color: #1A1405 !important; }

.tt-btn-block { width: 100%; min-height: 52px; font-size: 1rem; }

.tt-link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.tt-more { margin-top: 1.75rem; text-align: center; }

/* ---------- Campos ---------- */
html input[type="text"],
html input[type="email"],
html input[type="search"],
html input[type="number"],
html input[type="url"],
html input[type="tel"],
html select,
html textarea {
  min-height: 48px;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius) !important;
  background-color: var(--paper) !important;
  color: var(--ink) !important;
  font-family: var(--font);
  box-shadow: none !important;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}

html textarea { min-height: 96px; }

html input:hover:not(:disabled),
html select:hover:not(:disabled),
html textarea:hover:not(:disabled) { border-color: var(--ink-muted) !important; }

html input:focus,
html select:focus,
html textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent) !important;
  outline: none !important;
}

html input::placeholder, html textarea::placeholder { color: var(--ink-muted); opacity: 1; }

html input[type="checkbox"], html input[type="radio"] { accent-color: var(--primary); }

.tt-range, html input[type="range"] { accent-color: var(--primary); width: 100%; }

/* ---------- Cabecera ---------- */
html .site-header,
html .platform-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html .header-inner { min-height: 64px; gap: 1rem; }

html .brand-symbol,
html .footer-brand .brand-symbol {
  width: 34px !important;
  height: 34px !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
}

html .brand-symbol svg, html .brand-mark-svg { width: 100% !important; height: 100% !important; display: block; }

html .brand, html .logo.brand, html .footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none !important; }

html .brand-wordmark {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  font-stretch: 88%;
  letter-spacing: -0.025em !important;
  color: var(--ink) !important;
  line-height: 1;
}

html .brand-wordmark span {
  color: var(--primary);
  font-weight: 500;
}

html .desktop-nav .nav-direct-link,
html .desktop-nav .nav-menu-trigger {
  min-height: 40px;
  padding: 0.45rem 0.8rem !important;
  border: 0 !important;
  border-radius: var(--r-sm) !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink-soft) !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
}

html .desktop-nav .nav-direct-link:hover,
html .desktop-nav .nav-menu-trigger:hover,
html .desktop-nav .nav-menu-trigger[aria-expanded="true"] {
  background: var(--surface-soft) !important;
  color: var(--ink) !important;
}

html .desktop-nav .nav-direct-link.active,
html .desktop-nav .nav-menu-trigger.active {
  background: transparent !important;
  color: var(--ink) !important;
  box-shadow: inset 0 -2px 0 var(--primary) !important;
  border-radius: 0 !important;
}

html .nav-chevron { stroke: currentColor; fill: none; stroke-width: 2; }

html .nav-menu-panel {
  background: var(--paper) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-pop) !important;
  backdrop-filter: none !important;
  padding: 0.5rem !important;
}

html .nav-menu-panel .nav-menu-label,
html .platform-header .nav-menu-label {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--ink-muted) !important;
  padding: 0.5rem 0.75rem 0.25rem !important;
}

html .nav-menu-panel a {
  border-radius: var(--r-sm) !important;
  color: var(--ink) !important;
}

html .nav-menu-panel a:hover,
html .nav-menu-panel a[aria-current="page"] { background: var(--surface-soft) !important; }

html .nav-menu-panel a svg { color: var(--primary) !important; }
html .nav-menu-panel a small { color: var(--ink-muted) !important; }

html .header-upload-cta { min-height: 40px; padding: 0.5rem 0.9rem; font-size: 0.9375rem; }

html .icon-button,
html .text-size-control {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: var(--paper) !important;
  box-shadow: none !important;
  color: var(--ink) !important;
}

html .icon-button { min-width: 40px; min-height: 40px; }
html .icon-button:hover { background: var(--surface-soft) !important; }

html .text-size-control button {
  min-height: 38px;
  background: transparent !important;
  color: var(--ink-soft) !important;
  font-weight: 600;
  box-shadow: none !important;
}

html .text-size-control button[aria-pressed="true"] {
  background: var(--surface-soft) !important;
  color: var(--ink) !important;
}

/* ---------- Menú móvil ---------- */
html .menu-overlay {
  background: rgba(15, 27, 45, 0.45) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html .menu-drawer {
  background: var(--paper) !important;
  border-left: 1px solid var(--line) !important;
  box-shadow: none !important;
}

html .menu-drawer-head { border-bottom: 1px solid var(--line) !important; }

html .menu-section-kicker {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--ink-muted) !important;
}

html .menu-nav a:not(.drawer-upload-cta) {
  border-radius: var(--r-sm) !important;
  color: var(--ink) !important;
  font-weight: 600;
}

html .menu-nav a:not(.drawer-upload-cta):hover,
html .menu-nav a[aria-current="page"] { background: var(--surface-soft) !important; }

html .menu-nav a svg { color: var(--primary); }

/* ---------- Portada: hero ---------- */
.tt-hero {
  display: grid;
  gap: 1.75rem;
  padding: 1.5rem 0 1.5rem;
  text-align: left;
}

.tt-hero-intro h1 {
  margin: 1rem 0 1.1rem !important;
  max-width: 17ch;
  font-size: clamp(2rem, 3.9vw, 3.35rem) !important;
  line-height: 1.04 !important;
}

.tt-hero-lead {
  max-width: 36em;
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.tt-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.tt-facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.tt-facts li::before {
  content: "";
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: var(--primary);
}

.tt-console {
  position: relative;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  text-align: left;
}

.tt-console-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-bottom: 1rem;
}

.tt-console-head h2 { margin: 0; font-size: 1.35rem; }
.tt-console-head p { margin: 0; font-size: 0.9375rem; color: var(--ink-muted); }

html .tt-console .home-match-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 1rem;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  box-shadow: none;
}

html .tt-console .home-match-mode-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink-soft) !important;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}

html .tt-console .home-match-mode-switch button.active,
html .tt-console .home-match-mode-switch button[aria-selected="true"] {
  background: var(--paper) !important;
  border-color: var(--line-strong) !important;
  color: var(--ink) !important;
}

html .tt-console .home-match-mode-switch svg { width: 18px; height: 18px; }

html .tt-console .home-cv-dropzone {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  min-height: 0 !important;
  padding: 1rem 1.1rem !important;
  border: 1.5px dashed var(--line-strong) !important;
  border-radius: 12px !important;
  background: var(--canvas) !important;
  box-shadow: none !important;
  text-align: left !important;
  cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}

html .tt-console .home-cv-dropzone:hover,
html .tt-console .home-cv-dropzone.is-dragover { border-color: var(--primary) !important; background: var(--primary-soft) !important; }

html .tt-console .home-cv-dropzone-icon {
  display: grid;
  place-items: center;
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  background: var(--primary-soft) !important;
  color: var(--primary) !important;
}

html .tt-console .home-cv-dropzone-icon svg { width: 22px !important; height: 22px !important; stroke: currentColor !important; }
html .tt-console .home-cv-dropzone-copy strong { display: block; font-size: 0.9875rem; color: var(--ink); }
html .tt-console .home-cv-dropzone-copy small { display: block; font-size: 0.8125rem; color: var(--ink-muted); }
html .tt-console .home-cv-dropzone .chip { min-height: 40px; pointer-events: none; }

html .tt-console .home-match-status {
  margin: 0.6rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

html .tt-console .home-profile-label { display: block; margin-bottom: 0.4rem; font-weight: 600; color: var(--ink); }
html .tt-console .home-profession-input { width: 100%; padding-inline: 0.9rem; font-size: 1rem; }
html .tt-console .home-profile-suggestions-label { margin: 0.9rem 0 0.45rem; font-size: 0.8125rem; font-weight: 600; color: var(--ink-muted); text-transform: none; letter-spacing: 0; }

html .tt-console .home-role-selector {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

html .tt-console .home-role-selector .chip {
  justify-content: flex-start;
  min-width: 0;
  min-height: 46px;
  white-space: normal !important;
  overflow-wrap: anywhere;
  text-align: left;
}

html .tt-console .home-role-selector .chip[aria-pressed="true"] {
  background: var(--primary-soft) !important;
  border-color: var(--primary) !important;
  color: var(--ink) !important;
}

html .tt-console .home-role-selector .chip svg { color: var(--primary); }

html .tt-console .home-search-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.1rem 0 0.75rem;
}

html .tt-console .home-search-options label { display: grid; gap: 0.35rem; font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
html .tt-console .home-search-options select { width: 100%; padding-inline: 0.8rem; font-size: 0.9375rem; }

html .tt-console .home-remember-profile {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

html .tt-console .home-remember-profile input { width: 18px; height: 18px; margin-top: 0.15rem; flex: 0 0 auto; }

/* Accesos rápidos: un riel, no cinco píldoras */
.tt-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0.5rem 0 0;
  border-block: 1px solid var(--line);
}

.tt-shortcuts a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.5rem 1.1rem;
  color: var(--ink) !important;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none !important;
}

.tt-shortcuts a:first-child { padding-left: 0; }
.tt-shortcuts a + a { border-left: 1px solid var(--line); }
.tt-shortcuts a svg { width: 18px; height: 18px; color: var(--primary); }
.tt-shortcuts a:hover span { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 1080px) {
  .tt-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: start;
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
    row-gap: 2.5rem;
    padding: 1.75rem 0 2rem;
  }
  .tt-hero-intro { padding-top: 0.5rem; }
  .tt-shortcuts, .tt-results { grid-column: 1 / -1; }
}

/* Resultados del buscador */
.tt-results { margin: 0; text-align: left; }

html .tt-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

html .tt-results-bar h3 { margin: 0; font-size: 1.4rem; }
html .tt-results .home-results-meta { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--ink-muted); }
html .tt-results .home-results-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; }
html .tt-results .home-live-pill { font-size: 0.8125rem; font-weight: 600; color: var(--ink-muted); background: none; border: 0; padding: 0; }
.tt-job-list { display: grid; gap: 0.75rem; }

html .home-match-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  box-shadow: none;
}

html .home-match-next-step strong { display: block; color: var(--ink); }
html .home-match-next-step span { display: block; font-size: 0.9rem; color: var(--ink-soft); }

.tt-hero.has-results .tt-hero-intro,
.tt-hero.has-results .tt-shortcuts { display: none; }

@media (min-width: 1120px) {
  .tt-hero.has-results {
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
    padding-top: 1.5rem;
  }
  .tt-hero.has-results .tt-console { grid-column: 1; grid-row: 1; position: sticky; top: 84px; padding: 1.1rem; }
  .tt-hero.has-results .tt-console-head h2 { font-size: 1.1rem; }
  .tt-hero.has-results .home-match-mode-switch { grid-template-columns: minmax(0, 1fr); }
  .tt-hero.has-results .home-search-options { grid-template-columns: minmax(0, 1fr); }
  .tt-hero.has-results .home-role-selector { grid-template-columns: minmax(0, 1fr) !important; }
  .tt-hero.has-results .tt-results { grid-column: 2; grid-row: 1; }
}

@media (max-width: 1119px) {
  .tt-hero.has-results .tt-console { display: none; }
  .tt-hero.has-results { padding-top: 1rem; }
}

/* ---------- Tarjeta de vacante ---------- */
html .saas-job-card,
html .home-job-card {
  padding: 1.1rem 1.25rem !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--paper) !important;
  box-shadow: none !important;
  background-image: none !important;
  transform: none !important;
}

html .saas-job-card:hover,
html .home-job-card:hover { border-color: var(--line-strong) !important; }

html .saas-job-title { color: var(--ink) !important; font-stretch: 92%; letter-spacing: -0.01em; }
html .saas-job-match {
  border-radius: 999px !important;
  background: var(--primary-soft) !important;
  color: var(--primary) !important;
  border: 0 !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

html .saas-salary-lbl,
html .home-job-card-compact .saas-salary-lbl { text-transform: none !important; letter-spacing: 0 !important; font-size: 0.8125rem !important; color: var(--ink-muted) !important; font-weight: 600 !important; }
html .saas-salary-val { color: var(--ink) !important; font-weight: 700 !important; font-size: 1.125rem !important; font-stretch: 92%; }
html .saas-job-card .saas-apply-btn,
html .home-job-card .saas-apply-btn { font-size: 0.9375rem !important; min-height: 44px; }

html .skill-tag {
  border-radius: 6px !important;
  background: var(--surface-soft) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink-soft) !important;
  font-weight: 600;
}

/* ---------- Secciones ---------- */
html .section-title {
  display: block;
  margin: 0 0 0.6rem;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem) !important;
  font-weight: 700 !important;
  line-height: 1.1;
  color: var(--ink) !important;
}

html .section-title svg { display: none; }

html .section-eyebrow,
html .home-metric-kicker,
html .home-match-method-label,
html .res-label,
html .tool-badge,
html .excel-badge,
html .footer-contact-label,
html .saas-score-lbl,
html .home-job-facts small,
html .cv-analyzer-divider,
html .cv-analysis-metric-label,
html .sim-welcome-status,
html .sim-live-badge,
html .sim-final-stats dt,
html .cv-density-control,
html .saved-jobs-recommendations-head span,
html th {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

html .section-eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--accent) !important;
}

html .home-section-lead,
html .section-heading-row p,
.tt-calc-head p {
  max-width: 44em;
  margin: 0;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

html .section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

html .salary-preview-section,
html .home-market-pulse {
  padding: 0 !important;
  border: 0 !important;
}

html .home-silo-grid,
html .home-faq-list,
html .home-tools-section .saas-tools-grid {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  overflow: visible !important;
}

html .salary-preview-section,
html .home-market-pulse,
html .home-silo-section,
html .home-explainer,
html .home-faq,
html .home-tools-section,
html .home-guides-section,
html .tt-calc,
html .tt-band {
  margin: 0 0 clamp(3.5rem, 7vw, 5.5rem) !important;
}

html .home-silo-section > .section-title,
html .home-faq > .section-title,
html .home-tools-section > .section-title,
html .home-guides-section > .section-title { margin-bottom: 0.5rem; }

html .home-silo-section > .home-section-lead,
html .home-tools-section > .home-section-lead { margin-bottom: 1.75rem; }

html .home-guides-section > .section-title { margin-bottom: 1.5rem; }

/* ---------- Franja oscura (boletín) ---------- */
.tt-band {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: 20px;
  background: #0F1B2D;
  color: #E6E3DC;
}

.tt-band h2 {
  margin: 0.9rem 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.08;
  color: #F6F4EF;
}

.tt-band-copy > p:not(.tt-live) { margin: 0; max-width: 34em; color: #C2CAD6; font-size: 1.0625rem; }
.tt-live-on-dark { color: #E6E3DC; }

.tt-alert-form { display: flex; flex-direction: column; gap: 0.9rem; }
.tt-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.tt-field { display: grid; gap: 0.35rem; }
.tt-field-label { font-size: 0.875rem; font-weight: 600; color: #D0CBC0; }

html .tt-band input[type="email"],
html .tt-band select {
  width: 100%;
  padding-inline: 0.9rem;
  background-color: #1A2740 !important;
  border-color: #3A4B6E !important;
  color: #F6F4EF !important;
  font-size: 1rem;
}

html .tt-band input::placeholder { color: #8E9AAE; }

html .tt-band input:focus,
html .tt-band select:focus {
  border-color: var(--signal) !important;
  box-shadow: 0 0 0 3px rgba(224, 180, 88, 0.25) !important;
}

html .tt-band select option { background: #1A2740; color: #F6F4EF; }

.tt-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #C2CAD6;
  cursor: pointer;
}

.tt-check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 0.1rem; accent-color: var(--signal) !important; }

.tt-alert-success {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--paper);
  font-weight: 600;
}

.tt-alert-success .tt-link-btn { display: block; margin-top: 0.5rem; }

.tt-band-note { margin: 1rem 0 0; font-size: 0.8125rem; color: #8E9AAE; }

html .tt-band :focus-visible { outline-color: var(--signal) !important; }

@media (min-width: 900px) {
  .tt-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 3rem; }
}

[data-theme="dark"] .tt-band { background: #16233B; border: 1px solid var(--line-strong); }

/* ---------- Calculadora ---------- */
html .tt-calc {
  max-width: none !important;
  padding: clamp(1.25rem, 3.5vw, 2.25rem) !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  background: var(--paper) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html .tt-calc::before, html .calc-box::before { display: none !important; }

.tt-calc-head { margin-bottom: 1.5rem; }
.tt-calc-head .section-title { margin-bottom: 0.4rem; }

html .tt-calc .calc-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 820px) {
  html .tt-calc .calc-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}

html .tt-calc .form-group label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.tt-calc-echo { color: var(--primary); font-weight: 700; }
.tt-calc-source { color: var(--ink-muted); font-weight: 500; font-size: 0.8125rem; }
html .tt-calc .form-group label.tt-calc-gap { margin-top: 1rem; }
.tt-calc-note { display: block; margin-top: 0.45rem; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-muted); }

html .tt-calc input[type="number"],
html .tt-calc select { width: 100%; padding-inline: 0.9rem; font-size: 1rem; }

html .tt-calc input[type="number"] { font-size: 1.125rem; font-weight: 600; }
.tt-range { margin-top: 0.75rem; }

html .tt-calc .preset-buttons { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 0.35rem !important; margin-top: 0.75rem; width: 100%; }
html .tt-calc .preset-buttons .btn-preset { min-width: 0; padding-inline: 0.2rem !important; white-space: nowrap; }

html .btn-preset {
  min-height: 40px;
  padding: 0.4rem 0.8rem !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--r-sm) !important;
  background: var(--paper) !important;
  color: var(--ink-soft) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  cursor: pointer;
}

html .btn-preset:hover { border-color: var(--ink-muted) !important; color: var(--ink) !important; }

html .btn-preset.active {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: var(--canvas) !important;
}

html .tt-calc .calc-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0 0 1.25rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  box-shadow: none;
}

html .tt-calc .res-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

html .tt-calc .res-item + .res-item { border-top: 1px solid var(--line) !important; }

html .tt-calc .res-label { font-size: 0.9375rem !important; font-weight: 600 !important; color: var(--ink-soft) !important; }
html .tt-calc .res-val { font-size: 1.25rem !important; font-weight: 700 !important; color: var(--ink) !important; font-variant-numeric: normal; }
html .tt-calc .res-val-minus { color: var(--amber) !important; }
html .tt-calc .res-item-main .res-val { font-size: clamp(1.6rem, 4vw, 2.1rem) !important; font-stretch: 90%; color: var(--primary) !important; }

@media (min-width: 820px) {
  html .tt-calc .calc-result { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html .tt-calc .res-item { flex-direction: column; justify-content: flex-end; gap: 0.2rem; padding: 1.1rem 1.25rem; }
  html .tt-calc .res-item + .res-item { border-top: 0 !important; border-left: 1px solid var(--line) !important; }
}

html .tt-calc .calc-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
html .tt-calc .calc-actions .tt-btn-primary { margin-left: auto; }

.tt-ai-box {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  overflow: hidden;
}

.tt-ai-box-head { padding: 1rem 1.25rem 0.5rem; }
.tt-ai-box-head h3 { margin: 0; font-size: 1.1rem; }
.tt-ai-box-head p { margin: 0.2rem 0 0; font-size: 0.8125rem; color: var(--ink-muted); }
.tt-ai-box-body { padding: 0.5rem 1.25rem 1.25rem; font-size: 0.9375rem; line-height: 1.7; color: var(--ink-soft); }

/* ---------- Sueldos publicados (filas de datos) ---------- */
html .salary-preview-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
  gap: 0 !important;
  border-top: 2px solid var(--ink);
}

html .salary-preview-card {
  padding: 1rem 1.25rem 1.1rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

html .salary-preview-card span { color: var(--ink-soft) !important; font-size: 0.9375rem; }
html .salary-preview-card strong { display: block; margin: 0.25rem 0; font-size: 1.35rem !important; font-stretch: 90%; color: var(--ink) !important; }
html .salary-preview-card small { color: var(--ink-muted) !important; }
html .salary-preview-card a { color: var(--primary) !important; }

html .data-disclaimer { display: block !important; margin-top: 0.9rem; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-muted) !important; }
html .data-disclaimer svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 0.3rem; }
html .data-disclaimer > * { display: inline !important; }

/* ---------- Cifras clave ---------- */
html .home-metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
  gap: 1.25rem 2.5rem !important;
}

html .home-metric-card {
  padding: 1.1rem 0 0 !important;
  border: 0 !important;
  border-top: 2px solid var(--ink) !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

html .home-metric-kicker { font-size: 0.875rem !important; font-weight: 600 !important; color: var(--ink-muted) !important; }
html .home-metric-card strong { display: block; margin: 0.3rem 0 0.4rem; font-size: clamp(1.6rem, 3vw, 2.1rem) !important; font-stretch: 88%; letter-spacing: -0.02em; color: var(--ink) !important; line-height: 1.1; }
html .home-metric-card p { margin: 0 0 0.6rem; color: var(--ink-soft) !important; }
html .home-metric-card a { font-weight: 600; color: var(--primary) !important; }

/* ---------- Rutas (filas con ícono) ---------- */
html .home-silo-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  border-top: 1px solid var(--line) !important;
}

html .home-silo-card {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 1rem;
  padding: 1.35rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

html .home-silo-card > * { grid-column: 2; }
html .home-silo-card > .home-silo-icon { grid-column: 1; grid-row: 1 / span 3; }

html .home-silo-icon {
  display: grid !important;
  place-items: center;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: var(--primary-soft) !important;
  color: var(--primary) !important;
  box-shadow: none !important;
}

html .home-silo-icon svg { width: 22px; height: 22px; }
html .home-silo-card h3 { margin: 0 0 0.25rem; font-size: 1.2rem; }
html .home-silo-card p { margin: 0 0 0.6rem; color: var(--ink-soft); }
html .home-silo-card nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
html .home-silo-card nav a { font-weight: 600; font-size: 0.9375rem; color: var(--primary) !important; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent); text-underline-offset: 4px; }
html .home-silo-card nav a:hover { text-decoration-color: currentColor; }

@media (min-width: 860px) {
  html .home-silo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 3rem !important; }
}

/* ---------- Explicación y preguntas ---------- */
html .home-explainer {
  display: grid !important;
  gap: 1rem 3rem;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

html .home-explainer-copy p { margin: 0 0 1rem; font-size: 1.0625rem; line-height: 1.7; color: var(--ink-soft); }
html .home-explainer-copy strong { color: var(--ink); }

@media (min-width: 960px) {
  html .home-explainer { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) !important; }
}

html .home-faq-list,
html .faq-list {
  border-top: 1px solid var(--line) !important;
  display: block !important;
}

html .home-faq-list details,
html .post-body details,
html .faq-list details {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

html .home-faq-list summary,
html .post-body details > summary {
  position: relative;
  display: block;
  padding: 1.1rem 2.5rem 1.1rem 0 !important;
  list-style: none;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink) !important;
  cursor: pointer;
}

html .home-faq-list summary::-webkit-details-marker,
html .post-body details > summary::-webkit-details-marker { display: none; }

html .home-faq-list summary::after,
html .post-body details > summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
  color: var(--primary);
  transition: transform .15s var(--ease);
}

html .home-faq-list details[open] summary::after,
html .post-body details[open] > summary::after {
  background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat;
}

html .home-faq-list details p { margin: 0 0 1.1rem !important; max-width: 60em; color: var(--ink-soft); }

/* ---------- Tarjetas de herramienta y guía ---------- */
html .saas-tools-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
  gap: 1rem !important;
}

html .saas-tool-card,
html .post-card,
html .tool-card,
html .jobs-directory-card,
html .saas-card-glass {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--paper) !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
}

html .saas-tool-card:hover,
html .post-card:hover { border-color: var(--line-strong) !important; }

html .jobs-directory-card::before { display: none !important; }

html .saas-tool-card { padding: 1.35rem !important; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
html .saas-tool-card h3 { margin: 0.9rem 0 0.35rem; font-size: 1.2rem; }
html .saas-tool-card p { margin: 0; color: var(--ink-soft); }

html .tool-icon-square {
  display: grid !important;
  place-items: center;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: var(--primary-soft) !important;
  color: var(--primary) !important;
  box-shadow: none !important;
  border: 0 !important;
}

html .tool-icon-square svg { width: 22px; height: 22px; stroke: currentColor; }

html .tool-card-action,
html .post-card-link {
  font-weight: 600 !important;
  color: var(--primary) !important;
  text-decoration: none !important;
}

html .tool-card-action:hover,
html .post-card-link:hover { text-decoration: underline !important; text-underline-offset: 4px; }

html .posts-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)) !important;
  gap: 1.25rem !important;
}

html .post-card { overflow: hidden; display: flex; flex-direction: column; }

html .post-img-wrapper {
  aspect-ratio: 16 / 9;
  height: auto !important;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft) !important;
  background-image: none !important;
}

html .post-img-wrapper::before,
html .post-img-wrapper::after { display: none !important; }

html .post-img-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }

html .post-card-body { padding: 1.1rem 1.2rem 1.25rem !important; display: flex; flex-direction: column; justify-content: space-between; gap: 0.9rem; flex: 1; }
html .post-card .post-meta { font-size: 0.8125rem; font-weight: 600; color: var(--ink-muted) !important; text-transform: none; letter-spacing: 0; }
html .post-card h3 { margin: 0.35rem 0 0.45rem; font-size: 1.125rem !important; line-height: 1.25; }
html .post-card h3 a { color: var(--ink) !important; text-decoration: none; }
html .post-card h3 a:hover { color: var(--primary) !important; }
html .post-card .post-excerpt { margin: 0; font-size: 0.9375rem; color: var(--ink-soft) !important; }

/* ---------- Catálogo y paginación ---------- */
.page-lead { margin: 0 0 1.75rem; font-size: 1.0625rem; color: var(--ink-soft); }

html .news-search-panel {
  margin: 0 0 2rem !important;
  padding: 1.25rem 1.35rem !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--paper) !important;
  box-shadow: none !important;
}

html .news-search-panel h2 { font-size: 1.25rem; margin: 0 0 0.25rem; }
html .news-search-field { border-radius: var(--radius) !important; box-shadow: none !important; }
html .news-search-result { border-radius: var(--r-sm) !important; box-shadow: none !important; }

html .pagination a,
html .pagination span,
html .pagination-bar a,
html .pagination-bar span {
  border-radius: var(--r-sm) !important;
  box-shadow: none !important;
  background-image: none !important;
}

html .pagination .active,
html .pagination-bar .active,
html .pagination [aria-current="page"],
html .pagination-bar [aria-current="page"] {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: var(--canvas) !important;
}

/* ---------- Artículo ---------- */
html .article-content {
  max-width: var(--reading-page);
  margin-inline: auto;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

html .article-content.tool-page,
html .article-content.catalog-page { max-width: var(--app-page); }

html .article-content { padding-top: 0.5rem !important; }

html .breadcrumbs {
  margin: 1.25rem 0 1rem !important;
  font-size: 0.875rem !important;
  color: var(--ink-muted) !important;
}

html .breadcrumbs a { color: var(--ink-soft) !important; text-decoration: none !important; }
html .breadcrumbs a:hover { color: var(--primary) !important; text-decoration: underline !important; }

html .article-content h1,
html .article-header h1 {
  margin: 0 0 1rem !important;
  font-size: clamp(2rem, 4.2vw, 3.1rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em !important;
}

html .article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0 0 1.5rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem !important;
  color: var(--ink-muted) !important;
}

html .article-meta-bar span { display: inline-flex; align-items: center; gap: 0.35rem; }
html .article-meta-bar svg { width: 15px; height: 15px; }

html .article-hero-img {
  width: 100%;
  height: auto;
  margin: 0 0 1.5rem !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
}

html .editorial-trust-card {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.85rem;
  margin: 0 0 2rem !important;
  padding: 1rem 1.1rem !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--surface-soft) !important;
  box-shadow: none !important;
}

html .editorial-trust-mark { width: 28px !important; height: 28px !important; background: none !important; box-shadow: none !important; padding: 0 !important; border: 0 !important; }
html .editorial-trust-card strong { color: var(--ink); font-size: 0.9375rem; }
html .editorial-trust-card p { margin: 0.2rem 0 0; font-size: 0.875rem; color: var(--ink-soft); }

html .post-body {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink-soft);
}

html .post-body p, html .post-body li { color: var(--ink-soft); }
html .post-body strong, html .post-body b { color: var(--ink); }

html .post-body h2 {
  margin: 2.4rem 0 0.8rem !important;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem) !important;
  line-height: 1.15 !important;
  color: var(--ink) !important;
  border: 0 !important;
  padding: 0 !important;
  background: none !important;
}

html .post-body h3 {
  margin: 1.9rem 0 0.6rem !important;
  font-size: clamp(1.2rem, 2vw, 1.4rem) !important;
  line-height: 1.2 !important;
  color: var(--ink) !important;
}

html .post-body h4 { margin: 1.4rem 0 0.5rem; font-size: 1.1rem; color: var(--ink) !important; }

html .post-body a:not(.chip):not(.tt-btn):not([class*="btn"]) {
  color: var(--primary) !important;
  text-decoration: underline !important;
  text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent) !important;
  text-underline-offset: 3px;
  font-weight: 600;
}

html .post-body a:not(.chip):not(.tt-btn):not([class*="btn"]):hover { text-decoration-color: currentColor !important; }

html .post-body blockquote {
  margin: 1.5rem 0 !important;
  padding: 0.25rem 0 0.25rem 1.1rem !important;
  border: 0 !important;
  border-left: 3px solid var(--primary) !important;
  border-radius: 0 !important;
  background: none !important;
  color: var(--ink) !important;
  font-size: 1.125rem;
}

html .post-body img { border-radius: var(--radius-lg); height: auto; max-width: 100%; }

html .post-body table {
  border-collapse: collapse;
  font-size: 0.9375rem;
}

html .post-body th {
  background: var(--surface-soft) !important;
  color: var(--ink) !important;
  font-weight: 600;
}

html .post-body th,
html .post-body td { border-color: var(--line) !important; }

html .post-body [style*="border-left"] { border-left-color: var(--primary) !important; }
html .post-body [style*="border:"],
html .post-body [style*="border: "] { border-color: var(--line) !important; }
html .post-body [style*="border-radius"] { border-radius: var(--radius) !important; }

html .takeaways-box,
html .author-box,
html .verdict-box,
html .highlight-box,
html[data-theme] .takeaways-box,
html[data-theme] .author-box,
html[data-theme] .verdict-box,
html[data-theme] .highlight-box {
  margin: 1.75rem 0 !important;
  padding: 1.1rem 1.25rem !important;
  border: 1px solid var(--line) !important;
  border-left: 4px solid var(--primary) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--surface-soft) !important;
  box-shadow: none !important;
}

html .post-body button,
html #ux-tool-container button,
html .post-body button[type="button"],
html .post-body button[id*="ux-btn"],
html .post-body input[type="submit"],
html .post-body input[type="button"] {
  min-width: 0;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--primary) !important;
  border-radius: var(--radius) !important;
  background: var(--primary) !important;
  background-image: none !important;
  color: var(--on-primary) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  transform: none !important;
}

html .post-body button:hover,
html #ux-tool-container button:hover { background: var(--primary-hover) !important; }

html #ux-tool-container,
html .ux-tool,
html .ux-result,
html #ux-result-box,
html .excel-template-box {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--paper) !important;
  background-image: none !important;
  box-shadow: none !important;
}

.article-next {
  margin: 3rem 0 0;
  padding-top: 1.75rem;
  border-top: 2px solid var(--ink);
}

.article-next h2 { margin: 0 0 0.5rem; font-size: 1.35rem; }

.article-next a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink) !important;
  text-decoration: none !important;
}

.article-next a > svg {
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
}

.article-next strong { display: block; font-size: 1rem; }
.article-next small { display: block; font-size: 0.875rem; color: var(--ink-muted); }
.article-next a:hover strong { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Páginas de herramienta: superficies comunes ---------- */
html .tool-page .saas-tool-card,
html .calc-box,
html .cv-analyzer-guide,
html .cv-coach-panel,
html .home-alerts-panel {
  background-image: none !important;
  box-shadow: none !important;
}

html .cv-analyzer-guide,
html .cv-coach-panel { background: var(--paper) !important; }

html .source-status-badge,
html .saas-hero-badge,
html .verified-badge {
  border-radius: 999px !important;
  background: var(--primary-soft) !important;
  border: 0 !important;
  color: var(--primary) !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

html .saas-modal-overlay {
  background: rgba(15, 27, 45, 0.5) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html .saas-modal-content {
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  background: var(--paper) !important;
  box-shadow: var(--shadow-pop) !important;
}

html .saas-score-circle { background: var(--primary-soft) !important; }
html #cvProgressBar { background: var(--primary) !important; }
html .cv-mobile-actions { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: var(--paper) !important; }

/* Simulador: sala oscura constante, en la tinta verdosa de la marca */
.simulator-page, .sim-room, #simStageWrapper {
  --sim-surface: #0F1B2D;
  --sim-tile: #16233B;
  --sim-frame: #080E1A;
  --sim-line: #26344F;
  --sim-line-soft: #1E2A42;
  --sim-text: #F2F5FA;
  --sim-text-soft: #AEB9CC;
  --sim-accent: #E0B458;
  --sim-good: #6FD39B;
  --sim-warn: #E8B45C;
  --sim-bad: #F2877E;
}

html .sim-room { background: var(--sim-surface) !important; background-image: none !important; }
html .sim-stage-frame { background: var(--sim-frame) !important; background-image: none !important; }
html .sim-progress-fill { background: var(--sim-accent) !important; }
html .sim-avatar-chip { background: var(--sim-accent) !important; color: #1A1405 !important; }
html #simWelcomeOverlay::before { display: none !important; }
html .simulator-page { box-shadow: none !important; }

/* ---------- Publicidad ---------- */
html .ad-reserved {
  border-radius: var(--radius-lg) !important;
  border-color: var(--line) !important;
}

/* ---------- Volver arriba ---------- */
html .back-to-top {
  right: 16px !important;
  bottom: 16px !important;
  min-height: 44px;
  padding: 0.5rem 0.85rem !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius) !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
  box-shadow: var(--shadow-pop) !important;
  font-weight: 600;
}

html .back-to-top:hover { background: var(--surface-soft) !important; }

/* ---------- Pie ---------- */
html .site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: 3rem 0 1.5rem !important;
  border-top: 0 !important;
  background: #0F1B2D !important;
  background-image: none !important;
  color: #C2CAD6 !important;
}

[data-theme="dark"] .site-footer { background: #070C16 !important; border-top: 1px solid var(--line) !important; }

html .site-footer .brand-wordmark { color: #F6F4EF !important; }
html .site-footer .brand-wordmark span { color: #E0B458; }
html .site-footer p { color: #C2CAD6 !important; }

html .footer-brand-panel,
html .footer-contact-card {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding-inline: 0 !important;
}

html .footer-contact-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
  padding: 1rem 0 0 !important;
  border-top: 1px solid #26344F !important;
  border-radius: 0 !important;
}

html .footer-contact-label { display: block; font-size: 0.8125rem !important; font-weight: 600 !important; color: #8E9AAE !important; }
html #emailHolder { color: #F6F4EF !important; font-weight: 600; }

html .site-footer .footer-copy-btn {
  min-height: 40px;
  background: transparent !important;
  border: 1px solid #3A4B6E !important;
  color: #F6F4EF !important;
}

html .site-footer .footer-copy-btn:hover { background: #1A2740 !important; border-color: #56688F !important; }

html .footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #F6F4EF !important;
}

html .footer-col a { color: #C2CAD6 !important; text-decoration: none !important; }
html .footer-col a:hover { color: #FFFFFF !important; text-decoration: underline !important; text-underline-offset: 4px; }

html .footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #26344F !important;
  font-size: 0.875rem;
}

html .footer-bottom p { margin: 0; color: #8E9AAE !important; }
html .footer-status { display: inline-flex; align-items: center; gap: 0.55rem; }

/* ---------- Tema oscuro: ajustes que los tokens no cubren ---------- */
[data-theme="dark"] .tt-console,
[data-theme="dark"] .tt-calc { background: var(--paper) !important; }
[data-theme="dark"] .tt-console .home-cv-dropzone { background: var(--surface-soft) !important; }
[data-theme="dark"] .btn-preset.active { background: var(--ink) !important; color: #0B1322 !important; }

/* ---------- 320 px ---------- */
@media (max-width: 560px) {
  .tt-hero { padding-top: 1.25rem; }
  .tt-hero-lead { font-size: 1.0313rem; }
  html .tt-console .home-cv-dropzone { grid-template-columns: auto minmax(0, 1fr); }
  html .tt-console .home-cv-dropzone .chip { grid-column: 1 / -1; width: 100%; }
  html .tt-console .home-search-options { grid-template-columns: minmax(0, 1fr); }
  html .tt-console .home-role-selector { grid-template-columns: minmax(0, 1fr); }
  .tt-shortcuts { display: grid; grid-template-columns: minmax(0, 1fr); }
  .tt-shortcuts a { padding-left: 0; }
  .tt-shortcuts a + a { border-left: 0; border-top: 1px solid var(--line); }
  html .tt-calc .calc-actions > * { flex: 1 1 100%; }
  html .tt-calc .calc-actions .tt-btn-primary { margin-left: 0; }
  html .home-silo-card { grid-template-columns: minmax(0, 1fr); }
  html .home-silo-card > .home-silo-icon { grid-row: auto; margin-bottom: 0.75rem; }
  html .home-silo-card > * { grid-column: 1; }
}

@media (max-width: 420px) {
  .tt-console { padding: 1rem; border-radius: 14px; }
  html .tt-console .home-match-mode-switch button { font-size: 0.875rem; padding-inline: 0.35rem; gap: 0.3rem; white-space: normal; line-height: 1.15; }
  html .tt-console .home-match-mode-switch button svg { display: none; }
  html .tt-console .home-cv-dropzone { grid-template-columns: minmax(0, 1fr); padding: 0.9rem !important; }
  html .tt-console .home-cv-dropzone-icon { display: none !important; }
  .tt-live { font-size: 0.875rem; }
  html .brand-wordmark { font-size: 1.15rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Introducción de páginas de herramienta: una sola forma ---------- */
html .tt-page-intro,
html .cv-analyzer-hero,
html .saved-jobs-hero,
html .sim-intro {
  max-width: 780px !important;
  margin: 0 0 2rem !important;
  padding: 0 !important;
  text-align: left !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

html .tt-page-intro h1,
html .cv-analyzer-hero h1,
html .saved-jobs-hero h1,
html .sim-intro h1,
html .tool-page > h1 {
  margin: 0.75rem 0 0.75rem !important;
  font-size: clamp(2rem, 4.2vw, 3rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.022em !important;
  text-align: left !important;
}

html .tt-page-intro > p,
html .cv-analyzer-hero > p,
html .saved-jobs-hero > p,
html .sim-intro > p {
  max-width: 40em;
  margin: 0 !important;
  font-size: 1.125rem !important;
  line-height: 1.55 !important;
  color: var(--ink-soft) !important;
  text-align: left !important;
}

html .saas-hero-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 0.6rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: var(--ink-soft) !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
}

html .saas-hero-badge .saas-dot-pulse {
  width: 9px !important;
  height: 9px !important;
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 22%, transparent) !important;
}

html .cv-analyzer-step { display: none !important; }

/* ---------- Casos puntuales medidos con el auditor de contraste ---------- */
/* La hoja A4 del CV es papel en cualquier tema: sus colores no siguen al oscuro. */
html .cv-resume-v3 {
  --primary: #1B3A6B;
  --primary-strong: #142D55;
  --accent: #1F7A55;
  --ink: #0F1B2D;
  --ink-soft: #3A4658;
  --ink-muted: #5B6677;
  --line: #DCD8CE;
  --paper: #FFFFFF;
  color-scheme: light;
}

html .sim-btn-primary,
html .sim-btn-primary:hover:not(:disabled) {
  background: var(--sim-accent) !important;
  border-color: var(--sim-accent) !important;
  color: #1A1405 !important;
}

html .sim-btn-primary .ui-icon { color: currentColor !important; }

[data-theme="dark"] .cv-remove-entry { color: var(--danger); }
[data-theme="dark"] .cv-remove-entry:hover { background: var(--danger-soft); border-color: var(--danger); }

html .header-upload-cta span,
html .drawer-upload-cta span { color: inherit !important; }

/* Los botones principales del simulador viven en la sala oscura: verde señal, texto tinta. */
html body #btnStartInterview,
html body #btnEvaluateAnswer,
html body #btnStartInterview:hover,
html body #btnEvaluateAnswer:hover {
  background: var(--sim-accent) !important;
  border-color: var(--sim-accent) !important;
  color: #1A1405 !important;
  box-shadow: none !important;
}

/* Sombras difusas residuales de capas anteriores. La hoja A4 del CV conserva la
   suya: es papel sobre la mesa, y ahí la sombra sí dice algo. */
html .ux-tool-container,
html #ux-tool-container,
html .saas-card-glass,
html .cv-studio-toolbar { box-shadow: none !important; }

/* Mis ofertas: a 768 px las tres recomendaciones dejaban el botón «Guardar» fuera
   de su tarjeta. La rejilla se ajusta al ancho y las acciones pueden bajar. */
html .saved-jobs-recommendations-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)) !important;
}
html .saved-job-recommendation-actions { flex-wrap: wrap !important; gap: 0.5rem !important; }
html .saved-job-recommendation-actions > * { flex: 1 1 auto; }

/* Herramientas de artículos con botones en rejilla (calendarios de 7 días): el
   relleno de botón normal los sacaba de la pantalla a 320 px. Ya pasaba antes
   del rediseño por una regla vieja con !important. */
html .post-body [style*="grid"] > button,
html #ux-tool-container [style*="grid"] > button {
  min-width: 0 !important;
  min-height: 40px;
  padding: 0.4rem 0.1rem !important;
  font-size: 0.875rem !important;
}

/* Tablas de los artículos: el scroll es de la tabla, no de la página. */
html .table-scroll {
  max-width: 100%;
  margin: 1.25rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
html .table-scroll > table { margin: 0 !important; }

/* ---------- Guía pilar: Ley de teletrabajo (Fase 2) ---------- */
.lex-page { max-width: 820px !important; }
.lex-section { margin: 0 0 clamp(2.5rem, 6vw, 3.75rem); }
.lex-section > h2 { margin: 0 0 1rem; font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.12; }

.lex-indice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0 0 2.25rem;
  padding: 0.85rem 0;
  border-block: 1px solid var(--line);
}
.lex-indice a { font-size: 0.9375rem; font-weight: 600; color: var(--ink) !important; text-decoration: none !important; }
.lex-indice a:hover { color: var(--primary) !important; text-decoration: underline !important; text-underline-offset: 4px; }

.lex-resumen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lex-resumen li { display: flex; flex-direction: column; gap: 0.35rem; padding-top: 0.9rem; border-top: 2px solid var(--ink); }
.lex-resumen strong { font-size: clamp(1.45rem, 3vw, 1.8rem); font-stretch: 88%; line-height: 1.05; letter-spacing: -0.02em; color: var(--primary); }
.lex-resumen span { color: var(--ink-soft); font-size: 0.9875rem; line-height: 1.5; }
.lex-resumen small { font-size: 0.8125rem; font-weight: 600; color: var(--ink-muted); }

.lex-tool {
  padding: clamp(1.1rem, 3.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
.lex-tool-head { margin-bottom: 0.75rem; }
.lex-tool-head h2 { margin: 0 0 0.4rem; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.15; }
.lex-tool-head p { margin: 0; color: var(--ink-soft); }

.lex-form { display: block; }
.lex-q { margin: 0; padding: 1rem 0; border: 0; border-bottom: 1px solid var(--line); min-width: 0; }
.lex-q legend { float: left; width: 100%; display: flex; gap: 0.65rem; align-items: baseline; padding: 0; margin: 0 0 0.7rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.lex-q legend + * { clear: both; }
.lex-q-num {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 700;
  transform: translateY(-1px);
}
.lex-opts { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-left: calc(24px + 0.65rem); }
.lex-opts-stack { flex-direction: column; align-items: stretch; }
.lex-opts label { position: relative; cursor: pointer; }
.lex-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lex-opts span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.lex-opts label:hover span { border-color: var(--ink-muted); }
.lex-opts input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.lex-opts input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.lex-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }

.lex-result {
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  color: var(--ink-soft);
}
.lex-result p, .lex-result ul, .lex-result ol { margin: 0 0 0.6rem; }
.lex-result ul, .lex-result ol { padding-left: 1.2rem; }
.lex-result li { margin-bottom: 0.45rem; }
.lex-result strong { color: var(--ink); }
.lex-result-titulo { font-size: 1.125rem; font-weight: 700; color: var(--ink) !important; }
.lex-ok { color: var(--ok) !important; }
.lex-alerta { color: var(--amber) !important; }

.lex-carta { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.lex-carta h3 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.lex-carta > p { margin: 0 0 1rem; color: var(--ink-soft); }
.lex-carta-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0.75rem 1rem; margin-bottom: 1rem; }
.tt-field-light { display: grid; gap: 0.35rem; min-width: 0; }
.tt-field-light > span { font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
html .tt-field-light input, html .tt-field-light textarea { width: 100%; padding: 0.7rem 0.85rem; font-size: 1rem; }
html .lex-carta-texto textarea { background-color: var(--surface-soft) !important; line-height: 1.55; font-size: 0.9375rem; }

.lex-prose h3 { margin: 2rem 0 0.6rem; font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.2; }
.lex-prose p { margin: 0 0 1rem; font-size: 1.0625rem; line-height: 1.7; color: var(--ink-soft); }
.lex-prose strong { color: var(--ink); }
.lex-art {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0 0.45rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-muted);
  white-space: nowrap;
}

.lex-fuentes ul { margin: 0 0 0.75rem; padding-left: 1.2rem; }
.lex-fuentes li { margin-bottom: 0.4rem; }
.lex-fuentes a { color: var(--primary) !important; font-weight: 600; }
.lex-nota { font-size: 0.875rem; color: var(--ink-muted); }

@media (max-width: 480px) {
  .lex-opts { padding-left: 0; }
  .lex-opts:not(.lex-opts-stack) label { flex: 1 1 0; }
  .lex-opts:not(.lex-opts-stack) span { justify-content: center; padding-inline: 0.5rem; }
  .lex-actions > * { flex: 1 1 100%; }
}

/* ---------- Guía «Teletrabajo part time» ---------- */
.pt-ofertas { margin: 0.5rem 0 0; }
.pt-lista { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pt-lista li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.pt-lista li > div { min-width: 0; }
.pt-lista strong { display: block; color: var(--ink); font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.pt-lista span { display: block; margin-top: 0.15rem; font-size: 0.875rem; color: var(--ink-muted); }
.pt-lista .tt-btn { flex: 0 0 auto; min-height: 40px; }

.pt-busquedas-titulo { margin: 1.75rem 0 0.2rem; font-size: 1.15rem; }
.pt-busquedas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 0.6rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.pt-busquedas a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 0.75rem;
  min-height: 64px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink) !important;
  text-decoration: none !important;
  transition: border-color .15s var(--ease);
}
.pt-busquedas a:hover { border-color: var(--primary); }
.pt-busquedas strong { grid-column: 1; font-size: 0.975rem; }
.pt-busquedas span { grid-column: 1; font-size: 0.8125rem; color: var(--ink-muted); }
.pt-busquedas svg { grid-column: 2; grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--primary); }

.pt-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1rem; }
.pt-form .lex-q, .pt-form .lex-actions { grid-column: 1 / -1; }
.pt-form .lex-q { padding-bottom: 0.25rem; }

@media (max-width: 560px) {
  .pt-form { grid-template-columns: minmax(0, 1fr); }
  .pt-lista li { flex-direction: column; align-items: stretch; }
  .pt-lista .tt-btn { width: 100%; }
}

/* ---------- Firma real (29-09-2026) ---------- */
html .tt-page-intro > p.guia-autor {
  margin-top: 0.75rem !important;
  font-size: 0.9375rem !important;
  color: var(--ink-muted) !important;
}
html .tt-page-intro > p.guia-autor strong { color: var(--ink); }

html .post-body .autor-card {
  display: flex !important;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 0.75rem !important;
  padding: 1rem 1.2rem !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--surface-soft) !important;
}
html .post-body .autor-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
html .post-body .autor-card p { margin: 0 !important; }
html .post-body .autor-nombre { font-weight: 700; color: var(--ink) !important; font-size: 1.0625rem; }
html .post-body .autor-cargo { font-size: 0.875rem; color: var(--ink-muted) !important; line-height: 1.45; }

/* Tarjeta «Revisado»: artículos corregidos contra fuentes oficiales (29-09-2026). */
html .editorial-trust-card.is-revisado {
  border-color: color-mix(in srgb, var(--ok) 38%, var(--line)) !important;
  background: color-mix(in srgb, var(--ok) 6%, var(--paper)) !important;
}
html .editorial-trust-card .revision-mark { color: var(--ok); }
html .editorial-trust-card .revision-mark svg { width: 24px; height: 24px; }
html .editorial-trust-card .revision-etiqueta { font-weight: 700; color: var(--ink); }
html .editorial-trust-card .revision-fuentes { margin-top: 0.45rem; overflow-wrap: anywhere; }
html .editorial-trust-card .revision-fuentes a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 480px) {
  html .editorial-trust-card.is-revisado { grid-template-columns: minmax(0, 1fr) !important; }
  html .editorial-trust-card.is-revisado .revision-mark { display: none; }
}

/* =====================================================================
   SECCIONES · 02-10-2026
   Un color por sección (ofertas falsas, buscar, derechos, cobrar): juntos
   forman la franja bajo la cabecera. Revisor de ofertas, páginas madre,
   buscador de portales y menú por sección.
   ===================================================================== */
:root {
  --sec-falsas: #A9471F;
  --sec-falsas-fill: #D9693A;
  --sec-falsas-soft: #F8E7DD;
  --sec-buscar: #2B579E;
  --sec-buscar-fill: #3E6FC2;
  --sec-buscar-soft: #E3EAF6;
  --sec-derechos: #1E6B66;
  --sec-derechos-fill: #2E8C84;
  --sec-derechos-soft: #DDEFEC;
  --sec-cobrar: #7E5B0C;
  --sec-cobrar-fill: #D9A441;
  --sec-cobrar-soft: #F5ECD6;
  --sec: var(--primary);
  --sec-fill: var(--primary);
  --sec-soft: var(--primary-soft);
}
[data-theme="dark"] {
  --sec-falsas: #F29B73;
  --sec-falsas-fill: #E07A4B;
  --sec-falsas-soft: #2E1C14;
  --sec-buscar: #93B6F2;
  --sec-buscar-fill: #5F8EDB;
  --sec-buscar-soft: #142139;
  --sec-derechos: #74CFC6;
  --sec-derechos-fill: #3FA79D;
  --sec-derechos-soft: #10282A;
  --sec-cobrar: #E8BE62;
  --sec-cobrar-fill: #D9A441;
  --sec-cobrar-soft: #2A2213;
}
[data-seccion="falsas"] { --sec: var(--sec-falsas); --sec-fill: var(--sec-falsas-fill); --sec-soft: var(--sec-falsas-soft); }
[data-seccion="buscar"] { --sec: var(--sec-buscar); --sec-fill: var(--sec-buscar-fill); --sec-soft: var(--sec-buscar-soft); }
[data-seccion="derechos"] { --sec: var(--sec-derechos); --sec-fill: var(--sec-derechos-fill); --sec-soft: var(--sec-derechos-soft); }
[data-seccion="cobrar"] { --sec: var(--sec-cobrar); --sec-fill: var(--sec-cobrar-fill); --sec-soft: var(--sec-cobrar-soft); }

/* Franja de las cuatro secciones bajo la cabecera */
html .site-header.platform-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg,
    var(--sec-falsas-fill) 0 25%, var(--sec-buscar-fill) 25% 50%,
    var(--sec-derechos-fill) 50% 75%, var(--sec-cobrar-fill) 75% 100%);
  pointer-events: none;
}

/* Menú: cada grupo marca su sección con una barra corta al estar activo o abierto */
html .nav-menu-item[data-seccion] > .nav-menu-trigger { position: relative; }
html .nav-menu-item[data-seccion] > .nav-menu-trigger.active,
html .nav-menu-item[data-seccion] > .nav-menu-trigger[aria-expanded="true"] { color: var(--ink) !important; }
html .nav-menu-item[data-seccion] > .nav-menu-trigger.active::after,
html .nav-menu-item[data-seccion] > .nav-menu-trigger[aria-expanded="true"]::after {
  content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 2px; height: 3px; border-radius: 2px; background: var(--sec-fill);
}
html .nav-menu-item[data-seccion] .nav-menu-panel a svg { color: var(--sec) !important; stroke: var(--sec) !important; }
html .menu-section[data-seccion] .menu-section-kicker { color: var(--sec) !important; }
html .menu-section[data-seccion] a svg { color: var(--sec) !important; stroke: var(--sec) !important; }
html .header-revisar-cta svg { width: 17px; height: 17px; }

/* Migas y «sigue con esto» de los artículos toman el color de su sección */
html .article-content[data-seccion] .breadcrumbs a[href^="/"]:not([href="/"]) { color: var(--sec) !important; font-weight: 600; }
html .article-content[data-seccion] .article-next a > svg { color: var(--sec); stroke: var(--sec); }
html .article-next a.article-next-seccion { border-color: color-mix(in srgb, var(--sec) 40%, var(--line)); background: var(--sec-soft); }
html .article-next a.article-next-falsas > svg { color: var(--sec-falsas) !important; stroke: var(--sec-falsas) !important; }

/* ---------- Páginas de sección ---------- */
html .article-content.seccion-page { max-width: var(--app-page); }
html .seccion-page .breadcrumbs { margin: 0.75rem 0 0.5rem !important; }
html .seccion-page .breadcrumbs span:last-child { color: var(--sec); font-weight: 600; }
html .revisor-head { margin: 0 0 1rem; }
html .revisor-head h1 { margin: 0 0 0.4rem !important; font-size: clamp(1.9rem, 3.6vw, 2.75rem) !important; max-width: 24ch; }
html .revisor-lead { margin: 0; max-width: 70ch; font-size: 1.0625rem; color: var(--ink-soft); line-height: 1.5; }

/* Revisor: el campo arriba, el resultado debajo */
html .revisor,
html .buscador-portales {
  margin: 0 0 1.5rem;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sec-fill);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
html .revisor-label { display: block; margin: 0 0 0.4rem; font-weight: 700; font-size: 0.9375rem; color: var(--ink); }
html .revisor-texto,
html .buscador-campo {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
}
html .revisor-texto { min-height: 132px; resize: vertical; }
html .revisor-texto:focus,
html .buscador-campo:focus { outline: none; border-color: var(--sec); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sec) 22%, transparent); background: var(--paper); }
html .revisor-preguntas { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 0; }
html .revisor-pregunta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 40px; padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--paper); color: var(--ink-soft);
  font-size: 0.9rem; line-height: 1.25; cursor: pointer;
}
html .revisor-pregunta input { width: 18px; height: 18px; margin: 0; accent-color: var(--sec); }
html .revisor-pregunta:has(input:checked) { border-color: var(--sec); background: var(--sec-soft); color: var(--ink); font-weight: 600; }
html .revisor-acciones { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }

html .revisor-resultado { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
html .revisor-resultado:focus { outline: none; }
html .revisor-marcador { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; }
html .revisor-cifra { margin: 0; display: flex; align-items: baseline; gap: 0.5rem; }
html .revisor-cifra strong { font-size: clamp(3rem, 7vw, 4.25rem); line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
html .revisor-cifra span { font-size: 1rem; color: var(--ink-muted); }
html .revisor-nivel { margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 700; }
html .revisor-resultado[data-nivel="alto"] .revisor-cifra strong,
html .revisor-resultado[data-nivel="alto"] .revisor-nivel { color: var(--sec-falsas); }
html .revisor-resultado[data-nivel="medio"] .revisor-cifra strong,
html .revisor-resultado[data-nivel="medio"] .revisor-nivel { color: var(--sec-cobrar); }
html .revisor-resultado[data-nivel="bajo"] .revisor-cifra strong,
html .revisor-resultado[data-nivel="bajo"] .revisor-nivel { color: var(--ok); }

/* Barra por segmentos: uno por señal revisada */
html .revisor-barra { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin: 0.9rem 0 0.75rem; padding: 0; list-style: none; }
html .revisor-barra li {
  height: 10px; border-radius: 3px; background: var(--surface-sunk);
  transform: scaleY(0.6); transform-origin: bottom;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
html .revisor-barra li.es-limpia { background: color-mix(in srgb, var(--ok) 55%, var(--surface-sunk)); transform: none; }
html .revisor-barra li.es-alerta { background: var(--sec-cobrar-fill); transform: none; }
html .revisor-barra li.es-fuerte { background: var(--sec-falsas-fill); transform: none; }
html .revisor-resumen { margin: 0 0 0.75rem; font-size: 1.0625rem; color: var(--ink); }

html .revisor-hallazgos { display: grid; gap: 0.5rem; margin: 0 0 0.75rem; padding: 0; list-style: none; }
html .revisor-hallazgos li {
  display: grid; gap: 0.25rem;
  padding: 0.75rem 0.9rem 0.75rem 1rem;
  border: 1px solid var(--line); border-left: 4px solid var(--sec-cobrar-fill);
  border-radius: var(--radius); background: var(--paper);
}
html .revisor-hallazgos li.es-fuerte { border-left-color: var(--sec-falsas-fill); background: color-mix(in srgb, var(--sec-falsas-soft) 55%, var(--paper)); }
html .revisor-hallazgos strong { font-size: 1rem; color: var(--ink); }
html .revisor-hallazgos q { font-size: 0.9rem; color: var(--ink-soft); font-style: italic; overflow-wrap: anywhere; }
html .revisor-hallazgos span { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.45; }
html .revisor-hallazgos .revisor-tuyo { font-weight: 600; color: var(--ink-soft); }
html .revisor-limpias { margin: 0 0 1rem; font-size: 0.9375rem; }
html .revisor-limpias summary { cursor: pointer; color: var(--ink-soft); font-weight: 600; min-height: 32px; }
html .revisor-limpias ul { margin: 0.4rem 0 0; padding-left: 1.2rem; color: var(--ink-muted); }
html .revisor-pasos h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
html .revisor-pasos ol { margin: 0 0 1rem; padding-left: 1.3rem; }
html .revisor-pasos li { margin: 0 0 0.25rem; }
html .revisor-compartir { display: flex; flex-wrap: wrap; gap: 0.5rem; }
html .revisor-nota,
html .buscador-nota { margin: 0.9rem 0 0; font-size: 0.875rem; color: var(--ink-muted); }

/* Bloques de contenido de las páginas de sección */
html .seccion-bloque { margin: 2rem 0 0; }
html .seccion-bloque h2 { margin: 0 0 0.75rem; font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
html .seccion-bloque h3 { margin: 1.1rem 0 0.3rem; font-size: 1.1rem; }
html .seccion-bloque p { max-width: 75ch; }
html .senales-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0.6rem; margin: 0; }
html .senal-fila { padding: 0.8rem 0.95rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
html .senal-fila dt { font-weight: 700; color: var(--ink); margin: 0 0 0.25rem; }
html .senal-fila dd { margin: 0; font-size: 0.9375rem; color: var(--ink-muted); line-height: 1.5; }
html .senal-fila.senal-fuerte { border-color: color-mix(in srgb, var(--sec-falsas) 35%, var(--line)); }
html .senal-marca { display: inline-block; margin-left: 0.35rem; padding: 0.05rem 0.45rem; border-radius: 6px; background: var(--sec-falsas-soft); color: var(--sec-falsas); font-size: 0.75rem; font-weight: 700; vertical-align: 2px; }
html .seccion-aviso { padding: 1.1rem 1.25rem; border-radius: var(--radius-lg); background: var(--sec-soft); border: 1px solid color-mix(in srgb, var(--sec) 25%, var(--line)); }
html .pasos-lista { margin: 0; padding-left: 1.3rem; }
html .pasos-lista li { margin: 0 0 0.45rem; line-height: 1.5; }
html .seccion-page a:not(.tt-btn):not(.seccion-tarjeta):not([class*="chip"]) { color: var(--sec); }
html .empresas-lista { display: grid; gap: 0.4rem; margin: 0.6rem 0; padding: 0; list-style: none; }
html .empresas-lista li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding: 0.6rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
html .empresas-lista a { font-weight: 600; overflow-wrap: anywhere; }
html .seccion-lista-simple { columns: 2 320px; column-gap: 2rem; margin: 0; padding: 0; list-style: none; }
html .seccion-lista-simple li { break-inside: avoid; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
html .seccion-lista-simple a { text-decoration: none; font-size: 0.9375rem; line-height: 1.4; }
html .seccion-lista-simple a:hover { text-decoration: underline; text-underline-offset: 3px; }
html .seccion-cuenta { display: inline-block; margin-left: 0.35rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--sec-soft); color: var(--sec); font-size: 0.9rem; vertical-align: 3px; }
html .seccion-fuentes { margin: 2rem 0 0; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: 0.875rem; }
html .seccion-fuentes h2 { margin: 0 0 0.4rem; font-size: 1rem; }
html .seccion-fuentes ul { margin: 0; padding-left: 1.1rem; }

/* Herramientas, datos y tarjetas de las páginas madre */
html .seccion-herramientas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 0.6rem; margin: 0 0 1rem; padding: 0; list-style: none; }
html .seccion-herramientas a {
  display: flex; gap: 0.7rem; align-items: flex-start; height: 100%;
  padding: 0.85rem 0.95rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); text-decoration: none; color: var(--ink) !important;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
html .seccion-herramientas a:hover { border-color: var(--sec); background: var(--sec-soft); }
html .seccion-herramientas svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; color: var(--sec); stroke: var(--sec); }
html .seccion-herramientas strong { display: block; font-size: 0.98rem; line-height: 1.3; }
html .seccion-herramientas small { display: block; margin-top: 0.15rem; font-size: 0.85rem; color: var(--ink-muted); line-height: 1.4; }
html .seccion-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0; margin: 0 0 0.5rem; border-block: 1px solid var(--line); }
html .seccion-datos > div { padding: 0.9rem 1rem 0.9rem 0; }
html .seccion-datos > div + div { border-left: 1px solid var(--line); padding-left: 1rem; }
html .seccion-datos dt { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; color: var(--sec); line-height: 1.1; }
html .seccion-datos dd { margin: 0.3rem 0 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.45; }
html .seccion-datos dd a { white-space: nowrap; font-weight: 600; }
html .seccion-tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0.6rem; }
html .seccion-tarjeta {
  display: grid; gap: 0.35rem; padding: 0.95rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  text-decoration: none; color: var(--ink) !important;
  transition: border-color .15s var(--ease);
}
html .seccion-tarjeta:hover { border-color: var(--sec); }
html .seccion-tarjeta strong { font-size: 1rem; line-height: 1.3; }
html .seccion-tarjeta span { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.45; }
@media (max-width: 640px) {
  html .seccion-datos > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}

/* Buscador de portales */
html .buscador-fila { display: flex; gap: 0.5rem; }
html .buscador-fila .buscador-campo { flex: 1 1 auto; min-width: 0; }
html .buscador-fila .tt-btn { flex: 0 0 auto; }
html .buscador-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.7rem 0; }
html .buscador-chips .chip { min-height: 36px; padding: 0.35rem 0.75rem; font-size: 0.875rem; }
html .buscador-resultados { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
html .buscador-resultados a {
  display: grid; gap: 0.1rem; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-left: 4px solid var(--sec-fill);
  border-radius: var(--radius); background: var(--paper); text-decoration: none; color: var(--ink) !important;
  animation: tt-aparece .3s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms);
}
html .buscador-resultados a:hover { background: var(--sec-soft); }
html .buscador-resultados strong::after { content: " \2197"; color: var(--sec); }
html .buscador-resultados span { font-size: 0.85rem; color: var(--ink-muted); }
@keyframes tt-aparece { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  html .buscador-fila { flex-direction: column; }
  html .buscador-fila .tt-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html .revisor-barra li, html .buscador-resultados a { transition: none; animation: none; }
}

/* ---------- Portada con secciones · 02-10-2026 ---------- */
html .tt-hero-intro h1 { margin: 0.5rem 0 0.75rem !important; max-width: 19ch; }
html .tt-hero-intro .tt-hero-lead { margin-bottom: 1rem; }
html .home-puertas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin: 0 0 0.75rem; }
html .home-puertas a {
  position: relative; display: grid; gap: 0.15rem;
  padding: 0.75rem 0.85rem 0.75rem 1.05rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); text-decoration: none; color: var(--ink) !important;
  transition: border-color .15s var(--ease), background-color .15s var(--ease), transform .15s var(--ease);
}
html .home-puertas a::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 5px; border-radius: var(--radius) 0 0 var(--radius); background: var(--sec-fill); }
html .home-puertas a:hover { border-color: var(--sec); background: var(--sec-soft); }
html .home-puertas a:active { transform: translateY(1px); }
html .home-puertas strong { font-size: 1rem; line-height: 1.25; }
html .home-puertas strong::after { content: " \2192"; color: var(--sec); }
html .home-puertas small { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.35; }
html .home-ultima { margin: 0; font-size: 0.85rem; color: var(--ink-muted); }

html .home-consola { padding: 0 !important; overflow: hidden; }
html .home-consola-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
html .home-consola-tabs [role="tab"] {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding: 0.6rem 0.75rem; border: 0; background: transparent;
  font: inherit; font-size: 0.98rem; font-weight: 600; color: var(--ink-muted); cursor: pointer;
}
html .home-consola-tabs [role="tab"] + [role="tab"] { border-left: 1px solid var(--line); }
html .home-consola-tabs [role="tab"] svg { width: 18px; height: 18px; color: var(--sec); stroke: var(--sec); }
html .home-consola-tabs [role="tab"][aria-selected="true"] { background: var(--paper); color: var(--ink); }
html .home-consola-tabs [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--sec-fill); }
html .home-consola-tabs [role="tab"]:focus-visible { outline: 2px solid var(--sec); outline-offset: -4px; }
html .home-consola-panel { padding: clamp(1rem, 2.6vw, 1.5rem); }
html .home-revisor .revisor-texto { min-height: 120px; }
html .home-revisor .revisor-label { font-size: 1rem; }

/* El revisor cabe en la primera pantalla: campo más bajo en pantallas chicas */
html .revisor-texto { min-height: 112px; }
@media (max-height: 640px) and (min-width: 900px) {
  html .revisor-head h1 { font-size: 2.25rem !important; }
  html .revisor-texto { min-height: 92px; }
}
@media (max-width: 560px) {
  html .home-puertas { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
  html .home-puertas a { padding: 0.6rem 0.6rem 0.6rem 0.9rem; }
  html .home-puertas small { display: none; }
  html .revisor-texto { min-height: 104px; }
}
q { quotes: "\00AB" "\00BB"; }
/* En celular y tablet la consola sube antes de las puertas de las secciones */
@media (max-width: 1079px) {
  html .tt-hero.tt-hero { row-gap: 0; }
  html .tt-hero-intro { display: contents; }
  html .tt-hero .tt-live { order: 1; margin: 0; }
  html .tt-hero-intro h1 { order: 2; }
  html .tt-hero-intro .tt-hero-lead { order: 3; }
  html .home-consola { order: 4; margin-bottom: 1rem; }
  html .home-puertas { order: 5; }
  html .home-ultima { order: 6; margin-bottom: 0.5rem; }
  html .tt-hero > :not(.tt-hero-intro):not(.home-consola) { order: 7; }
}
html .tt-hero.tt-hero { padding-top: 0.75rem; }
@media (min-width: 1080px) { html .tt-hero.tt-hero { padding-top: 1rem; } html .tt-hero .tt-hero-intro { padding-top: 0; } }
html .tt-hero .tt-live { margin-top: 0; }
html .article-content.seccion-page { padding-top: 0 !important; }
html .seccion-page .breadcrumbs { margin: 0.6rem 0 0.4rem !important; }
html .revisor-head { margin-bottom: 0.75rem; }
html .revisor-pregunta { min-height: 36px; padding: 0.3rem 0.75rem; }
html .revisor-acciones { margin-top: 0.75rem; }
@media (min-width: 900px) { html .revisor { padding-top: 1.1rem; } }
html .article-content > .breadcrumbs:first-child { margin-top: 0.5rem !important; }

/* =====================================================================
   NOCHE · 02-10-2026 (elegida por Pablo): la cabecera de cada página es
   una franja marino de borde a borde; la consola queda clara encima.
   Botones principales dorados con texto tinta.
   ===================================================================== */
html .tt-hero,
html .revisor-head {
  position: relative;
  color: #EEF2F8;
  background: #0F1B2D;
  box-shadow: 0 0 0 100vmax #0F1B2D;
  clip-path: inset(0 -100vmax);
}
html .tt-hero { padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
html .revisor-head { padding: 0.25rem 0 1.25rem; margin-bottom: 1.25rem; }
html .seccion-page .breadcrumbs { position: relative; z-index: 1; }
html .tt-hero h1,
html .revisor-head h1 { color: #FFFFFF !important; }
html .tt-hero .tt-hero-lead,
html .revisor-lead,
html .tt-hero .tt-live,
html .home-ultima { color: #B9C3D4 !important; }
html .h1-clave { color: #E0AE45; }
html .home-puertas a { background: #16233B; border-color: #22304A; color: #EEF2F8 !important; }
html .home-puertas a:hover { background: #1C2C49; border-color: var(--sec-fill); }
html .home-puertas small { color: #B9C3D4; }
html .home-puertas strong::after { color: var(--sec-fill); }
html .tt-btn-primary,
html .header-upload-cta { background: #E0AE45 !important; border-color: #E0AE45 !important; color: #1A1405 !important; }
html .tt-btn-primary:hover,
html .header-upload-cta:hover { background: #EBC677 !important; border-color: #EBC677 !important; }
html .seccion-page .breadcrumbs,
html .seccion-page .breadcrumbs a { color: #B9C3D4 !important; }
html .seccion-page .breadcrumbs span:last-child { color: var(--sec-fill); }
html .seccion-page > .breadcrumbs { position: relative; background: #0F1B2D; box-shadow: 0 0 0 100vmax #0F1B2D; clip-path: inset(-1px -100vmax 0); margin: 0 !important; padding: 0.6rem 0 0.4rem; }
html .revisor-cifra strong { font-size: clamp(3.5rem, 8vw, 5rem); }

/* ---------- Ritmo de las páginas de sección · 02-10-2026 (Pablo: «se ve todo apilado y apretado») ---------- */
/* El resultado no es un control: sin marco de foco al llevarlo a la vista. */
html .revisor-resultado:focus,
html .revisor-resultado:focus-visible { outline: none !important; box-shadow: none !important; }
html .revisor-resultado { margin-top: 1.5rem; padding-top: 1.5rem; }
html .revisor-resumen { margin: 0.25rem 0 0; font-size: 1.125rem; font-weight: 600; }

/* Señales encontradas: dos columnas, la cita como recuadro aparte, explicación corta */
html .revisor-hallazgos {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}
html .revisor-hallazgos li {
  align-content: start;
  gap: 0.55rem;
  padding: 1rem 1.1rem 1.1rem 1.2rem;
}
html .revisor-hallazgos strong { font-size: 1.0625rem; line-height: 1.3; }
html .revisor-hallazgos q {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.45;
}
html .revisor-hallazgos li.es-fuerte q { background: color-mix(in srgb, var(--sec-falsas-soft) 70%, var(--paper)); }
html .revisor-hallazgos span { font-size: 0.875rem; line-height: 1.5; }
html .revisor-hallazgos .revisor-tuyo {
  display: inline-block; justify-self: start;
  padding: 0.2rem 0.6rem; border-radius: 6px;
  background: var(--surface-soft); font-size: 0.8125rem;
}

/* Lo que no apareció: una fila tranquila, separada de las tarjetas */
html .revisor-limpias {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
html .revisor-limpias summary { display: flex; align-items: center; gap: 0.5rem; list-style: none; min-height: 28px; }
html .revisor-limpias summary::-webkit-details-marker { display: none; }
html .revisor-limpias summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface-soft); color: var(--ink); font-weight: 700; }
html .revisor-limpias[open] summary::before { content: "\2212"; }
html .revisor-limpias ul { columns: 2 240px; margin: 0.6rem 0 0.2rem; }
html .revisor-limpias li { break-inside: avoid; margin-bottom: 0.2rem; }

/* Qué hacer ahora + compartir: bloque propio del color de la sección */
html .revisor-cierre {
  margin: 1.25rem 0 0;
  padding: 1.1rem 1.25rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--sec-soft);
  border: 1px solid color-mix(in srgb, var(--sec) 22%, var(--line));
}
html .revisor-pasos h3 { margin: 0 0 0.6rem; font-size: 1.15rem; }
html .revisor-pasos ol { margin: 0 0 1.1rem; padding-left: 1.35rem; }
html .revisor-pasos li { margin: 0 0 0.4rem; line-height: 1.5; }
html .revisor-nota { margin-top: 1rem; }

/* Bloques de contenido: más separación entre secciones y entre tarjetas */
html .seccion-bloque { margin-top: 2.75rem; }
html .seccion-bloque h2 { margin-bottom: 1rem; }
html .senales-lista { gap: 0.75rem; }
html .senal-fila { padding: 1rem 1.1rem; }
html .senal-fila dt { margin-bottom: 0.4rem; line-height: 1.3; }
html .senal-marca { display: block; width: max-content; margin: 0 0 0.45rem; vertical-align: 0; }
html .senal-fila.senal-fuerte { border-top: 3px solid var(--sec-falsas-fill); }

/* Trampas: dos columnas con filete del color de la sección */
html .trampas-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 1rem 2rem; }
html .trampa { padding-left: 1rem; border-left: 3px solid var(--sec-fill); }
html .trampa h3 { margin: 0 0 0.35rem !important; }
html .trampa p { margin: 0; line-height: 1.6; color: var(--ink-soft); }

/* Pasos y listas de enlaces con más aire */
html .seccion-aviso { padding: 1.35rem 1.5rem; }
html .seccion-aviso h2 { margin-bottom: 0.85rem; }
html .pasos-lista li { margin-bottom: 0.6rem; }
html .empresas-lista { gap: 0.5rem; margin: 1rem 0; }
html .empresas-lista li { padding: 0.75rem 1rem; }
html .seccion-lista-simple li { padding: 0.55rem 0; }
html .seccion-page .home-faq-list { margin-top: 0.25rem; }
html .seccion-fuentes { margin-top: 2.75rem; padding: 1.1rem 1.35rem; }
html .seccion-fuentes li { margin-bottom: 0.3rem; }

/* Páginas madre: herramientas, cifras y tarjetas con el mismo ritmo */
html .seccion-herramientas { gap: 0.75rem; margin-bottom: 1.5rem; }
html .seccion-herramientas a { padding: 1rem 1.1rem; }
html .seccion-datos { margin-bottom: 0.5rem; }
html .seccion-datos > div { padding-block: 1.1rem; }
html .seccion-tarjetas { gap: 0.75rem; }
html .seccion-tarjeta { padding: 1.05rem 1.15rem; gap: 0.45rem; }
html .buscador-resultados { gap: 0.6rem; }

@media (max-width: 560px) {
  html .revisor-hallazgos li { padding: 0.9rem 0.95rem 1rem 1rem; }
  html .revisor-cierre { padding: 1rem; }
  html .seccion-bloque { margin-top: 2.25rem; }
  html .seccion-aviso { padding: 1.1rem 1.1rem; }
}

/* Listas largas de las páginas madre: tinta, no una muralla de enlaces de color */
html .seccion-page .seccion-lista-simple a { color: var(--ink) !important; }
html .seccion-page .seccion-lista-simple a:hover { color: var(--sec) !important; }
html .seccion-lista-simple li { padding: 0.6rem 0; }
html .seccion-mas { margin-top: 0.75rem; }
html .seccion-mas > summary {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper);
  color: var(--ink); font-weight: 600; cursor: pointer; list-style: none;
}
html .seccion-mas > summary::-webkit-details-marker { display: none; }
html .seccion-mas > summary::after { content: "+"; color: var(--sec); font-weight: 700; }
html .seccion-mas[open] > summary::after { content: "\2212"; }
html .seccion-mas[open] > summary { margin-bottom: 0.75rem; }

/* Portada: las cuatro secciones, cada una con su color y sus guías principales */
html .home-secciones { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)) !important; gap: 0.75rem !important; }
html .home-secciones .home-silo-card {
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: 1.1rem 1.15rem 1.15rem !important;
  border: 1px solid var(--line) !important; border-top: 4px solid var(--sec-fill) !important;
  border-radius: var(--radius-lg) !important; background: var(--paper) !important;
}
html .home-secciones h3 { margin: 0 !important; font-size: 1.2rem !important; }
html .home-secciones h3 a { color: var(--ink) !important; text-decoration: none; }
html .home-secciones h3 a:hover { color: var(--sec) !important; }
html .home-secciones .home-silo-card > p { margin: 0 !important; font-size: 0.9rem; color: var(--ink-muted); }
html .home-secciones ul { display: grid; gap: 0.1rem; margin: 0.15rem 0 0; padding: 0; list-style: none; flex: 1 1 auto; }
html .home-secciones li { padding: 0.45rem 0; border-top: 1px solid var(--line); }
html .home-secciones li a { color: var(--ink-soft) !important; text-decoration: none; font-size: 0.9rem; line-height: 1.4; }
html .home-secciones li a:hover { color: var(--sec) !important; text-decoration: underline; text-underline-offset: 3px; }
html .home-seccion-ir { align-self: flex-start; margin-top: 0.25rem; color: var(--sec) !important; font-weight: 700; font-size: 0.9rem; text-decoration: none; }
html .home-seccion-ir::after { content: " \2192"; }
html .home-seccion-ir:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Noche: el botón de la cabecera gana a «.platform-header .header-upload-cta» (texto tinta sobre dorado) */
html .platform-header .header-upload-cta,
html .platform-header .header-upload-cta:hover,
html .menu-drawer .drawer-upload-cta { color: #1A1405 !important; background: #E0AE45 !important; border-color: #E0AE45 !important; }
html .platform-header .header-upload-cta:hover,
html .menu-drawer .drawer-upload-cta:hover { background: #EBC677 !important; border-color: #EBC677 !important; }
html .platform-header .header-upload-cta .ui-icon,
html .platform-header .header-upload-cta svg { color: currentColor !important; stroke: currentColor !important; }

/* Accesos bajo el hero: viven dentro de la franja marino */
html .tt-hero .tt-shortcuts { border-color: #22304A; }
html .tt-hero .tt-shortcuts a { color: #EEF2F8 !important; }
html .tt-hero .tt-shortcuts a + a { border-left-color: #22304A; }
html .tt-hero .tt-shortcuts a svg { color: #E0AE45 !important; stroke: #E0AE45 !important; }

/* La franja de la portada y la del boletín no quedan pegadas */
html .tt-hero { margin-bottom: 2.5rem !important; }
@media (max-width: 560px) { html .tt-hero { margin-bottom: 1.75rem !important; } }

/* Miga de la sección sobre la franja marino: el tono claro de cada color (AA sobre #0F1B2D) */
html .seccion-page[data-seccion="falsas"] > .breadcrumbs span:last-child { color: #F29B73 !important; }
html .seccion-page[data-seccion="buscar"] > .breadcrumbs span:last-child { color: #93B6F2 !important; }
html .seccion-page[data-seccion="derechos"] > .breadcrumbs span:last-child { color: #74CFC6 !important; }
html .seccion-page[data-seccion="cobrar"] > .breadcrumbs span:last-child { color: #E8BE62 !important; }
/* Botones principales con id propio (calculadora y boletín): el mismo dorado con texto tinta */
html body #btnAiTaxAdvice,
html body #btnSubscribeAlerts { background: #E0AE45 !important; border-color: #E0AE45 !important; color: #1A1405 !important; }
html body #btnAiTaxAdvice:hover,
html body #btnSubscribeAlerts:hover { background: #EBC677 !important; border-color: #EBC677 !important; }
/* Portada · secciones: sin la rejilla de 42 px ni el marco único del bloque anterior */
html .home-silo-grid.home-secciones { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)) !important; padding: 0 !important; border: 0 !important; background: none !important; overflow: visible !important; }
html .home-secciones .home-silo-card { display: flex !important; grid-template-columns: none !important; }
/* Pantallas bajas (1208×570): la franja y el campo ceden lo justo para que «Revisar oferta» quede a la vista */
@media (max-height: 640px) and (min-width: 900px) {
  html .revisor-head { padding-bottom: 0.85rem; margin-bottom: 0.9rem; }
  html .seccion-page .revisor-texto { min-height: 84px; }
}
@media (max-height: 640px) and (min-width: 900px) {
  html .seccion-page .revisor-preguntas,
  html .seccion-page .revisor-acciones { margin-top: 0.55rem; }
  html .seccion-page .revisor-lead { line-height: 1.4; }
}
