/* ============================================================
 * WebGamers — main.css (versión LIGHT v1.2)
 * Patrón e-commerce chileno estándar
 * ============================================================ */

/* WP / WC accessibility helper — oculta texto de lectores de pantalla
   (sin esto WC mostraba "El precio original era: ... El precio actual es: ...") */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
  clip: auto !important;
  -webkit-clip-path: none;
  clip-path: none;
  color: #1a1a1a;
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}


:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-soft: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-soft: #f1f3f5;

  --brand: #0052cc;
  --brand-dark: #003d99;
  --brand-soft: #e6efff;

  --accent: #1a1a1a;
  --danger: #d62828;
  --success: #10b981;
  --warning: #f59e0b;

  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.04);
  --shadow:    0 4px 14px 0 rgba(15,23,42,.08);
  --shadow-lg: 0 12px 32px -6px rgba(15,23,42,.15);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --max: 1280px;
}

/* Customizer override */
body.wg-color-orange { --brand: #ff6a00; --brand-dark: #cc5500; --brand-soft: #fff1e6; }
body.wg-color-red    { --brand: #d62828; --brand-dark: #ab1f1f; --brand-soft: #ffe6e6; }
body.wg-color-green  { --brand: #10b981; --brand-dark: #0e9468; --brand-soft: #e0fbf3; }

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

html { color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4, h5 {
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--accent);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.875rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.375rem, 3vw, 2.125rem); }
h3 { font-size: 1.125rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--text-soft); }

button { font: inherit; cursor: pointer; }

ul, ol { padding-left: 1.2em; }

/* ─── Layout ─── */
.wg-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) { .wg-container { padding: 0 24px; } }

/* ─── Buttons ─── */
.wg-btn,
.button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  border: none;
  background: var(--brand);
  color: #fff;
  letter-spacing: .005em;
  transition: background .15s ease, box-shadow .2s ease, transform .05s;
  cursor: pointer;
}

.wg-btn:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button:hover,
.woocommerce-page .button:hover {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.wg-btn-ghost {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--line);
}
.wg-btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; box-shadow: none; }

.wg-btn-primary { background: var(--brand); color: #fff; }
.wg-btn-block { display: flex; width: 100%; }

/* ─── Top bar (rotativo) ─── */
.wg-topbar {
  background: var(--accent);
  font-size: 12px;
  color: rgba(255,255,255,.92);
}
.wg-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  gap: 16px;
}
.wg-topbar-rotator {
  position: relative;
  flex: 1;
  height: 38px;
  overflow: hidden;
}
.wg-topbar-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
  font-weight: 500;
}
.wg-topbar-msg.is-active { opacity: 1; transform: translateY(0); }
.wg-topbar a { color: rgba(255,255,255,.92); }
.wg-topbar a:hover { color: #fff; }
.wg-topbar-links { display: none; gap: 16px; }
@media (min-width: 768px) { .wg-topbar-links { display: flex; } }

/* ─── Header ─── */
.wg-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.wg-header-main {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 8px 0;
}
.wg-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wg-logo span { color: var(--brand); }
.wg-logo .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.wg-logo .custom-logo,
.wg-logo .wg-default-logo,
.wg-logo img {
  max-height: 56px !important;
  width: auto !important;
  height: auto !important;
  max-width: 200px !important;
  object-fit: contain !important;
  display: block !important;
}
@media (max-width: 600px) {
  .wg-logo .custom-logo,
  .wg-logo .wg-default-logo,
  .wg-logo img {
    max-height: 44px !important;
    max-width: 150px !important;
  }
}
.wg-logo-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--brand);
  border-radius: 8px;
  color: #fff;
}
.wg-default-logo {
  display: block;
  max-height: 90px;
  width: auto;
  height: auto;
  max-width: 320px;
  object-fit: contain;
  border-radius: 8px;
}
@media (max-width: 600px) {
  .wg-default-logo { max-height: 70px; max-width: 220px; }
}
/* En desktop, expandir el logo hacia la izquierda saliendo del padding del container */
@media (min-width: 1024px) {
  .wg-logo { margin-left: -32px; }
}
.wg-footer .wg-default-logo { max-height: 80px; max-width: 280px; border-radius: 8px; }

.wg-search { flex: 1; display: none; }
@media (min-width: 768px) { .wg-search { display: block; } }
.wg-search form {
  display: flex; align-items: center; gap: 8px;
  height: 46px;
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .15s ease;
}
.wg-search form:focus-within { border-color: var(--brand); }
.wg-search input {
  flex: 1; height: 100%; border: 0; background: transparent; color: var(--text);
  font-size: 14px;
}
.wg-search input::placeholder { color: var(--muted); }
.wg-search input:focus { outline: 0; }
.wg-search svg { color: var(--muted); }
.wg-search button {
  height: 30px;
  padding: 0 14px;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.wg-search button:hover { background: var(--brand-dark); }

.wg-nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.wg-icon-btn {
  position: relative;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--accent);
  border: 0;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.wg-icon-btn:hover { background: var(--bg-soft); color: var(--brand); }

.wg-cart-count {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px; font-weight: 800;
  font-family: Inter, sans-serif;
}

/* ─── Categories nav ─── */
.wg-catnav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.wg-catnav-inner {
  display: flex; align-items: stretch; justify-content: center; gap: 0;
  height: 52px;
  overflow-x: auto;
  scrollbar-width: none;
}
.wg-catnav-inner::-webkit-scrollbar { display: none; }
.wg-catnav-inner a,
.wg-catnav-inner li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text);
  text-decoration: none;
  transition: color .15s ease;
}
.wg-catnav-inner a::after,
.wg-catnav-inner li > a::after {
  content: "";
  position: absolute;
  left: 20px; right: 20px; bottom: 10px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.wg-catnav-inner a:hover,
.wg-catnav-inner li > a:hover { color: var(--brand); }
.wg-catnav-inner a:hover::after,
.wg-catnav-inner li > a:hover::after { transform: scaleX(1); }
.wg-catnav-inner .current-menu-item > a,
.wg-catnav-inner .current_page_item > a,
.wg-catnav-inner .current-product_cat-ancestor > a,
.wg-catnav-inner a.current-cat {
  color: var(--brand);
}
.wg-catnav-inner .current-menu-item > a::after,
.wg-catnav-inner .current_page_item > a::after,
.wg-catnav-inner .current-product_cat-ancestor > a::after { transform: scaleX(1); }
/* Mata cualquier viñeta del menú aunque WP genere <li> sueltos sin <ul> padre */
.wg-catnav-inner ul,
.wg-catnav-inner ol,
.wg-catnav-inner .wg-catnav-list,
.wg-catnav-inner .menu {
  display: contents;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}
.wg-catnav-inner li {
  display: inline-flex !important;   /* mata display:list-item que pinta el bullet */
  align-items: stretch;
  list-style: none !important;
  list-style-type: none !important;
  padding: 0;
  margin: 0;
  background: transparent;
}
.wg-catnav-inner li::marker { content: "" !important; }
.wg-catnav-inner li::before { content: none !important; display: none !important; }
@media (max-width: 767px) {
  .wg-catnav-inner { justify-content: flex-start; padding: 0 4px; }
  .wg-catnav-inner a,
  .wg-catnav-inner li > a { padding: 0 14px; font-size: 13px; }
  .wg-catnav-inner a::after,
  .wg-catnav-inner li > a::after { left: 14px; right: 14px; }
}

/* ─── Mobile search overlay ─── */
.wg-mobile-search-toggle { display: none; }
@media (max-width: 767px) { .wg-mobile-search-toggle { display: grid; } }
.wg-mobile-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.wg-mobile-search-overlay.is-open { opacity: 1; visibility: visible; }
.wg-mobile-search-inner {
  position: relative;
  background: #fff;
  margin: 64px 16px 0;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}
.wg-mobile-search-inner form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wg-mobile-search-inner input {
  flex: 1;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 16px;
  color: var(--text);
}
.wg-mobile-search-inner input:focus { outline: 0; }
.wg-mobile-search-close {
  background: var(--bg-soft);
  border: 0;
  width: 40px; height: 40px;
  border-radius: 999px;
  font-size: 24px;
  color: var(--text-soft);
  cursor: pointer;
  line-height: 1;
}
.wg-mobile-search-close:hover { background: var(--line); color: var(--accent); }

/* ─── Trust micro-band ─── */
.wg-trust {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.wg-trust-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
}
@media (min-width: 600px) { .wg-trust-inner { grid-template-columns: repeat(2, 1fr) auto repeat(2, 1fr); } }
@media (min-width: 1024px) { .wg-trust-inner { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; } }
.wg-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.wg-trust-icon {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--brand);
}
.wg-trust-text { line-height: 1.2; }
.wg-trust-text strong {
  display: block;
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
}
.wg-trust-text span {
  font-size: 12px;
  color: var(--muted);
}
.wg-trust-divider {
  display: none;
  width: 1px;
  height: 32px;
  background: var(--line);
}
@media (min-width: 600px) { .wg-trust-divider { display: block; } }

/* ─── Hero with slider + side banners ─── */
.wg-hero {
  background: var(--bg-soft);
  padding: 24px 0;
}
.wg-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 1024px) {
  .wg-hero-grid { grid-template-columns: 2fr 1fr; }
}

.wg-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16/8;
}
@media (min-width: 1024px) {
  .wg-slider { aspect-ratio: auto; min-height: 380px; }
}
.wg-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0;
  opacity: 0;
  transition: opacity .6s ease;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.wg-slide.is-active { opacity: 1; z-index: 1; }
.wg-slide-body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  overflow: hidden;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 5px 14px;
  border-radius: 0;
  border-top: 1px solid var(--line);
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
}
.wg-slide-eyebrow {
  display: none;
}
.wg-slide h2 {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  margin: 0;
  color: var(--accent);
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wg-slide p {
  display: none;
}
.wg-slide .wg-btn {
  flex: 0 0 auto;
  padding: 4px 10px;
  font-size: 11.5px;
  line-height: 1.2;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .wg-slide { padding: 0; }
  .wg-slide-body { padding: 6px 18px; gap: 12px; }
  .wg-slide h2 { font-size: 14px; }
}

.wg-slider-dots {
  position: absolute;
  bottom: auto;
  top: 14px;
  right: 14px;
  left: auto;
  transform: none;
  display: flex; gap: 8px;
  z-index: 3;
  background: rgba(255,255,255,.85);
  padding: 6px 10px;
  border-radius: 999px;
}
.wg-slider-dots button {
  width: 10px; height: 10px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,.25);
  cursor: pointer;
  transition: background .2s, width .2s;
}
.wg-slider-dots button.is-active { background: var(--brand); width: 24px; }

.wg-side-banners {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}
.wg-side-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.wg-side-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand); }
.wg-side-banner-body {
  position: relative;
  z-index: 1;
  max-width: 250px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px 14px;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px -4px rgba(15,23,42,.18);
}
.wg-side-banner h3 { font-size: 16px; margin: 0 0 4px; color: var(--accent); line-height: 1.2; }
.wg-side-banner p { font-size: 12px; color: var(--text-soft); margin: 0 0 6px; }
.wg-side-banner span.wg-link {
  color: var(--brand); font-weight: 700; font-size: 12px;
  display: inline-flex; align-items: center; gap: 4px;
}

/* ─── Sections ─── */
.wg-section {
  padding: 48px 0;
  background: var(--bg);
}
.wg-section-soft { background: var(--bg-soft); }
.wg-section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
}
.wg-section-head h2 { margin: 0; font-size: clamp(1.375rem, 2.5vw, 2rem); color: var(--accent); }
.wg-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.wg-section-head .wg-section-link {
  display: none; font-size: 14px; color: var(--brand); font-weight: 700;
}
@media (min-width: 768px) { .wg-section-head .wg-section-link { display: inline; } }

/* ─── Benefits band ─── */
.wg-benefits {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 600px) { .wg-benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .wg-benefits { grid-template-columns: repeat(4, 1fr); } }
.wg-benefit {
  display: flex; align-items: flex-start; gap: 14px;
}
.wg-benefit-icon {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: var(--radius);
}
.wg-benefit h3 { font-size: 15px; margin: 0 0 4px; color: var(--accent); }
.wg-benefit p { margin: 0; font-size: 13px; color: var(--muted); }

/* ─── Category grid ─── */
.wg-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 768px) { .wg-cats { grid-template-columns: repeat(4, 1fr); } }

.wg-cat {
  position: relative;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.wg-cat:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-1px); }
.wg-cat-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--bg-soft);
}
.wg-cat-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.wg-cat:hover .wg-cat-img img { transform: scale(1.04); }
.wg-cat-body { padding: 12px 14px 14px; text-align: center; }
.wg-cat-body h3 { margin: 0; font-size: 15px; color: var(--accent); }
.wg-cat-body p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Product cards ─── */
.wg-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 768px) { .wg-products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .wg-products { grid-template-columns: repeat(4, 1fr); } }

.wg-product {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.wg-product:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.wg-product-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-soft);
  overflow: hidden;
}
.wg-product-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.wg-product:hover .wg-product-image img { transform: scale(1.04); }
.wg-product-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 6px 12px;
  background: var(--danger);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 2px 8px rgba(214,40,40,.35);
  z-index: 2;
}
.wg-product-shipping {
  position: absolute; bottom: 10px; left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.95);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  z-index: 2;
}
.wg-product-image-hover {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 1;
}
.wg-product:hover .wg-product-image-hover { opacity: 1; }
.wg-product-fav {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #64748b;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.wg-product-fav:hover { color: var(--danger); border-color: var(--danger); }

.wg-product-body {
  flex: 1;
  display: flex; flex-direction: column;
  padding: 12px 14px 14px;
  gap: 6px;
}
.wg-product-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 600;
}
.wg-product-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.wg-product-title a { color: inherit; }
.wg-product-title a:hover { color: var(--brand); }

.wg-stars { display: flex; gap: 2px; color: var(--warning); align-items: center; }
.wg-stars span { color: var(--muted); font-size: 12px; margin-left: 4px; }

.wg-product-price {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto;
}
.wg-product-price .price-now,
.wg-product-price .woocommerce-Price-amount {
  font-family: Manrope, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}
/* Tachado del precio antiguo: línea horizontal centrada al medio del número */
.wg-product-price del,
.woocommerce ul.products li.product .price del,
.woocommerce div.product p.price del,
.woocommerce div.product span.price del,
.price del {
  position: relative;
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  opacity: .85;
}
.wg-product-price del::before,
.woocommerce ul.products li.product .price del::before,
.woocommerce div.product p.price del::before,
.woocommerce div.product span.price del::before,
.price del::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
  pointer-events: none;
}
.wg-product-price del .woocommerce-Price-amount,
.price del .woocommerce-Price-amount {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.wg-product-price ins,
.woocommerce ul.products li.product .price ins,
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins,
.price ins {
  background: transparent;
  text-decoration: none;
  color: var(--accent);
  font-weight: 800;
  vertical-align: middle;
}

.wg-product-cta { margin-top: 10px; }

/* ─── Brand strip ─── */
.wg-brands {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.wg-brands-inner {
  display: flex; align-items: center; justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
}
.wg-brand {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #94a3b8;
  letter-spacing: .03em;
  transition: color .15s ease;
  white-space: nowrap;
}
.wg-brand:hover { color: var(--accent); }

/* ─── Promo banners ─── */
.wg-promo-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .wg-promo-grid { grid-template-columns: 1fr 1fr; } }
.wg-promo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
  background: #fff;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.wg-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.wg-promo-body {
  position: relative; z-index: 2;
  padding: 18px 22px;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px -6px rgba(15,23,42,.25);
}
.wg-promo-body h3 { margin: 8px 0 6px; font-size: 22px; color: var(--accent); line-height: 1.2; }
.wg-promo-body p { color: var(--text-soft); font-size: 14px; margin: 0 0 10px; }

/* ─── FAQ ─── */
.wg-faq-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .wg-faq-grid { grid-template-columns: 1fr 2fr; } }
.wg-faq-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.wg-faq-item { border-bottom: 1px solid var(--line); }
.wg-faq-item:last-child { border-bottom: 0; }
.wg-faq-item summary {
  list-style: none;
  padding: 16px 22px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  color: var(--accent);
  gap: 12px;
}
.wg-faq-item summary::-webkit-details-marker { display: none; }
.wg-faq-item summary::after {
  content: "+";
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 16px;
  color: var(--text-soft);
  transition: transform .15s ease, background .15s ease, color .15s ease;
  flex-shrink: 0;
}
.wg-faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--brand);
  color: #fff;
}
.wg-faq-item .wg-faq-answer {
  padding: 0 22px 18px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

/* ─── Newsletter ─── */
.wg-newsletter {
  background: var(--brand-soft);
  text-align: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.wg-newsletter h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); color: var(--accent); }
.wg-newsletter p { margin: 8px auto 24px; max-width: 520px; color: var(--text-soft); }
.wg-newsletter form {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 480px; margin: 0 auto;
}
@media (min-width: 600px) { .wg-newsletter form { flex-direction: row; } }
.wg-newsletter input {
  flex: 1;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  font-size: 14px;
}
.wg-newsletter input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,82,204,.15); }

/* ─── Footer ─── */
.wg-footer {
  background: var(--accent);
  padding: 56px 0 0;
  font-size: 14px;
  color: rgba(255,255,255,.72);
}
.wg-footer-grid {
  display: grid; gap: 32px; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .wg-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.wg-footer h4 { color: #fff; font-size: 15px; margin: 0 0 16px; font-weight: 700; }
.wg-footer ul { list-style: none; padding: 0; margin: 0; }
.wg-footer ul li { margin-bottom: 8px; }
.wg-footer ul a { color: rgba(255,255,255,.72); }
.wg-footer ul a:hover { color: #fff; }
.wg-footer .wg-logo { color: #fff; }
.wg-footer .wg-logo span { color: var(--brand); filter: brightness(1.4); }
.wg-social { display: flex; gap: 10px; margin-top: 16px; }
.wg-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  color: rgba(255,255,255,.85);
  background: transparent;
}
.wg-social a:hover { border-color: #fff; color: #fff; }

.wg-footer-company {
  margin-top: 24px;
  padding: 10px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}
.wg-footer-company small { font-size: 12px; }
.wg-footer-bottom {
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}
.wg-payments {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.wg-pay-pill {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.wg-footer-payments {
  margin-top: 32px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.wg-footer-payments h4 {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
}
.wg-payments-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wg-pay-card {
  background: #fff;
  color: #0f172a;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  min-width: 80px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.wg-pay-card strong { color: var(--brand); }
.wg-footer-legal {
  display: inline-flex; gap: 8px; align-items: center;
}
.wg-footer-legal a { color: rgba(255,255,255,.7); }
.wg-footer-legal a:hover { color: #fff; }

/* ─── Newsletter incentivo ─── */
.wg-newsletter-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 10px;
}
.wg-newsletter-fineprint {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
}

/* ─── WooCommerce general overrides ─── */
.woocommerce, .woocommerce-page { color: var(--text); }

/* Archive de WooCommerce: forzar grid igual que .wg-products,
   porque WP envuelve los productos en <ul class="products columns-N"> */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
@media (min-width: 768px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: repeat(4, 1fr); }
}
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after { content: none !important; display: none !important; }

/* Las cards <article class="wg-product"> dentro del <ul.products> deben ocupar la celda completa */
.woocommerce ul.products .wg-product,
.woocommerce-page ul.products .wg-product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
}

/* Hard guard: la imagen del producto NUNCA se sale de la card */
.wg-product { min-width: 0; }
.wg-product-image { max-width: 100%; }
.wg-product-image img,
.wg-product-image a img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover;
}

.woocommerce ul.products li.product { background: transparent !important; box-shadow: none !important; }
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price ins,
.woocommerce-Price-amount { color: var(--accent); font-family: Manrope, sans-serif; font-weight: 800; }

.woocommerce span.onsale {
  background: var(--danger);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  min-height: auto;
  min-width: auto;
  line-height: 1.4;
  top: 10px;
  left: 10px;
  right: auto;
  margin: 0;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: #fff;
  color: var(--text);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { color: var(--brand); }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px rgba(0,82,204,.15); }

.woocommerce table.shop_table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
}
.woocommerce table.shop_table th { color: var(--accent); }
.woocommerce table.shop_table td,
.woocommerce table.shop_table th { border-color: var(--line); }

.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading,
.woocommerce .woocommerce-customer-details,
.woocommerce .woocommerce-order-details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.woocommerce .quantity .qty {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ─── Responsive nav menu ─── */
.wg-burger {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 0;
  color: var(--accent);
}
@media (min-width: 1024px) { .wg-burger { display: none; } }

.wg-mobile-menu {
  display: none;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.wg-mobile-menu.is-open { display: block; }
.wg-mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.wg-mobile-menu li { padding: 8px 0; }

/* ============================================================
 * Ajustes finos móvil (≤ 600px) — v1.9.3
 * Reduce alturas, padding y tipografía para que la home,
 * tienda y productos se vean limpios en pantallas pequeñas.
 * ============================================================ */
@media (max-width: 600px) {
  /* Header más compacto */
  .wg-header-main { min-height: 64px; gap: 8px; padding: 6px 0; }
  .wg-logo { font-size: 18px; gap: 8px; min-width: 0; }
  .wg-nav-actions { gap: 0; flex-shrink: 0; }
  .wg-icon-btn { width: 36px; height: 36px; }
  .wg-burger { width: 36px; height: 36px; }

  /* Top bar y catnav un poco más bajos */
  .wg-topbar { font-size: 11px; }
  .wg-topbar-inner { gap: 0; padding-right: 4px; padding-left: 4px; }
  .wg-topbar-inner, .wg-topbar-rotator { height: 32px; }
  .wg-topbar-msg {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 32px;
  }
  .wg-catnav-inner { height: 46px; }

  /* Secciones más compactas */
  .wg-section { padding: 32px 0; }
  .wg-section-head { margin-bottom: 18px; }
  .wg-section-head h2 { font-size: 1.2rem; }

  /* Hero */
  .wg-hero { padding: 16px 0; }
  .wg-slider { aspect-ratio: 4/3; }
  .wg-slide-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 14px 14px;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .wg-slide h2 {
    white-space: normal;
    overflow: hidden;
    text-overflow: clip;
    font-size: 15px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .wg-slide p {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-size: 12px;
    color: var(--text-soft);
    line-height: 1.3;
  }
  .wg-slide .wg-btn {
    padding: 8px 14px;
    font-size: 13px;
    align-self: flex-start;
  }
  .wg-slider-dots { top: 10px; right: 10px; padding: 4px 8px; }
  .wg-slider-dots button { width: 8px; height: 8px; }
  .wg-slider-dots button.is-active { width: 18px; }
  .wg-side-banner { min-height: 130px; padding: 12px; }
  .wg-side-banner-body { max-width: 100%; padding: 10px 12px; }
  .wg-side-banner h3 { font-size: 14px; }
  .wg-side-banner p { font-size: 11px; }

  /* Productos: tipografía y padding ajustados a cards de ~165px */
  .wg-product-body { padding: 10px 11px 12px; gap: 4px; }
  .wg-product-title { font-size: 13px; min-height: 34px; line-height: 1.3; }
  .wg-product-cat { font-size: 10px; }
  .wg-product-price { gap: 6px; }
  .wg-product-price .price-now,
  .wg-product-price .woocommerce-Price-amount { font-size: 17px; }
  .wg-product-price del { font-size: 12px; }
  .wg-product-badge { padding: 4px 8px; font-size: 11px; top: 8px; left: 8px; }
  .wg-product-fav { width: 28px; height: 28px; top: 8px; right: 8px; }
  .wg-product-cta .wg-btn,
  .wg-product-cta .button {
    font-size: 12.5px;
    padding: 9px 8px;
    letter-spacing: 0;
    gap: 4px;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }

  /* Categorías */
  .wg-cats { gap: 10px; }
  .wg-cat-body { padding: 10px 12px 12px; }
  .wg-cat-body h3 { font-size: 13px; }
  .wg-cat-body p { font-size: 11px; }

  /* Banda de marcas */
  .wg-brands { padding: 18px 0; }
  .wg-brand { font-size: 14px; }
  .wg-brands-inner { gap: 14px; }

  /* Promos */
  .wg-promo { min-height: 220px; padding: 14px; }
  .wg-promo-body {
    padding: 12px 14px;
    max-width: 100%;
    width: 100%;
  }
  .wg-promo-body h3 { font-size: 16px; margin: 4px 0 4px; }
  .wg-promo-body p { font-size: 12px; margin: 0 0 8px; }
  .wg-promo .wg-btn { padding: 8px 14px; font-size: 13px; }

  /* Newsletter */
  .wg-newsletter { padding: 36px 0; }
  .wg-newsletter h2 { font-size: 1.4rem; }
  .wg-newsletter form { gap: 8px; }
  .wg-newsletter input { font-size: 16px; } /* 16px evita zoom en iOS */

  /* Footer */
  .wg-footer { padding: 32px 0 16px; }
  .wg-footer-grid { gap: 24px; }
  .wg-footer h4 { margin-bottom: 8px; }
  .wg-payments-row { gap: 6px; flex-wrap: wrap; }
  .wg-pay-card { min-width: 0; padding: 6px 10px; font-size: 12px; }
  .wg-footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; text-align: left; }

  /* WooCommerce: prevenir scroll horizontal */
  body { overflow-x: hidden; }
  .woocommerce ul.products { gap: 12px; }
  .woocommerce-result-count, .woocommerce-ordering { font-size: 13px; }
}
