/* ═══════════════════════════════════════════════════════════════════
   OFERTAS CATÁLOGO v1.1.0
   Plugin CSS consolidado — grid, cards, landing, cabeceras, banners
   ═══════════════════════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
:root {
  --oferta-bg: #f5f0eb;
  --oferta-card-bg: #ffffff;
  --oferta-text: #1a1a1a;
  --oferta-text-secondary: #555;
  --oferta-accent: #e63312;
  --oferta-accent-hover: #c42a0e;
  --oferta-price-color: #1a1a1a;
  --oferta-border: #e8e0d8;
  --oferta-shadow: 0 2px 16px rgba(0,0,0,0.06);
  --oferta-shadow-hover: 0 8px 32px rgba(0,0,0,0.12);
  --oferta-radius: 16px;
  --oferta-radius-sm: 10px;
  --oferta-font: "Inter", sans-serif;
  --oferta-octogono-bg: #1a1a1a;
}

/* ═══════════════════════════════════════════════════════════════════
   1. PAGE NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */
body.custom-background.catalogo_landing-template-default {
    background-color: rgba(236, 236, 236, 1);
}
header#main-header, footer#main-footer {
  display: none;
}
body.custom-background.catalogo_landing-template-default #page-container{
    padding-top: 0px!important;
    width:100%;
    margin: 0 auto;
    max-width:1200px;
}
body.custom-background.catalogo_landing-template-default.postid-7383 #page-container,
body.custom-background.catalogo_landing-template-default.postid-7574 #page-container{
    padding-top: 0px!important;
    width:100%;
    margin: 0 auto;
    max-width:unset;
}
.oc-page-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 90%;
  max-width: 1200px;
  margin: 20px auto 0;
}

.oc-page-tabs {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

.oc-page-tabs::-webkit-scrollbar {
  display: none;
}

.oc-pdf-download {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 15px 20px;
  height:auto;
  border-radius: 60px;
  background: rgba(56, 56, 56, 1);
  color: #fff !important;
  font-family: var(--oferta-font);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
  line-height:1em;
}

.oc-pdf-download:hover {
  background: #fe003e;
}

.oc-pdf-download svg {
  flex-shrink: 0;
}

/* ── Hamburger (hidden on desktop) ── */
.oc-nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: none;
  border-radius: 8px;
  background: rgba(213, 213, 213, 1);
  cursor: pointer;
  flex-shrink: 0;
}

.oc-nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.oc-nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.oc-nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.oc-nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

 .oc-page-tab {
    flex: 0 0 auto;
    padding: 15px 20px;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all 0.2s;
    opacity: 0.7;
    font-family: var(--oferta-font);
    width: auto;
    height: auto;
    border-radius: 60px;
    background-color: rgba(213, 213, 213, 1);
    color: rgba(99, 99, 99, 1);
    font-size: 18px;
    font-weight: 700;
    font-style: bold;
    letter-spacing: -0.65px;
    text-align: center;
}

.oc-page-tab.active {
  opacity: 1;
  background-color:#fe003e;
  color:white;
}
.oc-page-tab.active .oc-page-tab-num{
  color: white;
}

.oc-page-tab:hover {
  opacity: 0.7;
}

.oc-page-tab-num {
  font-size: 13px;
  font-weight: 600;
  color: black;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.oc-page-tab-count {
  font-size: 12px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  display:none;
}

.oc-page-tab.active .oc-page-tab-count {
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════
   2. PAGE CONTENT + GRID
   ═══════════════════════════════════════════════════════════════════ */

.oc-page {
  display: none;
  padding: 24px 0;
}
.oc-page-cabecera{
  background-color: #ffc88d;
  border-radius:25px;
}
.oc-page-cabecera__img {
  display: block;
  max-width: 400px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto 8px;
}
.oc-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 25px !important;
  align-items: stretch !important;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════
   3. PAGE CABECERA (título decorativo de página, Tipo A)
   ═══════════════════════════════════════════════════════════════════ */

.oc-page-cabecera {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px 16px 12px;
}

.oc-page-cabecera__titulo {
  margin: 0 !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: var(--oferta-text);
  font-family: var(--oferta-font) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.5px;
}

.oc-page-cabecera__desc {
  margin: 8px auto 0 !important;
  font-size: 16px !important;
  font-weight:800;
  color: var(--oferta-text);
  font-family: var(--oferta-font) !important;
  line-height: 1.6 !important;
  max-width: 500px;
}

/* ═══════════════════════════════════════════════════════════════════
   4. GROUP SECTION (grupo_destacado, Tipo B)
   ═══════════════════════════════════════════════════════════════════ */

.oc-group {
  border-radius: var(--oferta-radius);
  overflow: hidden;
  position: relative;
  min-height: 120px;
}

.oc-group--destacado {
  min-height: 180px;
}

/* Background layer */
.oc-group__bg {
  position: absolute;
  inset: 0;
  background-color: var(--group-bg, #f5f5f5);
  z-index: 0;
  overflow: hidden;
}

/* BG image on pseudo-element — rotatable via --group-bg-rotate */
.oc-group--has-bg .oc-group__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--group-bg-url);
  background-size: cover;
  background-position: var(--group-bg-position, center bottom);
  background-repeat: no-repeat;
  transform: rotate(var(--group-bg-rotate, 0deg));
  transform-origin: center;
}

/* 90°/-90°: swap width/height of pseudo so cover works on rotated aspect ratio.
   JS sets --group-w and --group-h from actual element dimensions. */
.oc-group--bg-perp .oc-group__bg::before {
  inset: auto;
  top: 50%;
  left: 50%;
  width: var(--group-h, 100%);
  height: var(--group-w, 100%);
  translate: -50% -50%;
  scale: 1.05;
}

.oc-group--bg-perp .oc-group__bg {
  overflow: visible;
}

/* Overlay for readability when there's a bg image */
.oc-group__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.oc-group--has-bg .oc-group__overlay {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--group-bg) 90%, transparent) 0%,
    color-mix(in srgb, var(--group-bg) 60%, transparent) 50%,
    color-mix(in srgb, var(--group-bg) 30%, transparent) 100%
  );
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .oc-group--has-bg .oc-group__overlay {
    background: rgba(0,0,0,0.2);
  }
}
/* No overlay toggle */
.oc-group--no-overlay .oc-group__overlay {
  display: none;
}
/* Content */
.oc-group__content {
  position: relative;
  z-index: 2;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.oc-group--destacado .oc-group__content {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
}

/* Group header — destacado: side panel */
.oc-group__header {
  flex: 0 0 auto;
  max-width: 200px;
  min-width: 140px;
}

.oc-group__title {
  margin: 0 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #1a1a1a;
  font-family: var(--oferta-font) !important;
  line-height: 1.15 !important;
  padding: 0 !important;
}

.oc-group--dark .oc-group__title {
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.oc-group--has-bg:not(.oc-group--dark) .oc-group__title {
  text-shadow: 0 1px 3px rgba(255,255,255,0.5);
}

.oc-group__desc {
  margin: 8px 0 0 !important;
  font-size: 11px !important;
  color: rgba(0,0,0,0.55);
  font-family: var(--oferta-font) !important;
  line-height: 1.5 !important;
}

.oc-group--dark .oc-group__desc {
  color: rgba(255,255,255,0.8);
}

/* Group label — non-destacado: small top label */
.oc-group__label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(0,0,0,0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--oferta-font);
  padding-left: 4px;
}

.oc-group--dark .oc-group__label {
  color: rgba(255,255,255,0.75);
}

/* Title as image — destacado */
.oc-group__title-img {
  display: block;
  max-width: 100%;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 8px;
}

/* Title as image — non-destacado */
.oc-group__label-img {
  display: block;
  max-width: 80%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto 8px;
}

/* Products inside group */
.oc-group__products {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.oc-group--destacado .oc-group__products {
  justify-content: space-evenly;
}

/* Product card inside group — transparent, no white bg */
.oc-group-product {
  flex: 1 1 0;
  min-width: 100px;
  text-align: center;
}

.oc-group-product .oferta-card {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}

.oc-group-product .oferta-nombre,
.oc-group-product .oferta-nombre__producto,
.oc-group-product .oferta-info,
.oc-group-product .variante-nombre {
  color: #222;
}

.oc-group--dark .oc-group-product .oferta-nombre,
.oc-group--dark .oc-group-product .oferta-nombre__producto,
.oc-group--dark .oc-group-product .oferta-nombre__marca,
.oc-group--dark .oc-group-product .oferta-nombre__formato,
.oc-group--dark .oc-group-product .oferta-info,
.oc-group--dark .oc-group-product .variante-nombre {
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.oc-group--dark .oc-group-product .oferta-nombre__marca {
  opacity: 0.8;
}

.oc-group--dark .oc-group-product .oferta-nombre__formato {
  opacity: 0.65;
}

.oc-group--dark .oc-group-product .oferta-precio,
.oc-group--dark .oc-group-product .currency,
.oc-group--dark .oc-group-product .int,
.oc-group--dark .oc-group-product .dec {
  color: #fff !important;
}

.oc-group--dark .oc-group-product .variante-dot {
  background: rgba(255,255,255,0.3);
}

.oc-group--dark .oc-group-product .variante-dot.active {
  background: #fff;
}

.oc-group-product .oferta-imagen img {
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
}

/* ── Solid group (color sólido, sin BG image, sin título) ── */
.oc-group--solid {
  min-height: auto;
}

.oc-group--solid.oc-group--destacado .oc-group__content {
  flex-direction: column;
  align-items: stretch;
  padding: 10px;
  gap: 0;
}

.oc-group--solid .oc-group__products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.oc-group--solid .oc-group-product {
  flex: 1 1 0;
  min-width: calc(25% - 4px);
}

/* ── Simple group (like solid layout but with BG image) ── */
.oc-group--simple {
  min-height: auto;
}

.oc-group--simple .oc-group__content {
  flex-direction: column;
  align-items: stretch;
  padding: 10px;
  gap: 0;
}

.oc-group--simple .oc-group__products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.oc-group--simple .oc-group-product {
  flex: 1 1 0;
  min-width: calc(25% - 4px);
}

/* ── Image group: ≤3 products — internal CSS grid ── */
.oc-group--withimage:not(.oc-group--pcols-4plus) .oc-group__content {
  display: grid;
  align-items: center;
  padding: 20px;
  gap: 8px;
}

.oc-group--withimage.oc-group--pcols-1 .oc-group__content {
  grid-template-columns: 1fr 1fr;
}

.oc-group--withimage.oc-group--pcols-2 .oc-group__content {
  grid-template-columns: 1fr 1fr 1fr;
}

.oc-group--withimage.oc-group--pcols-3 .oc-group__content {
  grid-template-columns: repeat(4, 1fr);
}

/* Products always start at column 2 (col 1 = BG visible or title) */
.oc-group--withimage:not(.oc-group--pcols-4plus) .oc-group__products {
  grid-column: 2 / -1;
  grid-row: 1;
  display: flex;
  gap: 8px;
}

/* Title image sits in column 1 */
.oc-group--withimage-title:not(.oc-group--pcols-4plus) .oc-group__header {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: none;
  min-width: 0;
}

.oc-group--withimage-title:not(.oc-group--pcols-4plus) .oc-group__title-img {
  max-height: unset;
  max-width: 90%;
}

/* ── Image group: 4+ products ── */
.oc-group--withimage.oc-group--pcols-4plus .oc-group__content {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 12px;
}

.oc-group--withimage.oc-group--pcols-4plus .oc-group__products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.oc-group--withimage.oc-group--pcols-4plus .oc-group-product {
  flex: 0 0 calc(25% - 6px);
}

/* 4+ with title: title in its own row, centered at 40% width */
.oc-group--withimage-title.oc-group--pcols-4plus .oc-group__header {
  text-align: center;
  max-width: 40%;
  margin: 0 auto;
  min-width: 0;
}

.oc-group--withimage-title.oc-group--pcols-4plus .oc-group__title-img {
  max-width: 100%;
}

/* ── Fullpage group: title row + centered products ── */
.oc-group--fullpage.oc-group--withimage-title .oc-group__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  gap: 16px;
}

.oc-group--fullpage.oc-group--withimage-title .oc-group__header {
  text-align: center;
  max-width: 45%;
  margin: 0 auto;
  min-width: 0;
}

.oc-group--fullpage.oc-group--withimage-title .oc-group__products {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.oc-group--fullpage.oc-group--withimage-title .oc-group-product {
  flex: 0 0 calc(32% - 6px);
}

/* ═══════════════════════════════════════════════════════════════════
   5. LOOSE PRODUCTS (zona_neutra, Tipo C)
   ═══════════════════════════════════════════════════════════════════ */

.oc-loose-product {
  grid-column: span 1;
}

.oc-loose-product .oferta-card {
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 0px 0px rgba(0,0,0,0.06) !important;
  border: 1px solid rgba(0,0,0,0.05) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  height: 100%;
}

.oc-loose-product .oferta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   6. BANNER (Tipo D — composición ancha al final de la página)
   ═══════════════════════════════════════════════════════════════════ */

.oc-page-banner {
  margin: 24px auto 0;
  width: 90%;
  max-width: 1200px;
  border-radius: var(--oferta-radius);
  overflow: hidden;
  position: relative;
  background: #f0f0f0;
}

.oc-page-banner--has-bg {
  background-size: cover;
  background-position: center;
}

.oc-page-banner__content {
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.oc-page-banner__text {
  font-family: var(--oferta-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--oferta-text);
  line-height: 1.5;
  flex: 1;
}

.oc-page-banner__img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Catalog banners (above legal, visible on all pages) ── */
.oc-banners {
  width: 90%;
  max-width: 1200px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oc-banner {
  border-radius: var(--oferta-radius);
  overflow: hidden;
}

.oc-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════
   7. OFERTA CARD BASE
   ═══════════════════════════════════════════════════════════════════ */

.oferta-card {
  font-family: var(--oferta-font);
  background: var(--oferta-card-bg);
  border-radius: var(--oferta-radius);
  border: 1px solid var(--oferta-border);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.oferta-card:hover {
  box-shadow: var(--oferta-shadow-hover);
  transform: translateY(-4px);
  border-color: transparent;
}

/* ── Single card ── */
.oferta-single > a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.oferta-imagen {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 225px;
}

.oferta-imagen img {
  width:98%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.oferta-card:hover .oferta-imagen img {
  transform: scale(1.05);
}

/* ── Info section ── */
.oferta-info {
  padding: 16px 20px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Precio ── */
.oferta-precio {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 1px;
  flex-wrap: wrap;
  line-height: 1;
}

.precio-prefijo {
  font-size: 11px;
  font-weight: 700;
  color: var(--oferta-text-secondary);
  background: var(--oferta-border);
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
  letter-spacing: 0.5px;
  font-family: var(--oferta-font);
}

.oferta-precio .currency {
  font-size: 22px;
  font-weight: 700;
  color: var(--oferta-price-color);
  align-self: flex-start;
  font-family: var(--oferta-font);
}

.oferta-precio .int {
  font-size: 46px;
  font-weight: 700;
  color: var(--oferta-price-color);
  line-height: 1;
  letter-spacing: -1px;
  font-family: var(--oferta-font);
}

.oferta-precio .dec,
.oferta-precio sup {
  font-size: 22px;
  font-weight: 700;
  color: var(--oferta-price-color);
  position: relative;
  top: -12px;
  font-family: var(--oferta-font);
}

/* ── Nombre producto (3 líneas: producto / marca / formato) ── */
.oferta-nombre {
  font-size: 13px;
  line-height: 1.4;
  color: var(--oferta-text-secondary);
  font-family: var(--oferta-font);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1px;

}

.oferta-nombre__producto {
  font-weight: 600;
  color: var(--oferta-text);
  color: rgba(0, 0, 0, 1);
  font-family: var(--oferta-font);
  font-size: 17px;
  font-style: semibold;
  letter-spacing: -0.8px;
}

.oferta-nombre__marca {
  font-weight: 800;
  text-transform: uppercase;
  color: var(--oferta-text-secondary);
  color: rgba(0, 0, 0, 1);
  font-family: var(--oferta-font);
  font-size: 19px;
  letter-spacing: -0.8px;
  line-height:19px;
}

.oferta-nombre__formato {
  font-weight: 600;
  color: var(--oferta-text);
  color: rgba(0, 0, 0, 1);
  font-family: var(--oferta-font);
  font-size: 17px;
  letter-spacing: -0.8px;
  line-height:19px;
}

/* ── CTA button ── */
.button_plazavea,
.oferta-card a.button_plazavea {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: var(--oferta-radius-sm);
  background: var(--oferta-accent);
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--oferta-font);
  transition: background 0.2s;
  margin: 0 20px 16px;
}

.button_plazavea:hover {
  background: var(--oferta-accent-hover);
}

/* ═══════════════════════════════════════════════════════════════════
   8. OCTÓGONOS
   ═══════════════════════════════════════════════════════════════════ */

.octogonos {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
  z-index: 3;
  max-width: 50%;
}

.octogono {
  display: block;
  width: auto;
  height: 87px;
  object-fit: contain;
}

.octogono--combo {
  width: auto;
  height:87px;
}

/* ═══════════════════════════════════════════════════════════════════
   9. MULTI-VARIANT CARD — SLIDER
   ═══════════════════════════════════════════════════════════════════ */

/* Slider container */
.oferta-variantes {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
  padding: 16px 0 8px;
}

.oferta-variantes::-webkit-scrollbar {
  display: none;
}

/* Each variant = one full-width slide */
.oferta-variantes .variante {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.oferta-variantes .variante a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 8px 16px;
  transition: all 0.2s;
  width: 100%;
  min-height: 225px;
  justify-content: center;
}

.oferta-variantes .variante img {
  max-width: 98%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s;
}

.oferta-variantes .variante a:hover img {
  transform: scale(1.08);
}

/* Dots navigation */
.variante-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 4px 0 8px;
}

.variante-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--oferta-border);
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  padding: 0;
}

.variante-dot.active {
  background: var(--oferta-accent);
  transform: scale(1.25);
}

/* Variant name — animated transition */
.variante-nombre {
  font-size: 12px;
  color: var(--oferta-text-secondary);
  text-align: left;
  padding: 4px 16px 8px;
  line-height: 1.3;
  font-family: var(--oferta-font);
  min-height: 3.6em;
  display: flex;
  flex-direction: column;
  gap: 1px;
  transition: opacity 0.15s ease;
}

.variante-nombre .oferta-nombre__producto {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.variante-nombre.fading {
  opacity: 0;
}

.oferta-multi .oferta-precio {
  padding: 4px 20px 0;
}

/* Single variant — no slider needed, centered */
.oferta-multi[data-variants="1"] .oferta-variantes {
  scroll-snap-type: none;
  overflow: visible;
}

.oferta-multi[data-variants="1"] .variante-dots {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════
   10. CATÁLOGO LANDING
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.catalogo-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
  background-size: 108% auto;
  background-position: top;
  min-height: 390px;
  height:40vh;
  display: flex;
  align-items: flex-end;
  width:90%;
  margin:0 auto;
}
body.postid-7383 .catalogo-hero, body.postid-7574 .catalogo-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
  background-size: cover;
  background-position: top;
  min-height: 390px;
  height:40vh;
  display: flex;
  align-items: flex-end;
  width:100%;
  margin:0 auto;
  }

.catalogo-hero-overlay {
  padding: 40px 32px 10px;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 30%);
  color: #fff;
}
p.no-ofertas{
  text-align: center;
  color:orangered
}
.catalogo-titulo {
  font-family: var(--oferta-font);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0 0 8px;
  opacity:0.01
}

.catalogo-titulo-img {
  display: block;
  max-width: 80%;
  max-height: 135px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto 8px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  
}
.catalogo-hero::before {
  content: '';
  position: absolute;
  /*background-image: url('https://loxol.es/wp-content/uploads/2026/03/Grupo@2x.png');*/
  background-size: 100% auto;
  background-position: center;
  width:175px;
  height: auto;
  aspect-ratio:498/238;
  z-index: 99;
  bottom: 45px;
  right: 30px;
}
.postid-7574 .catalogo-hero::before {
  content: '';
  position: absolute;
  background-image: url('https://loxol.es/wp-content/uploads/2026/03/Grupo@2x.png');
  background-size: 100% auto;
  background-position: center;
  width:175px;
  height: auto;
  aspect-ratio:498/238;
  z-index: 99;
  bottom: 67px;
  left: 30px;
}

body.postid-7383 .catalogo-hero::after, body.postid-7574 .catalogo-hero::after {
  content: '';
  position: absolute;
  background-image: url('https://loxol.es/wp-content/uploads/2026/03/logo@2x.png');
  background-size: 100% auto;
  background-position: center;
  width:250px;
  height: auto;
  aspect-ratio:726/278;
  z-index: 99;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.catalogo-supermercado {
  font-family: var(--oferta-font);
  font-size: 18px;
  font-weight: 500;
  opacity: 0.9;
  margin: 0 0 4px;
  opacity:0.01
}

.catalogo-fechas {
  font-family: var(--oferta-font);
  font-size: 14px;
  opacity: 1;
  margin: 0;
  padding-bottom:0!important;
}

.catalogo-stats {
  font-family: var(--oferta-font);
  font-size: 13px;
  opacity: 0.6;
  margin: 0;
  display: none;
}

/* ── Section navigation ── */
.catalogo-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 0 4px;
}

.catalogo-nav-item {
  font-family: var(--oferta-font);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--oferta-text);
  background: var(--oferta-card-bg);
  border: 1px solid var(--oferta-border);
  border-radius: 999px;
  padding: 8px 16px;
  transition: all 0.2s;
  white-space: nowrap;
}

.catalogo-nav-item:hover {
  border-color: var(--oferta-accent);
  color: var(--oferta-accent);
  box-shadow: 0 2px 8px rgba(230, 51, 18, 0.15);
}

/* ── Secciones ── */
.catalogo-seccion {
  margin-bottom: 48px;
  scroll-margin-top: 80px;
}

.seccion-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--oferta-border);
}

.seccion-emoji {
  font-size: 28px;
  line-height: 1;
}

.seccion-titulo {
  font-family: var(--oferta-font);
  font-size: 24px;
  font-weight: 700;
  color: var(--oferta-text);
  margin: 0;
  letter-spacing: -0.5px;
}

/* Grid dentro de sección */
.catalogo-seccion .ofertas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.oferta-grid-item {
  display: flex;
}

.oferta-grid-item .oferta-card {
  flex: 1;
}

.oferta-grid-item:has(.oferta-multi) {
  grid-column: span 2;
}

/* ── Legal ── */
.catalogo-legal {
  padding-top: 24px;
  border-top: 1px solid var(--oferta-border);
  max-width: 1200px;
  width:90%;
  margin:10px auto;
}

.catalogo-legal summary {
  font-family: var(--oferta-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--oferta-text-secondary);
  padding: 8px 0;
  list-style: none;
  pointer-events: none;
}

.catalogo-legal summary::-webkit-details-marker {
  display: none;
}

.catalogo-legal summary::marker {
  display: none;
  content: '';
}

.catalogo-legal details[open] summary ~ * {
  animation: none;
}

.catalogo-legal .legal-text {
  font-family: var(--oferta-font);
  font-size: 11px;
  line-height: 1.6;
  color: var(--oferta-text-secondary);
  padding: 16px 0;
  max-width: 1200px;
  width:100%;
}

/* ═══════════════════════════════════════════════════════════════════
   11. GENERIC OFERTAS GRID (fuera de shortcode)
   ═══════════════════════════════════════════════════════════════════ */

.ofertas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.ofertas-grid.ofertas-grid-multi {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* ═══════════════════════════════════════════════════════════════════
   12. DIVI COMPATIBILITY FIXES
   ═══════════════════════════════════════════════════════════════════ */

.entry-content .ofertas-grid,
.et_pb_post_content .ofertas-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.entry-content .oferta-card,
.et_pb_post_content .oferta-card {
  max-width: 100% !important;
  margin: 0 !important;
}

.entry-content .catalogo-seccion,
.et_pb_post_content .catalogo-seccion {
  max-width: 100% !important;
  width: 100% !important;
}

/* ═══════════════════════════════════════════════════════════════════
   13. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 992px) {
  .oc-nav-hamburger {
    display: flex;
  }

  .oc-page-tabs {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 8px;
    gap: 4px;
    z-index: 200;
  }

  .oc-page-tabs.open {
    display: flex;
  }

  .oc-page-nav {
    position: sticky;
    top: 0;
    flex-wrap: nowrap;
    padding: 8px 0;
    border-radius: 0;
  }

  .oc-page-tab {
    width: 100%;
    border-radius: 8px !important;
    padding: 12px 16px !important;
  }

  .oc-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .oc-page-cabecera {
    grid-column: 1 / -1 !important;
  }

  .oc-group {
    grid-column: 1 / -1 !important;
  }

  .oc-group--destacado .oc-group__content {
    flex-direction: column;
    align-items: stretch;
  }

  .oc-group__header {
    max-width: none;
  }

  /* Image groups: stack vertically */
  .oc-group--withimage .oc-group__content {
    display: flex !important;
    flex-direction: column;
    align-items: center;
  }

  .oc-group--withimage .oc-group__products {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    grid-column: auto !important;
  }

  .oc-group--withimage .oc-group-product {
    flex: 0 0 calc(50% - 4px);
  }

  .oc-group--withimage-title .oc-group__header {
    margin-bottom: 8px;
    grid-column: auto !important;
  }

  .oc-group--fullpage.oc-group--withimage-title .oc-group-product {
    flex: 0 0 calc(50% - 4px);
  }

  .oc-group--solid .oc-group-product {
    max-width: 50%;
  }

  .oc-group--simple .oc-group-product {
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  .oc-pdf-download {
    padding: 8px 14px;
    font-size: 12px;
  }

  .oc-group__title {
    font-size: 18px !important;
  }

  .oc-group__title-img {
    max-height: 80px;
  }

  .oc-group__label-img {
    max-height: 60px;
    max-width: 100%;
  }

  .oc-page-cabecera__titulo {
    font-size: 22px !important;
  }

  .oc-page-banner__content {
    flex-direction: column;
    padding: 16px 20px;
  }

  .catalogo-titulo {
    font-size: 28px;
  }

  .catalogo-titulo-img {
    max-height: 120px;
    max-width: 90%;
  }

  .catalogo-hero-overlay {
    padding: 24px 20px;
  }

  .catalogo-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .seccion-titulo {
    font-size: 20px;
    text-align: center;
    width: 100%;
  }

  .catalogo-seccion .ofertas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .oferta-grid-item:has(.oferta-multi) {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .oc-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .oc-group__content {
    padding: 12px 10px;
  }

  .oc-group--destacado .oc-group__content {
    padding: 16px 14px;
  }

  .oc-page-tab {
    padding: 10px 12px;
  }

  .oc-page-cabecera {
    padding: 16px 12px 8px;
  }

  .oc-page-cabecera__titulo {
    font-size: 20px !important;
  }

  .ofertas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .ofertas-grid.ofertas-grid-multi {
    grid-template-columns: 1fr;
  }

  .oferta-imagen {
    padding: 16px;
    min-height: 140px;
  }

  .oferta-imagen img {
    max-height: 120px;
  }

  .oferta-precio .int {
    font-size: 28px;
  }

  .oferta-precio .dec,
  .oferta-precio sup {
    font-size: 14px;
    top: -8px;
  }

  .oferta-variantes .variante a {
    min-height: 160px;
  }

  .oferta-variantes .variante img {
    max-height: 140px;
  }
}