:root {
  --theme-bg: #10141a;
  --theme-surface: #181c22;
  --theme-surface-high: #1c2026;
  --theme-surface-highest: #242a33;
  --theme-border: rgba(255, 255, 255, 0.08);
  --theme-border-strong: rgba(0, 240, 255, 0.22);
  --theme-text: #dfe2eb;
  --theme-text-muted: #849495;
  --theme-accent: #00f0ff;
  --theme-accent-strong: #0098a7;
  --theme-button-text: #10141a;
  --theme-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] {
  --theme-bg: #f4f8fb;
  --theme-surface: #ffffff;
  --theme-surface-high: #edf3f7;
  --theme-surface-highest: #e2ebf1;
  --theme-border: rgba(16, 20, 26, 0.14);
  --theme-border-strong: rgba(0, 152, 167, 0.26);
  --theme-text: #15212b;
  --theme-text-muted: #425563;
  /* Alineado con main.css html[data-theme="light"] --cyan-primary (WCAG AA sobre fondos claros). */
  --theme-accent: #006d78;
  --theme-accent-strong: #005d67;
  --theme-button-text: #ffffff;
  --theme-shadow: 0 18px 40px rgba(28, 45, 57, 0.12);
}

html,
body {
  background: var(--theme-bg);
  color: var(--theme-text);
}

body {
  transition: background-color 0.24s ease, color 0.24s ease;
}

a,
button,
select,
input,
textarea {
  transition: background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, opacity 0.24s ease;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 127, 140, 0.34);
  outline-offset: 3px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.7rem 0.88rem;
  border: 1px solid var(--theme-border-strong);
  background: color-mix(in srgb, var(--theme-surface-high) 84%, transparent);
  color: var(--theme-text);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.theme-toggle:hover {
  border-color: color-mix(in srgb, var(--theme-accent) 60%, var(--theme-border));
  background: color-mix(in srgb, var(--theme-surface-highest) 88%, transparent);
}

.theme-toggle-icon {
  font-size: 0.92rem;
  line-height: 1;
}

.theme-toggle-label {
  white-space: nowrap;
  display: inline-block;
  min-width: 5.75rem;
  text-align: center;
}

.global-search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.7rem 0.88rem;
  border: 1px solid var(--theme-border-strong);
  background: color-mix(in srgb, var(--theme-surface-high) 84%, transparent);
  color: var(--theme-text);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
  font-weight: 800;
  cursor: pointer;
}

.global-search-trigger:hover {
  border-color: color-mix(in srgb, var(--theme-accent) 60%, var(--theme-border));
  background: color-mix(in srgb, var(--theme-surface-highest) 88%, transparent);
}

.global-search-trigger svg {
  width: 0.92rem;
  height: 0.92rem;
}

@media (min-width: 641px) {
  .global-search-trigger [data-search-label] {
    display: inline-block;
    min-width: 6.75rem;
    text-align: center;
  }
}

.site-header-channel {
  min-height: 2.5rem;
  padding-inline: 0.88rem;
  background: color-mix(in srgb, var(--theme-surface-high) 76%, transparent);
}

.global-search-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

html.global-search-open .global-search-shell {
  display: block;
}

.global-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 21, 0.72);
  backdrop-filter: blur(10px);
}

.global-search-dialog {
  position: relative;
  width: min(980px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 16px auto 0;
  padding: 1.2rem;
  border: 1px solid var(--theme-border-strong);
  background: color-mix(in srgb, var(--theme-surface) 94%, transparent);
  box-shadow: var(--theme-shadow);
}

.global-search-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.global-search-kicker,
.global-search-results-head {
  color: var(--theme-accent);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.global-search-title {
  margin: 0.35rem 0 0.35rem;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.global-search-subtitle,
.global-search-hint,
.global-search-empty,
.global-search-result-copy {
  color: var(--theme-text-muted);
}

html[data-theme="light"] .global-search-subtitle {
  color: #425563;
}

.global-search-close {
  appearance: none;
  border: 1px solid var(--theme-border);
  background: transparent;
  color: var(--theme-text);
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.4rem;
  cursor: pointer;
}

.global-search-input {
  width: 100%;
  background: color-mix(in srgb, var(--theme-bg) 88%, transparent);
  border: 1px solid var(--theme-border-strong);
  color: var(--theme-text);
  padding: 1rem 1rem;
  font-size: 1rem;
  outline: none;
}

.global-search-input::placeholder {
  color: var(--theme-text-muted);
  opacity: 0.88;
}

html[data-theme="light"] .global-search-input {
  background: #ffffff;
  border-color: var(--theme-border-strong);
}

html[data-theme="light"] .global-search-input::placeholder {
  color: #3d4f5c;
  opacity: 1;
}

html[data-theme="light"] .global-search-hint,
html[data-theme="light"] .global-search-empty {
  color: #425563;
  font-size: 0.88rem;
}

.global-search-field-wrap {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.global-search-results-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.global-search-result {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  border: 1px solid var(--theme-border);
  background: color-mix(in srgb, var(--theme-surface-high) 80%, transparent);
  color: var(--theme-text);
  text-decoration: none;
}

.global-search-result:hover,
.global-search-result:focus-visible,
.global-search-result.is-active {
  border-color: var(--theme-border-strong);
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.12);
}

.global-search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.global-search-result-meta span {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--theme-text-muted);
}

.global-search-result-title {
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.global-search-hit {
  background: rgba(0, 240, 255, 0.16);
  color: inherit;
  padding: 0 0.14rem;
}

html[data-theme="light"] .scanline {
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.025) 2px, rgba(0, 0, 0, 0.025) 4px);
}

html[data-theme="light"] ::-webkit-scrollbar-track {
  background: #dce6ec;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #9baeba;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: var(--theme-accent);
}

html[data-theme="light"] .stroke-text {
  -webkit-text-stroke: 1px rgba(0, 127, 140, 0.5);
}

html[data-theme="light"] .bg-obsidian,
html[data-theme="light"] body.bg-obsidian {
  background-color: var(--theme-bg) !important;
}

html[data-theme="light"] .bg-obsidian\/80,
html[data-theme="light"] .bg-\[\#10141a\]\/96 {
  background-color: rgba(244, 248, 251, 0.9) !important;
}

html[data-theme="light"] .bg-surface\/30 {
  background-color: rgba(226, 235, 241, 0.55) !important;
}

html[data-theme="light"] .bg-surface-container-low,
html[data-theme="light"] .bg-surface-low {
  background-color: var(--theme-surface) !important;
}

html[data-theme="light"] .bg-surface-container-high {
  background-color: var(--theme-surface-high) !important;
}

html[data-theme="light"] .bg-surface-container-highest,
html[data-theme="light"] .bg-surface-container {
  background-color: var(--theme-surface-highest) !important;
}

html[data-theme="light"] .bg-white\/5 {
  background-color: rgba(21, 33, 43, 0.06) !important;
}

html[data-theme="light"] .text-on-surface,
html[data-theme="light"] .text-\[\#dfe2eb\],
html[data-theme="light"] .text-white {
  color: var(--theme-text) !important;
}

html[data-theme="light"] .text-on-surface-variant,
html[data-theme="light"] .text-text-muted,
html[data-theme="light"] .text-text_muted,
html[data-theme="light"] .text-\[\#849495\] {
  color: var(--theme-text-muted) !important;
}

/* Guías: párrafos del análisis con más contraste en modo claro */
html[data-theme="light"] #post-analysis > p {
  color: #2a3d4a !important;
}

html[data-theme="light"] .text-cyan-primary,
html[data-theme="light"] .text-cyan_primary,
html[data-theme="light"] .text-\[\#00f0ff\] {
  color: var(--theme-accent) !important;
}

html[data-theme="light"] .text-cyan-primary\/60,
html[data-theme="light"] .text-cyan_primary\/60,
html[data-theme="light"] .text-cyan-primary\/50,
html[data-theme="light"] .text-cyan_primary\/50,
html[data-theme="light"] .text-cyan-primary\/40,
html[data-theme="light"] .text-cyan_primary\/40,
html[data-theme="light"] .text-cyan-primary\/30,
html[data-theme="light"] .text-cyan_primary\/30,
html[data-theme="light"] .text-cyan-primary\/70,
html[data-theme="light"] .text-cyan_primary\/70,
html[data-theme="light"] .text-cyan-primary\/80,
html[data-theme="light"] .text-cyan_primary\/80 {
  color: color-mix(in srgb, var(--theme-accent-strong) 88%, var(--theme-text) 12%) !important;
}

/* tailwind «primary» = #dbfcff (casi blanco): en modo claro queda invisible sobre fondo claro */
html[data-theme="light"] .text-primary {
  color: var(--theme-text) !important;
}

/* tailwind «secondary-container» = #2ff801: neón; en claro poco legible (p. ej. // MARCA · CATEGORÍA) */
html[data-theme="light"] .text-secondary-container {
  color: var(--theme-accent-strong) !important;
}

/* Pros en comparativas VS: verde Tailwind sobre fondo claro */
html[data-theme="light"] .text-green-400,
html[data-theme="light"] .text-green-400\/80 {
  color: #0f5132 !important;
}

html[data-theme="light"] .text-yellow-400 {
  color: #8a6500 !important;
}

html[data-theme="light"] .border-white\/5,
html[data-theme="light"] .border-white\/10 {
  border-color: var(--theme-border) !important;
}

html[data-theme="light"] .border-cyan-primary\/20,
html[data-theme="light"] .border-cyan_primary\/20,
html[data-theme="light"] .border-cyan-primary\/30,
html[data-theme="light"] .border-cyan_primary\/30,
html[data-theme="light"] .border-cyan-primary\/50,
html[data-theme="light"] .border-cyan_primary\/50,
html[data-theme="light"] .border-\[\#00f0ff\]\/20,
html[data-theme="light"] .border-\[\#00f0ff\]\/30 {
  border-color: var(--theme-border-strong) !important;
}

html[data-theme="light"] .decision-lab {
  background:
    radial-gradient(circle at top right, rgba(0, 127, 140, 0.08), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 243, 247, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), var(--theme-shadow);
  border-color: var(--theme-border);
}

html[data-theme="light"] .decision-panel {
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--theme-border);
}

/* Página asistente: kickers Rápido / Premium / Comparar (main.css usa cyan fijo poco visible en claro) */
html[data-theme="light"] .decision-preset {
  border-color: var(--theme-border) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: var(--theme-text) !important;
}

html[data-theme="light"] .decision-preset:hover,
html[data-theme="light"] .decision-preset:focus-visible,
html[data-theme="light"] .decision-preset.is-active {
  border-color: var(--theme-border-strong) !important;
  background: rgba(237, 243, 247, 0.98) !important;
  box-shadow: 0 10px 28px rgba(23, 35, 45, 0.1) !important;
}

html[data-theme="light"] .decision-preset-kicker {
  color: var(--theme-accent-strong) !important;
  font-weight: 800;
  letter-spacing: 0.2em;
}

html[data-theme="light"] .decision-preset strong {
  color: var(--theme-text) !important;
}

html[data-theme="light"] .decision-preset span:last-child {
  color: var(--theme-text-muted) !important;
}

html[data-theme="light"] .decision-panel-label,
html[data-theme="light"] .decision-field span,
html[data-theme="light"] .decision-active-filters,
html[data-theme="light"] .decision-meta span,
html[data-theme="light"] .decision-signal {
  color: #425563;
}

html[data-theme="light"] .decision-panel--hero {
  background: linear-gradient(180deg, rgba(0, 127, 140, 0.08), rgba(255, 255, 255, 0.9));
}

html[data-theme="light"] .decision-title,
html[data-theme="light"] .reviews-shell-title,
html[data-theme="light"] .decision-card h4,
html[data-theme="light"] .search-shell-title {
  color: var(--theme-text);
}

html[data-theme="light"] .decision-eyebrow,
html[data-theme="light"] .reviews-shell-kicker,
html[data-theme="light"] .reviews-shell-summary,
html[data-theme="light"] .decision-results-head p,
html[data-theme="light"] .search-shell-kicker {
  color: var(--theme-accent);
}

html[data-theme="light"] .search-field span,
html[data-theme="light"] .search-active-query,
html[data-theme="light"] .search-shell-summary,
html[data-theme="light"] .search-suggestion-copy,
html[data-theme="light"] .search-suggestion-empty {
  color: #425563;
}

html[data-theme="light"] .decision-field select {
  background: #ffffff;
  color: var(--theme-text);
  border-color: var(--theme-border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .search-field input {
  background: #ffffff;
  color: var(--theme-text);
  border-color: var(--theme-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .search-suggestion-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--theme-border);
  box-shadow: var(--theme-shadow);
}

html[data-theme="light"] .global-search-hit {
  background: rgba(0, 127, 140, 0.12);
}

html[data-theme="light"] .search-suggestion-card.is-active {
  border-color: var(--theme-border-strong);
  box-shadow: 0 0 0 2px rgba(0, 127, 140, 0.12), var(--theme-shadow);
}

html[data-theme="light"] .search-suggestion-meta span {
  color: #425563;
}

html[data-theme="light"] .search-hit {
  background: rgba(0, 127, 140, 0.12);
}

html[data-theme="light"] .decision-submit,
html[data-theme="light"] .decision-buy,
html[data-theme="light"] .search-submit,
html[data-theme="light"] .bg-cyan-primary,
html[data-theme="light"] .bg-cyan_primary,
html[data-theme="light"] .bg-\[\#00f0ff\] {
  background: var(--theme-accent) !important;
  color: var(--theme-button-text) !important;
}

html[data-theme="light"] .decision-submit:hover,
html[data-theme="light"] .decision-buy:hover,
html[data-theme="light"] .search-submit:hover,
html[data-theme="light"] .bg-cyan-primary:hover,
html[data-theme="light"] .bg-cyan_primary:hover {
  background: var(--theme-accent-strong) !important;
}

html[data-theme="light"] .decision-open,
html[data-theme="light"] .search-clear {
  background: rgba(21, 33, 43, 0.04);
  color: var(--theme-text);
  border-color: var(--theme-border);
}

html[data-theme="light"] .decision-card,
html[data-theme="light"] .audit-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 243, 247, 0.98));
  border-color: var(--theme-border);
  box-shadow: var(--theme-shadow);
}

/* Asistente: tarjeta principal de resultados (main.css la dejaba oscura en modo claro) */
html[data-theme="light"] .decision-main-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(237, 243, 247, 0.98));
  border-color: var(--theme-border-strong);
  box-shadow: var(--theme-shadow);
}

html[data-theme="light"] .decision-main-title {
  color: var(--theme-text) !important;
}

html[data-theme="light"] .decision-main-label {
  color: var(--theme-accent);
}

html[data-theme="light"] .decision-main-copy {
  color: var(--theme-text-muted);
}

html[data-theme="light"] .decision-confidence {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--theme-border);
}

html[data-theme="light"] .decision-confidence span,
html[data-theme="light"] .decision-main-card .decision-meta span {
  color: #425563;
}

html[data-theme="light"] .decision-confidence strong {
  color: var(--theme-text);
}

html[data-theme="light"] .decision-fact {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--theme-border);
}

html[data-theme="light"] .decision-fact span {
  color: #425563;
}

html[data-theme="light"] .decision-fact strong {
  color: var(--theme-text);
}

html[data-theme="light"] .decision-rank {
  color: rgba(0, 127, 140, 0.2);
}

html[data-theme="light"] .decision-empty--intro {
  color: var(--theme-text-muted);
}

html[data-theme="light"] .hero-shell--assistant {
  border-color: var(--theme-border);
}

html[data-theme="light"] .hero-shell--assistant .hero-kicker {
  color: color-mix(in srgb, var(--theme-accent) 72%, var(--theme-text-muted)) !important;
}

html[data-theme="light"] .assistant-teaser-card {
  background:
    radial-gradient(circle at top right, rgba(0, 127, 140, 0.08), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 243, 247, 0.98));
  border-color: var(--theme-border);
  box-shadow: var(--theme-shadow);
}

html[data-theme="light"] .assistant-teaser-kicker,
html[data-theme="light"] .sponsor-strip-kicker,
html[data-theme="light"] .sponsor-strip-summary,
html[data-theme="light"] .sponsor-tag {
  color: color-mix(in srgb, var(--theme-accent) 68%, var(--theme-text-muted)) !important;
}

html[data-theme="light"] .assistant-teaser-title,
html[data-theme="light"] .assistant-teaser-copy,
html[data-theme="light"] .sponsor-strip-title,
html[data-theme="light"] .sponsor-card h4,
html[data-theme="light"] .sponsor-badge,
html[data-theme="light"] .site-brand-title,
html[data-theme="light"] .site-primary-link,
html[data-theme="light"] .site-mobile-link,
html[data-theme="light"] .site-header-channel {
  color: var(--theme-text) !important;
}

html[data-theme="light"] .sponsor-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(237, 243, 247, 0.97));
  border-color: var(--theme-border);
  box-shadow: var(--theme-shadow);
}

html[data-theme="light"] .sponsor-card--accent {
  background:
    radial-gradient(circle at top right, rgba(0, 127, 140, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 243, 247, 0.98));
  border-color: var(--theme-border-strong);
}

html[data-theme="light"] .sponsor-card p,
html[data-theme="light"] .assistant-teaser-copy,
html[data-theme="light"] .decision-panel-helper {
  color: var(--theme-text-muted) !important;
}

html[data-theme="light"] .jarvis-ad-slot {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 243, 247, 0.98)),
    radial-gradient(circle at top right, rgba(0, 127, 140, 0.06), transparent 35%);
  border-color: var(--theme-border-strong);
  box-shadow: var(--theme-shadow);
}

html[data-theme="light"] .jarvis-ad-slot p {
  color: color-mix(in srgb, var(--theme-accent) 68%, var(--theme-text-muted)) !important;
}

html[data-theme="light"] .site-primary-link {
  opacity: 0.92;
}

html[data-theme="light"] .site-primary-link:hover,
html[data-theme="light"] .site-primary-link:focus-visible,
html[data-theme="light"] .site-mobile-link:hover,
html[data-theme="light"] .site-mobile-link:focus-visible {
  border-bottom-color: var(--theme-border-strong);
}

html[data-theme="light"] .global-search-trigger,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .site-header-channel,
html[data-theme="light"] .site-nav-toggle {
  color: var(--theme-text);
  background: color-mix(in srgb, var(--theme-surface-high) 92%, transparent);
}

html[data-theme="light"] .site-nav-toggle {
  border-color: rgba(21, 33, 43, 0.18);
  box-shadow: 0 6px 18px rgba(28, 45, 57, 0.08);
}

html[data-theme="light"] .site-nav-toggle-bar {
  background: #15212b;
}

html[data-theme="light"] .audit-card .image-container {
  background-color: var(--theme-surface-high);
}

html[data-theme="light"] .verdict-badge {
  background: var(--theme-accent);
  color: var(--theme-button-text);
}

html[data-theme="light"] header,
html[data-theme="light"] footer,
html[data-theme="light"] #sticky-cta {
  box-shadow: 0 8px 24px rgba(23, 35, 45, 0.06);
}

html[data-theme="light"] header {
  background-color: rgba(244, 248, 251, 0.9) !important;
}

html[data-theme="light"] footer {
  background-color: color-mix(in srgb, var(--theme-surface-high) 82%, transparent) !important;
}

html[data-theme="light"] #sticky-cta {
  background: rgba(244, 248, 251, 0.94) !important;
  border-top-color: var(--theme-border-strong) !important;
}

html[data-theme="light"] #sticky-title,
html[data-theme="light"] #sticky-score {
  color: var(--theme-text) !important;
}

html[data-theme="light"] #sticky-cta .text-\[\#849495\] {
  color: var(--theme-text-muted) !important;
}

html[data-theme="light"] .shadow-\[0_0_15px_rgba\(0\,240\,255\,0\.4\)\],
html[data-theme="light"] .shadow-\[0_0_20px_rgba\(0\,240\,255\,0\.4\)\],
html[data-theme="light"] .shadow-\[0_0_10px_rgba\(0\,240\,255\,0\.4\)\] {
  box-shadow: 0 12px 24px rgba(0, 127, 140, 0.18) !important;
}

html[data-theme="light"] .hover\:shadow-\[0_0_20px_rgba\(255\,255\,255\,0\.6\)\]:hover,
html[data-theme="light"] .hover\:shadow-\[0_0_25px_rgba\(255\,255\,255\,0\.6\)\]:hover,
html[data-theme="light"] .hover\:shadow-\[0_0_30px_rgba\(255\,255\,255\,0\.8\)\]:hover {
  box-shadow: 0 14px 28px rgba(0, 93, 103, 0.2) !important;
}

@media (max-width: 640px) {
  .theme-toggle {
    min-width: 2.75rem;
    padding-inline: 0.8rem;
  }

  .theme-toggle-label {
    display: none;
  }

  .global-search-trigger [data-search-label] {
    display: none;
  }

  .global-search-dialog {
    width: min(100% - 16px, 980px);
    margin-top: 8px;
    padding: 1rem;
  }
}

/* Ranking list: pros legibles en modo claro (evita verde claro sobre verde pálido) */
.ranking-pro-pill {
  display: inline-block;
  font-size: 0.7rem;
  line-height: 1.35;
  padding: 0.28rem 0.55rem;
  border-radius: 0.2rem;
}

html[data-theme="light"] .ranking-pro-pill {
  background: rgba(6, 95, 70, 0.1);
  color: #064e3b;
  font-weight: 600;
}

html[data-theme="dark"] .ranking-pro-pill {
  background: rgba(52, 211, 153, 0.12);
  color: rgba(167, 243, 208, 0.95);
}

/* Enlazado interno: título legible; meta con contraste (no cyan tenue) */
.related-section-title,
h3#related-title {
  font-size: clamp(1.05rem, 0.95rem + 0.9vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: 0.1em;
  color: var(--theme-text) !important;
  border-left: 3px solid var(--theme-accent);
  padding-left: 0.65rem;
}

html[data-theme="light"] .related-section-title,
html[data-theme="light"] h3#related-title {
  color: #15212b !important;
  border-left-color: #007f8c;
}

.related-card-meta,
.related-card-kicker {
  font-size: 0.8125rem;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: color-mix(in srgb, var(--theme-text) 78%, var(--theme-text-muted) 22%);
}

html[data-theme="light"] .related-card-meta,
html[data-theme="light"] .related-card-kicker {
  color: #3a4d5c !important;
}

html[data-theme="dark"] .related-card-meta,
html[data-theme="dark"] .related-card-kicker {
  color: rgba(210, 218, 228, 0.88);
}

/* Tarjetas portada: extracto con contraste adecuado en modo claro */
html[data-theme="light"] .audit-card-excerpt.text-text_muted,
html[data-theme="light"] .audit-card .audit-card-excerpt {
  color: #3d4f5c !important;
}

/* Tarjeta relacionada es enlace completo: ocultar CTA duplicado en estrecho */
@media (max-width: 767px) {
  .related-readmore {
    display: none !important;
  }

  /* «Leer análisis» no debe interceptar toques: el article delega navegación (solo Amazon usa jarvis-card-stop-prop) */
  .audit-card .jarvis-leer-link {
    pointer-events: none !important;
  }
}

/* Bloque «Firma editorial / Última revisión / Categoría»: tamaño y contraste (no azul tenue) */
.editorial-meta-label {
  font-size: 0.8125rem;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: color-mix(in srgb, var(--theme-text) 72%, var(--theme-text-muted));
}

html[data-theme="light"] .editorial-meta-label {
  color: #2a3b48 !important;
}

html[data-theme="dark"] .editorial-meta-label {
  color: rgba(215, 223, 232, 0.92);
}

.editorial-how-title {
  letter-spacing: 0.08em !important;
}

html[data-theme="light"] .editorial-meta-block {
  border-color: rgba(21, 33, 43, 0.12) !important;
}

html[data-theme="light"] .editorial-meta-block .text-on-surface {
  color: #15212b !important;
}

/* Rankings: medallas 🥇🥈🥉 legibles en móvil */
.ranking-medal-label {
  display: block;
  margin-top: 0.35rem;
  max-width: 6.5rem;
  text-align: center;
  font-size: clamp(0.6875rem, 0.55rem + 1.1vw, 0.8125rem);
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (min-width: 768px) {
  .ranking-medal-label {
    max-width: 7.5rem;
    font-size: 0.8125rem;
  }
}

/* Menú hamburguesa: panel a pantalla completa bajo el header sticky (visible aunque el usuario haya hecho scroll) */
@media (max-width: 1023px) {
  .site-mobile-nav:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 45;
    padding-top: calc(4.5rem + env(safe-area-inset-top, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    border: none;
    border-top: 1px solid var(--theme-border);
    background: color-mix(in srgb, var(--theme-bg) 92%, var(--theme-surface));
    backdrop-filter: blur(14px);
  }

  html[data-theme="light"] .site-mobile-nav:not([hidden]) {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 40px rgba(23, 35, 45, 0.1);
  }
}

body.site-mobile-nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

/* Rankings: medallas y kickers (el bloque <style> inline del HTML va después del CSS externo; !important gana). */
html[data-theme="light"] .rank-1 {
  color: #a16207 !important;
}

html[data-theme="light"] .rank-2 {
  color: #57534e !important;
}

html[data-theme="light"] .rank-3 {
  color: #9a3412 !important;
}

/* Guías: aviso cuando el idioma activo es EN/FR pero el cuerpo sigue en español (placeholder o fallback). */
.guia-lang-fallback-banner {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--theme-border-strong);
  background: color-mix(in srgb, var(--theme-accent) 14%, var(--theme-surface-high));
  color: var(--theme-text);
  font-size: 0.875rem;
  line-height: 1.45;
}

/* Lighthouse / WCAG: contraste en modo oscuro (texto pequeño y cyan atenuado sobre #10141a). */
html[data-theme="dark"] .site-language-switch button.text-on-surface {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .site-language-switch button.text-cyan-primary,
html[data-theme="dark"] .site-language-switch button.text-cyan_primary {
  color: #7aefff !important;
  border-bottom-color: rgba(122, 239, 255, 0.55) !important;
}

html[data-theme="dark"] .reviews-shell-kicker,
html[data-theme="dark"] .assistant-teaser-kicker {
  color: #7dd3ea !important;
}

html[data-theme="dark"] .reviews-shell-summary {
  color: #9ee8f5 !important;
}

html[data-theme="dark"] .site-brand-title .text-cyan-primary,
html[data-theme="dark"] .site-brand-title .text-cyan_primary {
  color: #7aefff !important;
}

/* Botones tipo CTA: texto oscuro sobre teal no alcanza 4.5:1; blanco sobre #006d78 sí. */
html[data-theme="light"] .assistant-teaser-link,
html[data-theme="light"] .sponsor-link {
  color: var(--theme-button-text) !important;
}

/* Home: gradiente del hint de scroll en filtros (modo claro) */
html[data-theme="light"] .category-filters-wrap::after {
  background: linear-gradient(90deg, transparent, var(--theme-bg));
}
