/* ═══════════════════════════════════════════════════════════════════
   MasterPubli Shop v5.0.0 — CSS Principal
   Identidad By JMT: Azul marino + Dorado
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --mps-blue:        #2058b0;
  --mps-blue-dark:   #173b7a;
  --mps-blue-light:  #2f80ed;
  --mps-gold:        #ffd700;
  --mps-gold-dark:   #e6c200;
  --mps-cyan:        #44e7ee;
  --mps-text:        #1a202c;
  --mps-text-soft:   #5f6d7b;
  --mps-bg:          #f4f7fb;
  --mps-surface:     #ffffff;
  --mps-border:      #d9e3f0;
  --mps-radius:      14px;
  --mps-radius-sm:   8px;
  --mps-shadow:      0 8px 24px rgba(32,88,176,.10);
  --mps-shadow-hov:  0 16px 40px rgba(32,88,176,.18);
  --mps-amazon:      #ff9900;
  --mps-aliexpress:  #e74c3c;
  --mps-sale:        #e53935;
}

/* ── RESET / BASE ──────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  background: linear-gradient(180deg,#f4f7fb 0%,#eef3f8 100%);
  color: var(--mps-text);
  font-family: "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mps-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── TICKER ────────────────────────────────────────────────────── */
.mps-ticker {
  background: #111;
  color: #fff;
  border-bottom: 2px solid var(--mps-cyan);
  position: relative;
  z-index: 100;
}
.mps-ticker__inner {
  display: flex;
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 30px;
}
.mps-ticker__label {
  color: var(--mps-sale);
  font-weight: 800;
  font-size: .8rem;
  padding-right: 14px;
  flex-shrink: 0;
  letter-spacing: .05em;
}
.mps-ticker__viewport { overflow: hidden; width: 100%; }
.mps-ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  padding: 7px 0;
  animation: mpsTickerScroll 28s linear infinite;
}
.mps-ticker:hover .mps-ticker__track { animation-play-state: paused; }
.mps-ticker__item a, .mps-ticker__item { color: var(--mps-cyan); font-weight: 600; font-size: .85rem; }
.mps-ticker__item a:hover { color: var(--mps-gold); text-decoration: none; }
.mps-ticker__sep { color: rgba(255,255,255,.3); }
@keyframes mpsTickerScroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ── HEADER ────────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(90deg, var(--mps-blue-dark) 0%, var(--mps-blue) 60%, var(--mps-blue-light) 100%) !important;
  position: sticky !important;
  top: 0;
  z-index: 99;
  box-shadow: 0 4px 20px rgba(32,88,176,.25) !important;
  border-radius: 0 0 20px 20px;
}
.site-header .site-title a,
.site-header .site-title {
  color: var(--mps-gold) !important;
  font-weight: 800 !important;
  font-size: 1.4rem !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.2) !important;
}
.site-header .site-description { color: rgba(255,255,255,.8) !important; font-size: .9rem !important; }
.site-header a:not(.button):not(.mps-btn):not(.mps-dark-toggle) { color: #fff !important; }

/* Menú principal */
.main-navigation ul li a {
  color: #fff !important;
  background: linear-gradient(180deg,#2d74dd,#1e5fc2) !important;
  border-radius: 999px !important;
  padding: 8px 16px !important;
  font-weight: 700 !important;
  transition: all .18s ease !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.12) !important;
}
.main-navigation ul li a:hover {
  background: linear-gradient(180deg,var(--mps-gold),var(--mps-gold-dark)) !important;
  color: var(--mps-blue-dark) !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

/* Buscador header */
.site-header .woocommerce-product-search input[type="search"] {
  border-radius: 999px 0 0 999px !important;
  border: 2px solid rgba(255,255,255,.3) !important;
  background: rgba(255,255,255,.15) !important;
  color: #fff !important;
  padding: 8px 16px !important;
}
.site-header .woocommerce-product-search input::placeholder { color: rgba(255,255,255,.6) !important; }
.site-header .woocommerce-product-search button {
  border-radius: 0 999px 999px 0 !important;
  background: var(--mps-gold) !important;
  color: var(--mps-blue-dark) !important;
  border: none !important;
  font-weight: 700 !important;
}

/* Carrito header */
.site-header-cart .cart-contents {
  background: rgba(255,255,255,.15) !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  color: #fff !important;
  font-weight: 700 !important;
  transition: background .18s !important;
}
.site-header-cart .cart-contents:hover { background: var(--mps-gold) !important; color: var(--mps-blue-dark) !important; text-decoration: none !important; }
.mps-cart-count {
  background: var(--mps-sale);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 5px;
  margin-left: 2px;
}

/* Botón modo oscuro */
.mps-dark-toggle {
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background .18s;
  margin-left: 8px;
}
.mps-dark-toggle:hover { background: var(--mps-gold); }

/* ── HERO PORTADA ──────────────────────────────────────────────── */
.mps-hero {
  background: linear-gradient(135deg, var(--mps-blue-dark) 0%, var(--mps-blue) 50%, #1565c0 100%);
  color: #fff;
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}
.mps-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,215,0,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.mps-hero__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.mps-hero__eyebrow {
  display: inline-block;
  background: rgba(255,215,0,.2);
  color: var(--mps-gold);
  border: 1px solid rgba(255,215,0,.4);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.mps-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.mps-hero__title span { color: var(--mps-gold); }
.mps-hero__text { font-size: 1.05rem; color: rgba(255,255,255,.85); margin-bottom: 28px; line-height: 1.6; }
.mps-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mps-hero__search {
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: var(--mps-radius);
  padding: 28px;
}
.mps-hero__search p { color: rgba(255,255,255,.8); font-weight: 600; margin-bottom: 12px; }
.mps-hero__search form { display: flex; gap: 0; }
.mps-hero__search input[type="search"] {
  flex: 1;
  padding: 12px 18px;
  border: none;
  border-radius: var(--mps-radius-sm) 0 0 var(--mps-radius-sm);
  font-size: 1rem;
  outline: none;
}
.mps-hero__search button {
  background: var(--mps-gold);
  color: var(--mps-blue-dark);
  border: none;
  padding: 12px 20px;
  border-radius: 0 var(--mps-radius-sm) var(--mps-radius-sm) 0;
  font-weight: 800;
  cursor: pointer;
  font-size: 1rem;
  transition: background .18s;
}
.mps-hero__search button:hover { background: var(--mps-gold-dark); }

/* ── BOTONES GLOBALES ──────────────────────────────────────────── */
.mps-btn, .button, button.button, a.button,
.woocommerce a.button, .woocommerce button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .18s ease;
  text-decoration: none;
  font-size: .95rem;
}
.mps-btn { background: var(--mps-blue); color: #fff; }
.mps-btn:hover { background: var(--mps-blue-dark); color: #fff; text-decoration: none; transform: translateY(-2px); }
.mps-btn--ghost { background: transparent; border: 2px solid rgba(255,255,255,.5); color: #fff; }
.mps-btn--ghost:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.mps-btn--lg { padding: 14px 32px; font-size: 1.05rem; }
.mps-btn-amazon { background: var(--mps-amazon) !important; color: #111 !important; font-weight: 800 !important; }
.mps-btn-amazon:hover { background: #e88a00 !important; color: #111 !important; text-decoration: none !important; }
.mps-btn-aliexpress { background: var(--mps-aliexpress) !important; color: #fff !important; font-weight: 800 !important; }
.mps-btn-aliexpress:hover { background: #c0392b !important; color: #fff !important; text-decoration: none !important; }

/* ── SECCIONES ─────────────────────────────────────────────────── */
.mps-section { padding: 48px 0; }
.mps-section--gray { background: var(--mps-bg); }
.mps-container { max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.mps-section-head { text-align: center; margin-bottom: 36px; }
.mps-section-head h2 { font-size: clamp(1.4rem,3vw,2rem); font-weight: 800; color: var(--mps-blue-dark); margin-bottom: 8px; }
.mps-section-head p { color: var(--mps-text-soft); font-size: 1rem; }

/* ── CATEGORÍAS BANNER ─────────────────────────────────────────── */
.mps-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: 16px;
}
.mps-cat-card {
  background: var(--mps-surface);
  border-radius: var(--mps-radius);
  box-shadow: var(--mps-shadow);
  padding: 28px 16px;
  text-align: center;
  transition: all .2s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  color: var(--mps-text);
  display: block;
}
.mps-cat-card:hover {
  border-color: var(--mps-blue);
  transform: translateY(-4px);
  box-shadow: var(--mps-shadow-hov);
  text-decoration: none;
  color: var(--mps-blue-dark);
}
.mps-cat-card__icon { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.mps-cat-card__name { font-weight: 700; font-size: .95rem; }
.mps-cat-card__count { font-size: .8rem; color: var(--mps-text-soft); margin-top: 4px; }

/* ── GRID DE PRODUCTOS ─────────────────────────────────────────── */
.woocommerce ul.products,
.mps-product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr)) !important;
  gap: 24px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.woocommerce ul.products li.product,
.mps-product-card {
  background: var(--mps-surface) !important;
  border-radius: var(--mps-radius) !important;
  box-shadow: var(--mps-shadow) !important;
  overflow: hidden !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
  position: relative !important;
}
.woocommerce ul.products li.product:hover { transform: translateY(-6px) !important; box-shadow: var(--mps-shadow-hov) !important; }
.woocommerce ul.products li.product img { width: 100% !important; aspect-ratio: 4/3 !important; object-fit: cover !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1rem !important; font-weight: 700 !important; padding: 14px 16px 4px !important; color: var(--mps-text) !important; }
.woocommerce ul.products li.product .price { padding: 0 16px 10px !important; color: var(--mps-sale) !important; font-weight: 800 !important; font-size: 1.1rem !important; }
.woocommerce ul.products li.product .button { margin: 8px 16px 16px !important; width: calc(100% - 32px) !important; border-radius: 999px !important; background: var(--mps-blue) !important; color: #fff !important; font-weight: 700 !important; border: none !important; padding: 10px !important; transition: background .18s !important; }
.woocommerce ul.products li.product .button:hover { background: var(--mps-gold) !important; color: var(--mps-blue-dark) !important; text-decoration: none !important; }

/* Badges */
.mps-badge-sale {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--mps-sale); color: #fff;
  font-size: .75rem; font-weight: 800;
  padding: 4px 10px; border-radius: 999px;
}
.mps-cat-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: .72rem; font-weight: 800;
  padding: 3px 9px; border-radius: 999px;
}
.mps-cat-badge--amazon     { background: var(--mps-amazon);     color: #111; }
.mps-cat-badge--aliexpress { background: var(--mps-aliexpress);  color: #fff; }
.mps-cat-badge--segunda-mano { background: #6c757d; color: #fff; }
.mps-cat-badge--nautica    { background: var(--mps-blue);       color: #fff; }
.mps-cat-badge--deal       { background: var(--mps-gold);       color: var(--mps-blue-dark); }

/* ── BUY BOX AFILIADO ──────────────────────────────────────────── */
.mps-buy-box { background: #f8faff; border: 2px solid var(--mps-border); border-radius: var(--mps-radius); padding: 20px; margin: 20px 0; }
.mps-buy-box__note { font-size: .83rem; color: var(--mps-text-soft); margin-bottom: 14px; }

/* Affiliate card en artículos */
.mps-affiliate-card { background: var(--mps-surface); border: 2px solid var(--mps-border); border-radius: var(--mps-radius); overflow: hidden; margin: 24px 0; display: flex; gap: 0; }
.mps-affiliate-card img { width: 200px; height: 200px; object-fit: cover; flex-shrink: 0; }
.mps-affiliate-card__body { padding: 20px; flex: 1; }
.mps-source-badge { display: inline-block; font-size: .75rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.mps-source-amazon { background: var(--mps-amazon); color: #111; }
.mps-source-aliexpress { background: var(--mps-aliexpress); color: #fff; }
.mps-source-badge:not(.mps-source-amazon):not(.mps-source-aliexpress) { background: var(--mps-blue); color: #fff; }
.mps-affiliate-card__body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.mps-price-block { margin: 10px 0; display: flex; align-items: baseline; gap: 10px; }
.mps-price { font-size: 1.3rem; font-weight: 800; color: var(--mps-sale); }
.mps-old-price { font-size: 1rem; color: var(--mps-text-soft); text-decoration: line-through; }
.mps-affiliate-note { font-size: .75rem; color: var(--mps-text-soft); margin-top: 8px; }

/* ── ADS ───────────────────────────────────────────────────────── */
.mps-ad { text-align: center; padding: 12px 0; }

/* ── NEWSLETTER ────────────────────────────────────────────────── */
.mps-newsletter { background: linear-gradient(135deg,var(--mps-blue-dark),var(--mps-blue)); padding: 48px 0; }
.mps-newsletter__inner { max-width: 1220px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.mps-newsletter__copy h3 { color: var(--mps-gold); font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.mps-newsletter__copy p { color: rgba(255,255,255,.85); }
.mps-newsletter__form { display: flex; gap: 0; }
.mps-newsletter__form input { flex: 1; padding: 14px 18px; border: none; border-radius: var(--mps-radius-sm) 0 0 var(--mps-radius-sm); font-size: 1rem; }
.mps-newsletter__form button { background: var(--mps-gold); color: var(--mps-blue-dark); border: none; padding: 14px 22px; border-radius: 0 var(--mps-radius-sm) var(--mps-radius-sm) 0; font-weight: 800; cursor: pointer; transition: background .18s; white-space: nowrap; }
.mps-newsletter__form button:hover { background: var(--mps-gold-dark); }

/* ── CROSSLINK masterpubli.com ─────────────────────────────────── */
.mps-crosslink { background: var(--mps-blue-dark); border-top: 2px solid var(--mps-gold); padding: 18px 0; }
.mps-crosslink__inner { max-width: 1220px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.mps-crosslink__text { color: rgba(255,255,255,.85); font-weight: 600; }
.mps-crosslink__btn { background: var(--mps-gold); color: var(--mps-blue-dark); padding: 8px 20px; border-radius: 999px; font-weight: 800; transition: background .18s; text-decoration: none; }
.mps-crosslink__btn:hover { background: var(--mps-gold-dark); text-decoration: none; color: var(--mps-blue-dark); }

/* ── FOOTER ────────────────────────────────────────────────────── */
.site-footer { background: var(--mps-blue-dark) !important; color: rgba(255,255,255,.8) !important; }
.site-footer a { color: var(--mps-gold) !important; }
.site-footer a:hover { color: #fff !important; text-decoration: none !important; }
.site-footer h2, .site-footer h3 { color: var(--mps-gold) !important; font-weight: 700 !important; }
.site-footer .widget_title { color: var(--mps-gold) !important; }
.site-footer .col-full { border-top: none !important; }
.site-info { color: rgba(255,255,255,.6) !important; font-size: .85rem !important; text-align: center; padding: 16px 0 !important; }
.site-info a { color: var(--mps-gold) !important; }

/* Breadcrumb */
.mps-breadcrumb { font-size: .85rem; color: var(--mps-text-soft); margin-bottom: 16px; padding: 10px 0; }
.mps-sep { color: var(--mps-text-soft); margin: 0 4px; }

/* ── MODO OSCURO ───────────────────────────────────────────────── */
body.dark-mode { background: #0f1117 !important; color: #e2e8f0 !important; }
body.dark-mode .mps-section--gray { background: #1a1f2e !important; }
body.dark-mode .woocommerce ul.products li.product,
body.dark-mode .mps-product-card { background: #1e2536 !important; }
body.dark-mode .woocommerce ul.products li.product .woocommerce-loop-product__title { color: #e2e8f0 !important; }
body.dark-mode .mps-buy-box,
body.dark-mode .mps-affiliate-card { background: #1e2536 !important; border-color: #2d3748 !important; }
body.dark-mode .mps-hero__search { background: rgba(255,255,255,.08) !important; }
body.dark-mode .mps-cat-card { background: #1e2536 !important; color: #e2e8f0 !important; }

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .mps-hero__inner { grid-template-columns: 1fr; }
  .mps-hero { padding: 40px 0 30px; }
  .mps-newsletter__inner { grid-template-columns: 1fr; gap: 24px; }
  .mps-affiliate-card { flex-direction: column; }
  .mps-affiliate-card img { width: 100%; height: 220px; }
  .woocommerce ul.products { grid-template-columns: repeat(auto-fill,minmax(200px,1fr)) !important; }
}
@media (max-width: 600px) {
  .mps-hero__actions { flex-direction: column; }
  .mps-crosslink__inner { flex-direction: column; text-align: center; }
  .mps-newsletter__form { flex-direction: column; }
  .mps-newsletter__form input,
  .mps-newsletter__form button { border-radius: var(--mps-radius-sm) !important; }
  .main-navigation ul { flex-direction: column; gap: 6px; }
  .woocommerce ul.products { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   PALETA PREMIUM v5.1.0 — Modo claro suave + Oscuro elegante
   ═══════════════════════════════════════════════════════════════════ */

/* ── MODO CLARO SUAVE ──────────────────────────────────────────── */
body {
  background: #f0f4fa !important;
  color: #1e2433 !important;
}

/* Fondo general de WordPress/Storefront */
#page, .site-content, .col-full {
  background: transparent !important;
}

/* Secciones alternas */
.mps-section { background: #f0f4fa; }
.mps-section--gray { background: #e8f0fe !important; }

/* Cards de producto — fondo blanco cálido con sombra suave */
.woocommerce ul.products li.product {
  background: #ffffff !important;
  box-shadow: 0 4px 16px rgba(32,88,176,.08) !important;
  border: 1px solid #dce8f8 !important;
}
.woocommerce ul.products li.product:hover {
  box-shadow: 0 12px 32px rgba(32,88,176,.15) !important;
  border-color: var(--mps-blue) !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: #1e2433 !important;
}

/* Cards de categoría */
.mps-cat-card {
  background: #ffffff !important;
  border: 1.5px solid #dce8f8 !important;
  box-shadow: 0 4px 14px rgba(32,88,176,.07) !important;
  color: #1e2433 !important;
}
.mps-cat-card:hover {
  border-color: var(--mps-blue) !important;
  background: #e8f0fe !important;
  box-shadow: 0 10px 28px rgba(32,88,176,.14) !important;
}
.mps-cat-card__name { color: #1e2433 !important; }
.mps-cat-card__count { color: #5f6d7b !important; }

/* Cards de artículos/comparativas */
article.card,
.mps-product-grid article {
  background: #ffffff !important;
  box-shadow: 0 4px 16px rgba(32,88,176,.08) !important;
  border: 1px solid #dce8f8 !important;
}
article.card:hover {
  box-shadow: 0 12px 32px rgba(32,88,176,.15) !important;
  transform: translateY(-4px) !important;
}
article.card .content h3 a { color: #1e2433 !important; }
article.card .content p { color: #4a5568 !important; }

/* Sección hero — degradado más profundo */
.mps-hero {
  background: linear-gradient(135deg, #0d2151 0%, #173b7a 40%, #2058b0 80%, #1565c0 100%) !important;
}

/* Hero search box */
.mps-hero__search {
  background: rgba(255,255,255,.1) !important;
  border: 1.5px solid rgba(255,255,255,.2) !important;
  backdrop-filter: blur(8px) !important;
}

/* Sección encabezados */
.mps-section-head h2 { color: #0d2151 !important; }
.mps-section-head p  { color: #4a5568 !important; }

/* Títulos de página */
h1, h2, h3 { color: #1e2433; }
.entry-title { color: #0d2151 !important; }

/* Buy box afiliado */
.mps-buy-box {
  background: #eef4ff !important;
  border-color: #c5d8f8 !important;
}
.mps-affiliate-card {
  background: #ffffff !important;
  border-color: #dce8f8 !important;
}

/* Breadcrumb */
.mps-breadcrumb { color: #4a5568 !important; }

/* WooCommerce páginas */
.woocommerce-products-header { background: #e8f0fe; padding: 24px; border-radius: 14px; margin-bottom: 24px; }
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering select {
  color: #1e2433 !important;
  border-color: #dce8f8 !important;
}

/* Página de producto */
.woocommerce div.product .product_title { color: #0d2151 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs { border-bottom: 2px solid #dce8f8 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: #f0f4fa !important; border-color: #dce8f8 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #fff !important; border-bottom-color: #fff !important; }

/* ── MODO OSCURO ELEGANTE ──────────────────────────────────────── */
body.dark-mode {
  background: #0a0f1e !important;
  color: #e2e8f0 !important;
}
body.dark-mode #page,
body.dark-mode .site-content { background: transparent !important; }

body.dark-mode .mps-section { background: #0a0f1e !important; }
body.dark-mode .mps-section--gray { background: #111827 !important; }

/* Cards modo oscuro */
body.dark-mode .woocommerce ul.products li.product {
  background: #141d2e !important;
  border-color: #1e2d45 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.3) !important;
}
body.dark-mode .woocommerce ul.products li.product:hover {
  border-color: var(--mps-blue) !important;
  box-shadow: 0 12px 32px rgba(32,88,176,.25) !important;
}
body.dark-mode .woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: #e2e8f0 !important;
}

/* Categorías modo oscuro */
body.dark-mode .mps-cat-card {
  background: #141d2e !important;
  border-color: #1e2d45 !important;
  color: #e2e8f0 !important;
}
body.dark-mode .mps-cat-card:hover {
  background: #1a2640 !important;
  border-color: var(--mps-blue) !important;
}
body.dark-mode .mps-cat-card__name { color: #e2e8f0 !important; }
body.dark-mode .mps-cat-card__count { color: #8899aa !important; }

/* Artículos modo oscuro */
body.dark-mode article.card,
body.dark-mode .mps-product-grid article {
  background: #141d2e !important;
  border-color: #1e2d45 !important;
}
body.dark-mode article.card .content h3 a { color: #e2e8f0 !important; }
body.dark-mode article.card .content p { color: #8899aa !important; }

/* Hero más profundo en oscuro */
body.dark-mode .mps-hero {
  background: linear-gradient(135deg, #050a14 0%, #0d1829 40%, #122040 80%, #0d2151 100%) !important;
}

/* Buy box oscuro */
body.dark-mode .mps-buy-box {
  background: #141d2e !important;
  border-color: #1e2d45 !important;
}
body.dark-mode .mps-affiliate-card {
  background: #141d2e !important;
  border-color: #1e2d45 !important;
}

/* Encabezados oscuro */
body.dark-mode .mps-section-head h2 { color: #e2e8f0 !important; }
body.dark-mode .mps-section-head p  { color: #8899aa !important; }
body.dark-mode h1, body.dark-mode h2,
body.dark-mode h3, body.dark-mode h4 { color: #e2e8f0 !important; }
body.dark-mode .entry-title { color: #e2e8f0 !important; }
body.dark-mode a { color: var(--mps-cyan) !important; }
body.dark-mode a:hover { color: var(--mps-gold) !important; }

/* WooCommerce oscuro */
body.dark-mode .woocommerce-products-header { background: #111827 !important; }
body.dark-mode .woocommerce div.product .product_title { color: #e2e8f0 !important; }
body.dark-mode .woocommerce div.product .woocommerce-tabs ul.tabs li { background: #141d2e !important; border-color: #1e2d45 !important; color: #e2e8f0 !important; }
body.dark-mode .woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #0a0f1e !important; }
body.dark-mode .woocommerce .woocommerce-result-count,
body.dark-mode .woocommerce .woocommerce-ordering select { color: #e2e8f0 !important; background: #141d2e !important; border-color: #1e2d45 !important; }

/* Formularios oscuro */
body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="search"],
body.dark-mode textarea,
body.dark-mode select {
  background: #141d2e !important;
  border-color: #1e2d45 !important;
  color: #e2e8f0 !important;
}
body.dark-mode input::placeholder { color: #5a6a7a !important; }

/* Newsletter oscuro */
body.dark-mode .mps-newsletter { background: linear-gradient(135deg,#050a14,#0d1829) !important; }
body.dark-mode .mps-newsletter__form input { background: rgba(255,255,255,.08) !important; color: #e2e8f0 !important; border: 1px solid rgba(255,255,255,.15) !important; }

