/*
 * ODH Design System v1.2.0
 * Sistema CSS global para Ofertas de Hoy + GeneratePress.
 * Objetivo: HTML limpio en publicaciones, sin CSS local ni builders.
 */

:root {
  --odh-yellow: #fed700;
  --odh-yellow-2: #ffbf00;
  --odh-ink: #0f172a;
  --odh-ink-2: #111827;
  --odh-muted: #5b6470;
  --odh-soft: #f4f6f8;
  --odh-soft-2: #f8fafc;
  --odh-line: #e5e7eb;
  --odh-card: #ffffff;
  --odh-radius-sm: 12px;
  --odh-radius: 18px;
  --odh-radius-lg: 24px;
  --odh-radius-xl: 32px;
  --odh-shadow: 0 16px 34px rgba(17, 24, 39, .055);
  --odh-shadow-lg: 0 26px 60px rgba(17, 24, 39, .12);
  --odh-wrap: 1180px;
  --odh-wide: 1360px;
  --odh-readable: 820px;
}

/* Base scoped */
.odh-article,
.odh-scope {
  color: var(--odh-ink);
  font-family: inherit;
  overflow-wrap: anywhere;
}

.odh-article *,
.odh-scope * {
  box-sizing: border-box;
}

.odh-article a,
.odh-scope a {
  color: inherit;
  text-decoration-thickness: .12em;
  text-underline-offset: .2em;
}

.odh-article img,
.odh-scope img {
  max-width: 100%;
  height: auto;
}


/* Layout */
.odh-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.odh-wrap {
  width: min(var(--odh-wrap), calc(100% - 44px));
  margin-inline: auto;
}

.odh-wrap--wide {
  width: min(var(--odh-wide), calc(100% - 44px));
}

.odh-wrap--readable {
  max-width: var(--odh-readable);
}

.odh-section {
  padding: clamp(38px, 5vw, 70px) 0;
}

.odh-section--tight {
  padding: clamp(24px, 3vw, 42px) 0;
}

.odh-section--soft {
  background: var(--odh-soft);
}

.odh-section--light {
  background: #fff;
}

.odh-section--dark {
  background: var(--odh-ink-2);
  color: #fff;
}

.odh-section--yellow {
  background: linear-gradient(135deg, var(--odh-yellow) 0%, var(--odh-yellow-2) 48%, #fff2b9 100%);
  color: var(--odh-ink);
}

.odh-card {
  background: var(--odh-card);
  border: 1px solid var(--odh-line);
  border-radius: var(--odh-radius-lg);
  box-shadow: var(--odh-shadow);
  padding: clamp(22px, 3vw, 34px);
}

.odh-grid {
  display: grid;
  gap: 22px;
}

.odh-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.odh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.odh-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.odh-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

.odh-layout--toc-right {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.odh-layout--sidebar-right {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.odh-main {
  min-width: 0;
}

/* Hero */
.odh-hero {
  background: linear-gradient(135deg, var(--odh-yellow) 0%, var(--odh-yellow-2) 48%, #fff2b9 100%);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.odh-hero--dark {
  background: radial-gradient(circle at 18% 16%, rgba(254,215,0,.32), transparent 32%), linear-gradient(135deg, #0f172a 0%, #1f2937 100%);
  color: #fff;
}

.odh-hero__inner {
  max-width: 880px;
}

.odh-hero__kicker,
.odh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--odh-ink-2);
  color: #fff;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 18px;
}

.odh-hero--dark .odh-hero__kicker,
.odh-section--dark .odh-kicker {
  background: var(--odh-yellow);
  color: var(--odh-ink);
}

.odh-hero h1,
.odh-hero__title {
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -1.8px;
  margin: 0 0 18px;
  color: inherit;
}

.odh-hero__intro,
.odh-hero p {
  max-width: 820px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
  margin: 0;
  color: rgba(15, 23, 42, .86);
}

.odh-hero--dark .odh-hero__intro,
.odh-hero--dark p {
  color: rgba(255,255,255,.84);
}

.odh-hero__meta,
.odh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  color: var(--odh-muted);
  font-size: 14px;
}

.odh-hero--dark .odh-hero__meta,
.odh-section--dark .odh-meta {
  color: rgba(255,255,255,.72);
}

/* Typography helpers */
.odh-eyebrow {
  color: var(--odh-muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.odh-title-xl {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -1.3px;
  margin: 0 0 18px;
}

.odh-title-lg,
.odh-section h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: -.8px;
}

.odh-lead {
  font-size: 18px;
  line-height: 1.75;
  color: #374151;
}

.odh-muted {
  color: var(--odh-muted);
}

.odh-content h2 {
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.18;
  margin: 44px 0 16px;
  letter-spacing: -.65px;
}

.odh-content h3 {
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.26;
  margin: 30px 0 12px;
}

.odh-content p,
.odh-content li {
  font-size: 17px;
  line-height: 1.78;
  color: #374151;
}

.odh-content p {
  margin: 0 0 20px;
}

.odh-content strong {
  color: var(--odh-ink);
}

/* Quick answer */
.odh-quick {
  background: #fff;
  border: 1px solid var(--odh-line);
  border-top: 5px solid var(--odh-yellow);
  border-radius: var(--odh-radius-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--odh-shadow);
}

.odh-quick__title {
  display: block;
  font-size: 22px;
  font-weight: 950;
  margin-bottom: 14px;
}

.odh-quick__list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.odh-quick__item,
.odh-quick li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 16px;
  line-height: 1.58;
  color: #374151;
}

.odh-quick__item::before,
.odh-quick li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--odh-yellow);
  color: var(--odh-ink);
  font-size: 13px;
  font-weight: 950;
  margin-top: 1px;
}

/* TOC */
.odh-toc {
  background: #fff;
  border: 1px solid var(--odh-line);
  border-radius: var(--odh-radius-lg);
  padding: 22px;
  box-shadow: var(--odh-shadow);
  position: sticky;
  top: 90px;
}

.odh-toc strong,
.odh-toc__title {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--odh-ink);
}

.odh-toc small,
.odh-toc__small {
  display: block;
  color: var(--odh-muted);
  margin-bottom: 12px;
}

.odh-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.odh-toc li {
  margin: 0;
  padding: 0;
}

.odh-toc a {
  display: block;
  color: var(--odh-ink);
  text-decoration: none;
  font-weight: 850;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f3;
}

.odh-toc a:hover {
  border-bottom-color: var(--odh-yellow);
}

/* Editorial blocks */
.odh-note,
.odh-tip,
.odh-warning,
.odh-method,
.odh-verdict,
.odh-check,
.odh-no-buy {
  border-radius: var(--odh-radius);
  padding: 20px 22px;
  margin: 26px 0;
  line-height: 1.65;
}

.odh-note,
.odh-tip,
.odh-check {
  background: #fff8cc;
  border: 1px solid var(--odh-yellow);
  color: var(--odh-ink);
}

.odh-warning,
.odh-no-buy {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #7c2d12;
}

.odh-method {
  background: #fff;
  border: 1px solid var(--odh-line);
  border-left: 6px solid var(--odh-yellow);
  box-shadow: var(--odh-shadow);
}

.odh-verdict {
  background: var(--odh-ink-2);
  color: #fff;
}

.odh-verdict h3,
.odh-verdict strong {
  color: #fff;
}

.odh-verdict p {
  color: rgba(255,255,255,.84);
}

/* Tables */
.odh-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 26px 0;
  border: 1px solid var(--odh-line);
  border-radius: var(--odh-radius-lg);
  background: #fff;
  box-shadow: var(--odh-shadow);
}

.odh-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 15px;
}

.odh-compare-table th,
.odh-compare-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #eef0f3;
}

.odh-compare-table th {
  background: var(--odh-ink-2);
  color: #fff;
  font-weight: 900;
}

.odh-compare-table tr:last-child td {
  border-bottom: 0;
}

.odh-table-badge,
.odh-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border-radius: 999px;
  background: var(--odh-yellow);
  color: var(--odh-ink);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 950;
}

.odh-table-limit {
  color: #7c2d12;
}

.odh-table-best {
  font-weight: 900;
}

/* Decision matrix */
.odh-decision {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.odh-decision__row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--odh-line);
  border-radius: var(--odh-radius);
  background: #fff;
}

.odh-decision__row strong {
  color: var(--odh-ink);
}

.odh-decision__row p {
  margin: 0;
  color: #374151;
}

/* Product cards */
.odh-product-list {
  display: grid;
  gap: 28px;
  margin: 32px 0;
}

.odh-product-wide {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  background: #fff;
  border: 1px solid var(--odh-line);
  border-radius: var(--odh-radius-xl);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--odh-shadow);
}

.odh-product-rank {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--odh-ink-2);
  color: #fff;
  font-weight: 950;
  font-size: 18px;
}

.odh-product-body {
  min-width: 0;
}

.odh-product-header {
  margin-bottom: 18px;
}

.odh-product-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--odh-yellow);
  color: var(--odh-ink);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 12px;
}

.odh-product-header h3,
.odh-product-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.15;
  letter-spacing: -.5px;
}

.odh-product-for,
.odh-product-subtitle {
  margin: 0;
  color: var(--odh-muted);
  line-height: 1.6;
}

.odh-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
}

.odh-product-copy {
  min-width: 0;
}

.odh-product-copy p,
.odh-product-copy li {
  line-height: 1.72;
  color: #374151;
}

.odh-product-copy p {
  margin: 0 0 16px;
}

.odh-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.odh-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--odh-line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.odh-pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.odh-pros,
.odh-cons {
  border: 1px solid var(--odh-line);
  border-radius: var(--odh-radius);
  padding: 16px;
  background: var(--odh-soft-2);
}

.odh-pros strong,
.odh-cons strong {
  display: block;
  margin-bottom: 10px;
}

.odh-pros ul,
.odh-cons ul {
  margin: 0;
  padding-left: 18px;
}

/* Figures */
.odh-figure {
  margin: 32px 0;
  border-radius: var(--odh-radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--odh-line);
  box-shadow: var(--odh-shadow);
}

.odh-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.odh-figcaption,
.odh-figure figcaption {
  padding: 13px 16px;
  color: var(--odh-muted);
  font-size: 14px;
  line-height: 1.5;
  background: #fff;
}

/* FAQ */
.odh-faq {
  display: grid;
  gap: 14px;
  margin: 30px 0;
}

.odh-faq__item {
  background: #fff;
  border: 1px solid var(--odh-line);
  border-radius: var(--odh-radius);
  padding: 20px;
}

.odh-faq__question,
.odh-faq__item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.odh-faq__answer,
.odh-faq__item p {
  margin: 0;
  color: #374151;
  line-height: 1.7;
}

/* Related cards */
.odh-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.odh-related-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--odh-line);
  border-radius: var(--odh-radius-lg);
  padding: 20px;
  box-shadow: var(--odh-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.odh-related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--odh-shadow-lg);
}

.odh-related-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--odh-ink);
}

.odh-related-card span,
.odh-related-card p {
  color: var(--odh-muted);
  line-height: 1.55;
}

/* Search tags */
.odh-search-meta {
  background: #fff;
  border-top: 1px solid var(--odh-line);
}

.odh-search-tags {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
}

/* Category landing */
.odh-cat-hero {
  background: linear-gradient(135deg, var(--odh-yellow) 0%, var(--odh-yellow-2) 48%, #fff2b9 100%);
}

.odh-subcat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.odh-subcat-card {
  display: block;
  background: #fff;
  border: 1px solid var(--odh-line);
  border-radius: var(--odh-radius-lg);
  padding: 22px;
  text-decoration: none;
  box-shadow: var(--odh-shadow);
}

.odh-subcat-card strong {
  display: block;
  color: var(--odh-ink);
  font-size: 19px;
  margin-bottom: 8px;
}

.odh-subcat-card span {
  color: var(--odh-muted);
  line-height: 1.55;
}

/* Buttons */
.odh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--odh-ink-2);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 950;
  padding: 13px 18px;
}

.odh-btn--yellow {
  background: var(--odh-yellow);
  color: var(--odh-ink) !important;
}

.odh-btn--outline {
  background: #fff;
  color: var(--odh-ink) !important;
  border: 1px solid var(--odh-line);
}

/* Responsive */
@media (max-width: 1100px) {
  .odh-layout--toc-right,
  .odh-layout--sidebar-right,
  .odh-product-grid {
    grid-template-columns: 1fr;
  }

  .odh-toc {
    position: static;
  }
}

@media (max-width: 900px) {
  .odh-grid--2,
  .odh-grid--3,
  .odh-grid--4,
  .odh-related,
  .odh-subcat-grid {
    grid-template-columns: 1fr;
  }

  .odh-product-wide {
    grid-template-columns: 1fr;
  }

  .odh-product-rank {
    width: 44px;
    height: 44px;
  }

  .odh-pros-cons,
  .odh-decision__row {
    grid-template-columns: 1fr;
  }

  .odh-wrap,
  .odh-wrap--wide {
    width: min(100% - 32px, var(--odh-wrap));
  }

  .odh-section {
    padding: 34px 0;
  }
}

@media (max-width: 560px) {
  .odh-card,
  .odh-quick,
  .odh-product-wide,
  .odh-hero .odh-wrap,
  .odh-content-card {
    border-radius: 18px;
  }

  .odh-product-wide,
  .odh-card {
    padding: 20px;
  }
}

/* ------------------------------------------------------------
 * ODH Design System v1.1 - Contraste robusto claro/oscuro
 * Evita texto ilegible en bloques oscuros, tarjetas claras y footer global.
 * ------------------------------------------------------------ */

.odh-on-dark,
.odh-section--dark,
.odh-surface--dark,
.odh-footer-premium {
  color: #f9fafb;
}

.odh-on-dark h1,
.odh-on-dark h2,
.odh-on-dark h3,
.odh-on-dark h4,
.odh-section--dark h1,
.odh-section--dark h2,
.odh-section--dark h3,
.odh-section--dark h4,
.odh-surface--dark h1,
.odh-surface--dark h2,
.odh-surface--dark h3,
.odh-surface--dark h4,
.odh-footer-premium h1,
.odh-footer-premium h2,
.odh-footer-premium h3,
.odh-footer-premium h4 {
  color: #ffffff;
}

.odh-on-dark p,
.odh-on-dark li,
.odh-section--dark p,
.odh-section--dark li,
.odh-surface--dark p,
.odh-surface--dark li,
.odh-footer-premium p,
.odh-footer-premium li {
  color: #d1d5db;
}

.odh-on-dark a,
.odh-section--dark a,
.odh-surface--dark a,
.odh-footer-premium a {
  color: inherit;
}

.odh-surface--light,
.odh-card,
.odh-quick,
.odh-toc,
.odh-product-wide,
.odh-faq__item,
.odh-related-card,
.odh-subcat-card,
.odh-footer-premium .odh-footer-cat-main,
.odh-footer-premium .odh-footer-subcats,
.odh-footer-premium .odh-footer-legal {
  color: #111827;
}

.odh-surface--light h1,
.odh-surface--light h2,
.odh-surface--light h3,
.odh-card h1,
.odh-card h2,
.odh-card h3,
.odh-quick h1,
.odh-quick h2,
.odh-quick h3,
.odh-footer-premium .odh-footer-cat-main,
.odh-footer-premium .odh-footer-subcats strong {
  color: #111827;
}

.odh-surface--light p,
.odh-surface--light li,
.odh-card p,
.odh-card li,
.odh-quick p,
.odh-quick li {
  color: #374151;
}

/* Footer premium universal: compatible con el HTML pegado en ODH Footer Universal. */
.odh-footer-premium {
  background: #111827;
  color: #f9fafb;
  border-top: 5px solid var(--odh-yellow, #fed700);
  font-family: inherit;
}

.odh-footer-premium a {
  text-decoration: none;
}

.odh-footer-premium .odh-footer-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 22px 26px;
}

.odh-footer-premium .odh-footer-top {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: start;
  margin-bottom: 34px;
}

.odh-footer-premium .odh-footer-brand h2 {
  color: #ffffff;
  font-size: clamp(25px, 2.4vw, 30px);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -.7px;
}

.odh-footer-premium .odh-footer-brand p {
  color: #d1d5db;
  font-size: 15px;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 0 14px;
}

.odh-footer-premium .odh-footer-aff {
  display: inline-flex;
  background: rgba(254,215,0,.12);
  border: 1px solid rgba(254,215,0,.35);
  color: #fff7c2;
  border-radius: 14px;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.odh-footer-premium .odh-footer-legal {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  padding: 20px;
}

.odh-footer-premium .odh-footer-legal h3,
.odh-footer-premium .odh-footer-cats h3 {
  color: #ffffff;
  font-size: 18px;
  margin: 0 0 14px;
}

.odh-footer-premium .odh-footer-legal ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.odh-footer-premium .odh-footer-legal a {
  color: #e5e7eb;
  font-size: 14px;
  transition: color .18s ease, padding-left .18s ease;
}

.odh-footer-premium .odh-footer-legal a:hover {
  color: var(--odh-yellow, #fed700);
  padding-left: 4px;
}

.odh-footer-premium .odh-footer-cats {
  margin-top: 26px;
}

.odh-footer-premium .odh-footer-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.odh-footer-premium .odh-footer-cat {
  position: relative;
}

.odh-footer-premium .odh-footer-cat-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 54px;
  background: #ffffff;
  color: #111827 !important;
  border-radius: 16px;
  padding: 13px 14px;
  font-weight: 950;
  font-size: 13px;
  line-height: 1.25;
  box-shadow: 0 12px 26px rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.odh-footer-premium .odh-footer-cat-main::after {
  content: "›";
  width: 22px;
  height: 22px;
  min-width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--odh-yellow, #fed700);
  color: #111827;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
}

.odh-footer-premium .odh-footer-cat:hover .odh-footer-cat-main {
  background: var(--odh-yellow, #fed700);
  color: #111827 !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0,0,0,.22);
}

.odh-footer-premium .odh-footer-subcats {
  position: absolute;
  left: 0;
  right: auto;
  bottom: calc(100% + 10px);
  width: 300px;
  background: #ffffff;
  color: #111827;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 24px 52px rgba(0,0,0,.28);
  border: 1px solid #e5e7eb;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  z-index: 50;
}

.odh-footer-premium .odh-footer-cat:hover .odh-footer-subcats,
.odh-footer-premium .odh-footer-cat:focus-within .odh-footer-subcats {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.odh-footer-premium .odh-footer-subcats a {
  display: block;
  color: #374151 !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  padding: 9px 10px;
  border-radius: 11px;
  transition: background .16s ease, color .16s ease, padding-left .16s ease;
}

.odh-footer-premium .odh-footer-subcats a:hover,
.odh-footer-premium .odh-footer-subcats a:focus {
  background: #fff4b8;
  color: #111827 !important;
  padding-left: 14px;
}

.odh-footer-premium .odh-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 34px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #9ca3af;
  font-size: 13px;
}

@media (max-width: 1050px) {
  .odh-footer-premium .odh-footer-top {
    grid-template-columns: 1fr;
  }

  .odh-footer-premium .odh-footer-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .odh-footer-premium .odh-footer-subcats {
    position: static;
    width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 8px;
    display: none;
  }

  .odh-footer-premium .odh-footer-cat:hover .odh-footer-subcats,
  .odh-footer-premium .odh-footer-cat:focus-within .odh-footer-subcats {
    display: block;
  }
}

@media (max-width: 640px) {
  .odh-footer-premium .odh-footer-wrap {
    padding: 36px 18px 22px;
  }

  .odh-footer-premium .odh-footer-cat-grid {
    grid-template-columns: 1fr;
  }
}
/* ------------------------------------------------------------
 * ODH Design System v1.2 - Capa premium anti-problemas reales
 * Objetivo: contraste perfecto en fondos claros/oscuros, footer, bloques ASA1,
 * páginas legales/E-E-A-T, categorías, formularios y Gutenberg.
 * ------------------------------------------------------------ */

:root {
  --odh-bg: #f4f6f8;
  --odh-bg-dark: #0f172a;
  --odh-surface: #ffffff;
  --odh-surface-dark: #111827;
  --odh-text: #111827;
  --odh-text-soft: #374151;
  --odh-text-muted: #6b7280;
  --odh-text-on-dark: #f9fafb;
  --odh-text-on-dark-soft: #d1d5db;
  --odh-text-on-yellow: #111827;
  --odh-focus: #fed700;
}

/* Capa base de legibilidad: nunca permitir texto gris claro sobre blanco ni gris oscuro sobre oscuro. */
.odh-article,
.odh-scope,
.odh-page,
.odh-legal,
.odh-eeat,
.odh-category-page,
.odh-taxonomy-page {
  color: var(--odh-text);
}

.odh-article :where(p, li, dd, figcaption),
.odh-page :where(p, li, dd, figcaption),
.odh-legal :where(p, li, dd, figcaption),
.odh-eeat :where(p, li, dd, figcaption),
.odh-category-page :where(p, li, dd, figcaption),
.odh-taxonomy-page :where(p, li, dd, figcaption) {
  color: var(--odh-text-soft);
}

.odh-section--dark :where(.odh-card, .odh-quick, .odh-toc, .odh-panel, .odh-product-wide, .odh-related-card, .odh-subcat-card, .odh-faq__item, .odh-surface--light),
.odh-on-dark :where(.odh-card, .odh-quick, .odh-toc, .odh-panel, .odh-product-wide, .odh-related-card, .odh-subcat-card, .odh-faq__item, .odh-surface--light),
.odh-footer-premium :where(.odh-card, .odh-quick, .odh-toc, .odh-panel, .odh-product-wide, .odh-related-card, .odh-subcat-card, .odh-faq__item, .odh-surface--light) {
  background: #ffffff;
  color: #111827 !important;
}

.odh-section--dark :where(.odh-card, .odh-quick, .odh-toc, .odh-panel, .odh-product-wide, .odh-related-card, .odh-subcat-card, .odh-faq__item, .odh-surface--light) :where(h1,h2,h3,h4,h5,h6,strong,a),
.odh-on-dark :where(.odh-card, .odh-quick, .odh-toc, .odh-panel, .odh-product-wide, .odh-related-card, .odh-subcat-card, .odh-faq__item, .odh-surface--light) :where(h1,h2,h3,h4,h5,h6,strong,a),
.odh-footer-premium :where(.odh-card, .odh-quick, .odh-toc, .odh-panel, .odh-product-wide, .odh-related-card, .odh-subcat-card, .odh-faq__item, .odh-surface--light) :where(h1,h2,h3,h4,h5,h6,strong,a) {
  color: #111827 !important;
}

.odh-section--dark :where(.odh-card, .odh-quick, .odh-toc, .odh-panel, .odh-product-wide, .odh-related-card, .odh-subcat-card, .odh-faq__item, .odh-surface--light) :where(p,li,span,small,figcaption),
.odh-on-dark :where(.odh-card, .odh-quick, .odh-toc, .odh-panel, .odh-product-wide, .odh-related-card, .odh-subcat-card, .odh-faq__item, .odh-surface--light) :where(p,li,span,small,figcaption),
.odh-footer-premium :where(.odh-card, .odh-quick, .odh-toc, .odh-panel, .odh-product-wide, .odh-related-card, .odh-subcat-card, .odh-faq__item, .odh-surface--light) :where(p,li,span,small,figcaption) {
  color: #374151 !important;
}

/* Enlaces y foco accesible */
.odh-article a:hover,
.odh-scope a:hover,
.odh-page a:hover {
  color: #000;
  text-decoration-color: var(--odh-yellow);
}

.odh-article :focus-visible,
.odh-scope :focus-visible,
.odh-footer-premium :focus-visible,
.odh-page :focus-visible {
  outline: 3px solid var(--odh-focus);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Superficies/paneles genéricos para páginas legales, E-E-A-T y metodología. */
.odh-panel,
.odh-content-card,
.odh-legal-card,
.odh-eeat-card,
.odh-step-card,
.odh-policy-card {
  background: #ffffff;
  border: 1px solid var(--odh-line);
  border-radius: var(--odh-radius-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--odh-shadow);
  color: var(--odh-text);
}

.odh-panel :where(h2,h3,h4,strong),
.odh-content-card :where(h2,h3,h4,strong),
.odh-legal-card :where(h2,h3,h4,strong),
.odh-eeat-card :where(h2,h3,h4,strong),
.odh-policy-card :where(h2,h3,h4,strong) {
  color: var(--odh-text);
}

.odh-panel :where(p,li),
.odh-content-card :where(p,li),
.odh-legal-card :where(p,li),
.odh-eeat-card :where(p,li),
.odh-policy-card :where(p,li) {
  color: var(--odh-text-soft);
  line-height: 1.75;
}

.odh-page-hero,
.odh-legal-hero,
.odh-eeat-hero {
  background: linear-gradient(135deg, var(--odh-yellow) 0%, var(--odh-yellow-2) 52%, #fff2b9 100%);
  border-bottom: 1px solid rgba(0,0,0,.08);
  color: #111827;
}

.odh-page-hero :where(h1,p,strong),
.odh-legal-hero :where(h1,p,strong),
.odh-eeat-hero :where(h1,p,strong) {
  color: #111827;
}

.odh-page-hero h1,
.odh-legal-hero h1,
.odh-eeat-hero h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -1.6px;
  margin: 0 0 16px;
}

.odh-page-hero p,
.odh-legal-hero p,
.odh-eeat-hero p {
  max-width: 850px;
  font-size: 18px;
  line-height: 1.7;
}

/* Listas premium */
.odh-check-list,
.odh-clean-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.odh-check-list li,
.odh-clean-list li {
  position: relative;
  padding: 14px 16px 14px 44px;
  background: #fff;
  border: 1px solid var(--odh-line);
  border-radius: 14px;
  color: #374151;
}

.odh-check-list li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--odh-yellow);
  color: #111827;
  font-weight: 950;
  font-size: 12px;
}

/* Gutenberg/WordPress blocks: tablas, botones, separadores, citas, detalles. */
.odh-article :where(.wp-block-table, table),
.odh-page :where(.wp-block-table, table),
.odh-scope :where(.wp-block-table, table) {
  margin: 26px 0;
}

.odh-article .wp-block-table table,
.odh-page .wp-block-table table,
.odh-scope .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--odh-line);
  border-radius: var(--odh-radius-lg);
  overflow: hidden;
  box-shadow: var(--odh-shadow);
}

.odh-article .wp-block-table th,
.odh-article .wp-block-table td,
.odh-page .wp-block-table th,
.odh-page .wp-block-table td,
.odh-scope .wp-block-table th,
.odh-scope .wp-block-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eef0f3;
  color: #374151;
}

.odh-article .wp-block-table th,
.odh-page .wp-block-table th,
.odh-scope .wp-block-table th {
  background: #111827;
  color: #fff;
  font-weight: 900;
}

.odh-article blockquote,
.odh-page blockquote,
.odh-scope blockquote,
.odh-quote {
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 6px solid var(--odh-yellow);
  background: #fff;
  border-radius: 0 var(--odh-radius) var(--odh-radius) 0;
  color: #374151;
  box-shadow: var(--odh-shadow);
}

.odh-article blockquote p,
.odh-page blockquote p,
.odh-scope blockquote p,
.odh-quote p {
  margin: 0;
  color: #374151;
  font-size: 18px;
  line-height: 1.7;
}

.odh-article details,
.odh-page details,
.odh-scope details,
.odh-details {
  background: #fff;
  border: 1px solid var(--odh-line);
  border-radius: var(--odh-radius);
  padding: 16px 18px;
  box-shadow: var(--odh-shadow);
}

.odh-article summary,
.odh-page summary,
.odh-scope summary,
.odh-details summary {
  cursor: pointer;
  font-weight: 900;
  color: #111827;
}

/* Comparativas: tabla hero, ranking y matriz de decisión. */
.odh-hero-table,
.odh-table-hero {
  width: 100%;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--odh-line);
  border-radius: var(--odh-radius-lg);
  box-shadow: var(--odh-shadow-lg);
  margin: 28px 0;
}

.odh-hero-table table,
.odh-table-hero table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.odh-hero-table th,
.odh-hero-table td,
.odh-table-hero th,
.odh-table-hero td {
  padding: 16px 18px;
  border-bottom: 1px solid #eef0f3;
  text-align: left;
  vertical-align: top;
}

.odh-hero-table th,
.odh-table-hero th {
  background: #111827;
  color: #fff;
  font-weight: 950;
}

.odh-hero-table td,
.odh-table-hero td {
  color: #374151;
}

.odh-rank-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-weight: 950;
}

/* Productos: controlar todos los textos internos aunque estén dentro de cards oscuras o shortcodes. */
.odh-product-wide,
.odh-product-wide *:not(.odh-btn):not(.odh-product-rank):not(.odh-product-badge) {
  color: inherit;
}

.odh-product-wide {
  color: #111827;
}

.odh-product-wide :where(h2,h3,h4,strong,a) {
  color: #111827;
}

.odh-product-wide :where(p,li,small,span:not(.odh-product-badge):not(.odh-chip)) {
  color: #374151;
}

.odh-product-wide .odh-verdict,
.odh-product-wide .odh-verdict :where(h3,strong) {
  color: #fff;
}

.odh-product-wide .odh-verdict :where(p,li,span,small) {
  color: rgba(255,255,255,.86);
}

/* ASA1 bridge y fallback universal: evitar cajas rotas y texto ilegible. */
.odh-asa-slot,
.odh-asa-card,
.cp-amazon-box,
.asa1-output,
.asa-product,
.asa_product,
.asa2-product,
.asa-template,
.asa-item {
  max-width: 100%;
}

.odh-asa-slot {
  background: #fff;
  color: #111827;
  border: 1px solid var(--odh-line);
  border-radius: var(--odh-radius-lg);
  box-shadow: var(--odh-shadow);
  padding: 14px;
  overflow: hidden;
}

.odh-asa-slot :where(h1,h2,h3,h4,strong,a),
.odh-asa-card :where(h1,h2,h3,h4,strong,a) {
  color: #111827 !important;
}

.odh-asa-slot :where(p,li,span,small),
.odh-asa-card :where(p,li,span,small) {
  color: #374151 !important;
}

.odh-asa-slot img {
  max-width: 100%;
  height: auto;
}

/* Footer premium - alta especificidad para ganar aunque haya CSS antiguo en el campo HTML. */
html body .odh-footer-premium {
  background: #111827 !important;
  color: #f9fafb !important;
  border-top: 5px solid var(--odh-yellow, #fed700) !important;
  overflow: visible !important;
}

html body .odh-footer-premium :where(h1,h2,h3,h4) {
  color: #ffffff !important;
}

html body .odh-footer-premium :where(p,li,small,span) {
  color: #d1d5db !important;
}

html body .odh-footer-premium .odh-footer-legal,
html body .odh-footer-premium .odh-footer-legal * {
  color: #f9fafb !important;
}

html body .odh-footer-premium .odh-footer-legal {
  background: rgba(255,255,255,.07) !important;
  border-color: rgba(255,255,255,.14) !important;
}

html body .odh-footer-premium .odh-footer-legal a {
  color: #f9fafb !important;
}

html body .odh-footer-premium .odh-footer-legal a:hover,
html body .odh-footer-premium .odh-footer-legal a:focus {
  color: var(--odh-yellow, #fed700) !important;
}

html body .odh-footer-premium .odh-footer-cat-main,
html body .odh-footer-premium a.odh-footer-cat-main,
html body .odh-footer-premium .odh-footer-cat-main:visited,
html body .odh-footer-premium .odh-footer-cat-main * {
  color: #111827 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html body .odh-footer-premium .odh-footer-cat-main {
  background: #ffffff !important;
  border-color: rgba(255,255,255,.22) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.22) !important;
}

html body .odh-footer-premium .odh-footer-cat:hover .odh-footer-cat-main,
html body .odh-footer-premium .odh-footer-cat:focus-within .odh-footer-cat-main {
  background: var(--odh-yellow, #fed700) !important;
  color: #111827 !important;
}

html body .odh-footer-premium .odh-footer-cat-main::after {
  background: var(--odh-yellow, #fed700) !important;
  color: #111827 !important;
}

html body .odh-footer-premium .odh-footer-cat:hover .odh-footer-cat-main::after,
html body .odh-footer-premium .odh-footer-cat:focus-within .odh-footer-cat-main::after {
  background: #111827 !important;
  color: #ffffff !important;
}

html body .odh-footer-premium .odh-footer-subcats,
html body .odh-footer-premium .odh-footer-subcats * {
  color: #111827 !important;
  opacity: 1 !important;
}

html body .odh-footer-premium .odh-footer-subcats {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  box-shadow: 0 26px 58px rgba(0,0,0,.34) !important;
  z-index: 9999 !important;
}

html body .odh-footer-premium .odh-footer-subcats a {
  color: #374151 !important;
  background: transparent !important;
}

html body .odh-footer-premium .odh-footer-subcats a:hover,
html body .odh-footer-premium .odh-footer-subcats a:focus {
  color: #111827 !important;
  background: #fff4b8 !important;
}

html body .odh-footer-premium .odh-footer-bottom,
html body .odh-footer-premium .odh-footer-bottom * {
  color: #cbd5e1 !important;
}

/* Formularios globales de contacto/newsletter */
.odh-form,
.odh-contact-form {
  display: grid;
  gap: 14px;
}

.odh-form label,
.odh-contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 850;
  color: #111827;
}

.odh-form input,
.odh-form textarea,
.odh-form select,
.odh-contact-form input,
.odh-contact-form textarea,
.odh-contact-form select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  padding: 13px 14px;
  font: inherit;
}

.odh-form textarea,
.odh-contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.odh-form button,
.odh-contact-form button,
.odh-submit {
  width: fit-content;
  border: 0;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-weight: 950;
  padding: 13px 18px;
  cursor: pointer;
}

.odh-form button:hover,
.odh-contact-form button:hover,
.odh-submit:hover {
  background: #000;
}

/* Categorías y archivos nativos de GeneratePress/WordPress */
body.archive.category.odh-ds-enabled .page-header,
body.archive.tax-category.odh-ds-enabled .page-header,
body.archive.odh-ds-enabled .page-header {
  background: #ffffff;
  border: 1px solid var(--odh-line);
  border-radius: var(--odh-radius-lg);
  box-shadow: var(--odh-shadow);
  padding: clamp(24px, 3vw, 38px);
}

body.archive.odh-ds-enabled .page-header h1,
body.archive.odh-ds-enabled .page-title {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -1.2px;
  color: #111827;
}

body.archive.odh-ds-enabled .taxonomy-description,
body.archive.odh-ds-enabled .taxonomy-description p {
  color: #374151;
  font-size: 17px;
  line-height: 1.75;
}

body.archive.odh-ds-enabled .site-main article,
body.blog.odh-ds-enabled .site-main article,
body.search.odh-ds-enabled .site-main article {
  border-radius: var(--odh-radius-lg);
  border: 1px solid var(--odh-line);
  box-shadow: var(--odh-shadow);
  overflow: hidden;
}

/* 404 y búsqueda sin resultados */
body.error404.odh-ds-enabled .inside-article,
body.search-no-results.odh-ds-enabled .inside-article {
  background: #ffffff;
  border: 1px solid var(--odh-line);
  border-radius: var(--odh-radius-lg);
  box-shadow: var(--odh-shadow);
}

body.error404.odh-ds-enabled .entry-title,
body.search-no-results.odh-ds-enabled .entry-title {
  color: #111827;
}

body.error404.odh-ds-enabled .entry-content,
body.search-no-results.odh-ds-enabled .entry-content {
  color: #374151;
}

/* Utilidades nuevas para prompts */
.odh-stack { display: grid; gap: 18px; }
.odh-stack--lg { display: grid; gap: 28px; }
.odh-center { text-align: center; }
.odh-max-readable { max-width: var(--odh-readable); margin-inline: auto; }
.odh-divider { height: 1px; background: var(--odh-line); margin: 30px 0; }
.odh-pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.odh-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--odh-line);
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 850;
}

/* Evitar desbordes horizontales por tablas, shortcodes, iframes o imágenes raras. */
.odh-article,
.odh-scope,
.odh-page,
.odh-footer-premium {
  max-width: 100%;
  overflow-x: clip;
}

.odh-article iframe,
.odh-scope iframe,
.odh-page iframe {
  max-width: 100%;
}

/* Responsive fino */
@media (max-width: 1200px) {
  .odh-footer-premium .odh-footer-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .odh-footer-premium .odh-footer-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .odh-page-hero h1,
  .odh-legal-hero h1,
  .odh-eeat-hero h1,
  .odh-hero h1,
  .odh-hero__title {
    letter-spacing: -1px;
  }
}

@media (max-width: 640px) {
  .odh-footer-premium .odh-footer-cat-grid {
    grid-template-columns: 1fr;
  }

  .odh-footer-premium .odh-footer-subcats {
    position: static !important;
    width: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: none;
    margin-top: 8px;
  }

  .odh-footer-premium .odh-footer-cat:hover .odh-footer-subcats,
  .odh-footer-premium .odh-footer-cat:focus-within .odh-footer-subcats {
    display: block;
  }

  .odh-hero h1,
  .odh-hero__title {
    font-size: clamp(34px, 12vw, 48px);
  }

  .odh-compare-table,
  .odh-hero-table table,
  .odh-table-hero table {
    min-width: 680px;
  }

  .odh-card,
  .odh-panel,
  .odh-product-wide,
  .odh-quick,
  .odh-toc {
    padding: 20px;
  }
}

@media print {
  .odh-footer-premium,
  .odh-toc,
  .odh-btn,
  .odh-asa-slot {
    display: none !important;
  }

  .odh-article,
  .odh-page {
    color: #000 !important;
  }

  .odh-article a,
  .odh-page a {
    color: #000 !important;
    text-decoration: underline !important;
  }
}
