/* BariasClick - Tema corporativo claro (estilo sitio comercial/tecnologia) */
:root {
  --bc-bg: #f4f6fb;
  --bc-bg-alt: #ffffff;
  --bc-surface: #ffffff;
  --bc-surface-light: #eef1f8;
  --bc-primary: #d9232e;
  --bc-primary-dark: #b51621;
  --bc-accent: #ffb000;
  --bc-red: #d9232e;
  --bc-red-dark: #a80f19;
  --bc-text: #1a2438;
  --bc-text-muted: #5b6479;
  --bc-border: #e3e7f1;
  --bc-danger: #d92d43;
  --bc-success: #1a9d5c;
  --bc-radius: 12px;
  --bc-shadow: 0 10px 30px rgba(20,30,60,.08);
  --bc-font: 'Manrope', sans-serif;
  --bc-display: 'Sora', sans-serif;
}

/* Panel administrativo: variante oscura */
body.admin-body {
  --bc-bg: #0b1220;
  --bc-bg-alt: #111a2e;
  --bc-surface: #16213a;
  --bc-surface-light: #1d2b47;
  --bc-primary: #00d1b2;
  --bc-primary-dark: #00a892;
  --bc-accent: #4f8cff;
  --bc-text: #e8edf7;
  --bc-text-muted: #9aa8c7;
  --bc-border: #24314f;
  --bc-shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--bc-font);
  background: var(--bc-bg);
  color: var(--bc-text);
  line-height: 1.6;
}

a { color: var(--bc-primary); text-decoration: none; }
a:hover { color: var(--bc-accent); }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Barra superior de contacto ---------- */
.topbar {
  background: var(--bc-text);
  color: #fff;
  font-size: .82rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding: 6px 20px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #fff; opacity: .9; }
.topbar a:hover { opacity: 1; color: var(--bc-accent); }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.topbar .nav-bell { display: inline-flex; align-items: center; position: relative; }
.topbar .nav-bell-btn { color: #fff; opacity: .9; font-size: 1rem; padding: 0 2px; }
.topbar .nav-bell-btn:hover { color: var(--bc-accent); opacity: 1; }
.topbar .nav-bell-count { top: -5px; right: -7px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--bc-border);
  border-top: 3px solid var(--bc-red);
  box-shadow: 0 2px 10px rgba(20,30,60,.04);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(20,30,60,.12); }
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: flex-start;
  width: 190px;
  height: 54px;
  overflow: hidden;
}
.brand img {
  display: block;
  width: 190px;
  height: 54px;
  object-fit: cover;
  object-position: center 38%;
}
.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a { color: var(--bc-text); font-weight: 600; font-size: .95rem; position: relative; padding-bottom: 4px; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--bc-red); transition: width .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--bc-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
/* Contador del carrito en el menu: lo actualiza el "carrito instantaneo" (ver main.js) sin recargar la pagina. */
.cart-badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px;
  margin-left: 3px; border-radius: 20px; background: var(--bc-red); color: #fff;
  font-size: .68rem; font-weight: 800; line-height: 1; vertical-align: 2px;
}
.cart-badge.is-bumping { animation: bc-cart-bump .4s ease; }
@keyframes bc-cart-bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.4); } }
@media (prefers-reduced-motion: reduce) { .cart-badge.is-bumping { animation: none; } }
.nav-menu-group details { position: relative; }.nav-menu-group summary { list-style: none; cursor: pointer; color: var(--bc-text); font-weight: 600; font-size: .95rem; padding: 4px 0; white-space: nowrap; }.nav-menu-group summary::-webkit-details-marker { display: none; }.nav-menu-group summary::after { content: '\f282'; font-family: bootstrap-icons; font-size: .7rem; margin-left: 6px; }.nav-menu-group details[open] summary { color: var(--bc-primary); }.nav-submenu { position: absolute; right: 0; top: calc(100% + 12px); min-width: 180px; padding: 8px; background: #fff; border: 1px solid var(--bc-border); box-shadow: var(--bc-shadow); z-index: 120; }.nav-submenu a { display: block; padding: 9px 12px; color: var(--bc-text); font-size: .88rem; }.nav-submenu a:hover { background: var(--bc-surface-light); color: var(--bc-primary); }.nav-submenu-primary { font-weight: 800; border-top: 1px solid var(--bc-border); margin-top: 4px; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; color: var(--bc-text); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column; align-items: flex-start;
    padding: 16px 20px; display: none; gap: 14px;
    border-bottom: 1px solid var(--bc-border);
    box-shadow: 0 8px 16px rgba(20,30,60,.06);
  }
  .nav-links.open { display: flex; }
  .nav-menu-group { width: 100%; }.nav-menu-group details { width: 100%; }.nav-menu-group summary { padding: 0; }.nav-submenu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--bc-red); margin: 6px 0 0 8px; padding: 0 0 0 8px; }.nav-submenu a { padding: 7px 10px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.35) 45%, transparent 90%);
  transform: translateX(-120%);
  transition: transform .5s ease;
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20,30,60,.15); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--bc-primary); color: #fff; }
.btn-primary:hover { background: var(--bc-primary-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--bc-border); color: var(--bc-text); }
.btn-outline:hover { border-color: var(--bc-primary); color: var(--bc-primary); }
.btn-danger { background: var(--bc-danger); color: #fff; }
.btn-red { background: var(--bc-red); color: #fff; }
.btn-red:hover { background: var(--bc-red-dark); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  background: #131722;
  padding: 76px 0 68px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: ''; position: absolute; width: 36%; height: 100%; right: 0; top: 0;
  background: #d9232e; clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
}
.hero::after {
  content: 'B'; position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  font-family: var(--bc-display); font-size: clamp(18rem, 30vw, 32rem); line-height: 1;
  font-weight: 700; color: rgba(255,255,255,.06); pointer-events: none;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  padding: 5px 14px; border-radius: 20px; font-weight: 700; font-size: .8rem;
  margin-bottom: 18px; animation: bc-fade-up .6s ease both;
}
.hero h1 { font-family: var(--bc-display); font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1.04; margin: 0 0 20px; max-width: 760px; color: #fff; animation: bc-fade-up .7s ease .05s both; }
.hero h1 span { color: #ff4b54; }
.hero p { color: #c4c9d4; max-width: 650px; font-size: 1.08rem; animation: bc-fade-up .7s ease .15s both; }
.hero-actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; animation: bc-fade-up .7s ease .25s both; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); align-items: center; gap: 56px; position: relative; z-index: 2; }
.hero-copy { min-width: 0; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; color: #d9dce3; font-size: .82rem; animation: bc-fade-up .7s ease .35s both; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust i { color: #ff737a; font-size: 1rem; }
.btn-hero-outline { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.04); }
.btn-hero-outline:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.1); }
.hero-showcase { min-height: 420px; padding: 26px; background: #fff; position: relative; box-shadow: 0 28px 70px rgba(0,0,0,.3); animation: bc-showcase-in .8s cubic-bezier(.2,.8,.2,1) .18s both; }
.showcase-kicker { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; color: var(--bc-red); }
.showcase-product { display: flex; min-height: 330px; flex-direction: column; justify-content: space-between; color: var(--bc-text); }
.showcase-product img { width: 100%; height: 270px; object-fit: contain; padding: 12px; transition: transform .45s ease; }
.showcase-product:hover img { transform: scale(1.05) rotate(-1deg); }
.showcase-info { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-top: 1px solid var(--bc-border); padding-top: 14px; }
.showcase-info strong { font-size: 1rem; }
.showcase-info span { color: var(--bc-red); font-weight: 800; white-space: nowrap; }
.showcase-badge { position: absolute; right: -16px; top: 42px; background: #131722; color: #fff; padding: 10px 14px; font-size: .75rem; font-weight: 700; box-shadow: 0 8px 22px rgba(0,0,0,.24); }
.showcase-badge i { color: #ff646c; margin-right: 5px; }
.showcase-placeholder { display: grid; place-items: center; min-height: 330px; font-size: 9rem; color: var(--bc-border); }

@keyframes bc-showcase-in {
  from { opacity: 0; transform: translateX(30px) rotate(2deg); }
  to { opacity: 1; transform: translateX(0) rotate(0); }
}

/* ---------- Animaciones ---------- */
@keyframes bc-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-title { font-family: var(--bc-display); font-size: clamp(1.7rem, 3vw, 2.35rem); margin: 4px 0 8px; color: var(--bc-text); position: relative; padding-left: 16px; }
.section-title::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px;
  background: var(--bc-red); border-radius: 4px;
}
.section-subtitle { color: var(--bc-text-muted); margin-bottom: 32px; }
.section-eyebrow { color: var(--bc-red); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-eyebrow-light { color: #ffb7bb; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 32px; }
.section-heading .section-subtitle { margin-bottom: 0; }
.section-link { flex-shrink: 0; color: var(--bc-text); font-weight: 800; font-size: .88rem; padding-bottom: 6px; border-bottom: 2px solid var(--bc-red); }
.section-link:hover { color: var(--bc-red); }

.benefit-bar { background: #fff; border-bottom: 1px solid var(--bc-border); }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.benefit-grid > div { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 24px 20px; border-right: 1px solid var(--bc-border); }
.benefit-grid > div:first-child { padding-left: 0; }
.benefit-grid > div:last-child { border-right: 0; padding-right: 0; }
.benefit-grid i { flex: 0 0 38px; font-size: 1.4rem; color: var(--bc-red); }
.benefit-grid span { color: var(--bc-text-muted); font-size: .73rem; line-height: 1.35; }
.benefit-grid strong { display: block; color: var(--bc-text); font-size: .84rem; margin-bottom: 2px; }

.commercial-banner { background: var(--bc-red); color: #fff; position: relative; overflow: hidden; }
.commercial-banner::after { content: ''; position: absolute; width: 260px; height: 260px; right: 8%; top: -180px; border: 44px solid rgba(255,255,255,.1); transform: rotate(18deg); }
.commercial-banner-inner { min-height: 290px; display: flex; justify-content: space-between; align-items: center; gap: 48px; position: relative; z-index: 1; }
.commercial-banner h2 { font-family: var(--bc-display); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; max-width: 700px; margin: 7px 0 12px; color: #fff; }
.commercial-banner p { margin: 0; color: #ffe3e5; }
.commercial-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.btn-light { background: #fff; color: var(--bc-red); }
.btn-light:hover { background: #f8f8f8; color: var(--bc-red-dark); }
.btn-banner-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-banner-outline:hover { border-color: #fff; color: #fff; }

.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--bc-shadow); border-color: var(--bc-primary); }
.card-img-wrap { overflow: hidden; }
.card-img { width: 100%; height: 180px; object-fit: cover; background: var(--bc-surface-light); transition: transform .35s ease; }
.card:hover .card-img { transform: scale(1.06); }
/* Imagenes de catalogo (productos/servicios/resenas): mostrar la pieza completa,
   sin recortar. Fondo blanco para que las fotos con fondo blanco se integren. */
.card-img-wrap .card-img { object-fit: contain; background: #fff; padding: 10px; }
.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.05rem; margin: 0 0 8px; color: var(--bc-text); }
.card-text { color: var(--bc-text-muted); font-size: .9rem; flex: 1; }
.card-price { font-weight: 800; color: var(--bc-primary); font-size: 1.15rem; margin: 10px 0; }
.product-card-body .badge { align-self: flex-start; }
.product-buy-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.product-arrow { display: grid; place-items: center; width: 36px; height: 36px; background: var(--bc-text); color: #fff; transition: background .2s ease, transform .2s ease; }
.card:hover .product-arrow { background: var(--bc-red); transform: rotate(8deg); }
.service-icon { display: grid; place-items: center; width: 52px; height: 52px; background: rgba(217,35,46,.09); color: var(--bc-red); font-size: 1.45rem; margin-bottom: 6px; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700;
  background: rgba(11,94,215,.1); color: var(--bc-primary);
}
.badge-muted { background: rgba(91,100,121,.12); color: var(--bc-text-muted); }
.badge-success { background: rgba(26,157,92,.12); color: var(--bc-success); }
.badge-sale {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--bc-red); color: #fff; font-weight: 800; letter-spacing: .3px;
  animation: bc-pulse 1.8s ease-in-out infinite;
}
/* Insignias automaticas apiladas (productBadges() en Helpers.php): Oferta/Nuevo/Ultimas
   unidades pueden coexistir en la misma tarjeta, asi que van en una columna en la esquina
   en vez de competir todas por la misma posicion absoluta. */
.card-badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.card-badges .badge-sale { position: static; top: auto; left: auto; }
.badge-new { background: var(--bc-primary); color: #fff; font-weight: 800; }
.badge-urgent { background: #c9720b; color: #fff; font-weight: 800; }
.badge-rank { background: #16213a; color: #fff; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
/* Insignia de campana de temporada (San Valentin, Viernes Negro, etc.) sobre la tarjeta. */
.badge-campaign { background: var(--bc-red); color: #fff; font-weight: 800; letter-spacing: .2px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.product-rail-card .badge-rank { position: absolute; top: 12px; right: 12px; z-index: 2; }
/* Precio con descuento de campana: el precio viejo tachado al lado del nuevo. */
.card-price.has-campaign { color: var(--bc-red); }
.price-was { text-decoration: line-through; color: var(--bc-text-muted); font-weight: 600; font-size: .82em; margin-left: 4px; }
.checkout-campaign-tag { display: inline-block; background: rgba(226,35,26,.1); color: var(--bc-red); font-weight: 700; font-size: .72rem; padding: 1px 7px; border-radius: 12px; }
.checkout-coupon { margin: 12px 0; }
.checkout-coupon label { font-size: .8rem; }
.checkout-coupon input { text-transform: uppercase; }
/* Franja de campanas activas en la tienda. */
.campaign-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-radius: var(--bc-radius); background: linear-gradient(100deg, rgba(226,35,26,.08), rgba(11,94,215,.08)); border: 1px solid var(--bc-border); }
.campaign-strip > i { color: var(--bc-red); font-size: 1.1rem; }
.campaign-strip-title { font-weight: 800; font-size: .85rem; }
.campaign-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; background: var(--bc-red); color: #fff; font-size: .8rem; font-weight: 700; }
.campaign-chip b { font-weight: 900; }
.campaign-templates { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.campaign-form select[multiple] { min-height: 120px; }

@keyframes bc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226,35,26,.5); }
  50% { box-shadow: 0 0 0 6px rgba(226,35,26,0); }
}

/* ---------- Tienda ---------- */
.shop-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.shop-toolbar input, .shop-toolbar select { width: auto; max-width: 220px; }
.shop-result-count { color: var(--bc-text-muted); font-size: .85rem; margin: 0 0 14px; }
.product-card { padding: 0; }
.product-card-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.badge-outofstock { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(23,32,51,.85); color: #fff; }
.product-quick-add { padding: 0 18px 16px; }
/* Estante horizontal (mas vendidos / vistos recientemente): scroll con snap, mismo estilo
   de tarjeta que la grilla pero en ancho fijo para que se vea claro que se puede deslizar. */
.product-rail {
  display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 14px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.product-rail::-webkit-scrollbar { height: 7px; }
.product-rail::-webkit-scrollbar-thumb { background: var(--bc-border); border-radius: 8px; }
.product-rail-card { flex: 0 0 200px; scroll-snap-align: start; }
.product-rail .card-title { font-size: .95rem; }
@media (max-width: 640px) { .product-rail-card { flex-basis: 168px; } }
/* Spinner del boton "Agregando..." mientras el carrito instantaneo espera la respuesta. */
.btn-spin { display: inline-block; animation: bc-shape-spin .7s linear infinite; }
@media (prefers-reduced-motion: reduce) { .btn-spin { animation: none; } }
/* Aviso flotante de "agregado al carrito" (carrito instantaneo, ver main.js). */
.cart-toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 400; transform: translate(-50%, 12px);
  display: flex; align-items: center; gap: 8px; max-width: min(360px, calc(100vw - 32px));
  padding: 12px 18px; border-radius: 30px; background: #16213a; color: #fff;
  font-weight: 700; font-size: .88rem; box-shadow: 0 14px 32px rgba(15, 23, 42, .35);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.cart-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.cart-toast i { color: var(--bc-success, #2eb872); font-size: 1.05rem; flex: 0 0 auto; }
.cart-toast.is-error i { color: #ff8a80; }
.cart-toast.is-error { background: #3a1620; }
.breadcrumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--bc-text-muted); font-size: .85rem; margin-bottom: 18px; }
.breadcrumbs a { color: var(--bc-text-muted); }
.breadcrumbs a:hover { color: var(--bc-primary); }
.breadcrumbs i { font-size: .7rem; }
.product-sku { color: var(--bc-text-muted); font-size: .8rem; margin-left: 8px; }
.qty-stepper { display: flex; align-items: stretch; border: 1px solid var(--bc-border); border-radius: 8px; overflow: hidden; }
.qty-stepper input { border: 0; border-left: 1px solid var(--bc-border); border-right: 1px solid var(--bc-border); border-radius: 0; text-align: center; padding: 8px 4px; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { border: 0; background: var(--bc-surface-light); color: var(--bc-text); width: 34px; font-size: 1.1rem; cursor: pointer; line-height: 1; }
.qty-btn:hover { background: var(--bc-border); }
.qty-stepper-sm { max-width: 110px; }
.qty-stepper-sm input { width: 42px; padding: 6px 2px; }
.qty-stepper-sm .qty-btn { width: 26px; font-size: .95rem; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9rem; }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--bc-border);
  background: #fff;
  color: var(--bc-text);
  font-family: inherit;
  font-size: .95rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bc-primary); }
body.admin-body input, body.admin-body select, body.admin-body textarea { background: #fff; color: #172033; border-color: #71809d; }
body.admin-body input::placeholder, body.admin-body textarea::placeholder { color: #53627d; opacity: 1; }
body.admin-body select option { background: #fff; color: #172033; }
.form-card {
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  padding: 30px;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--bc-shadow);
}
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }

/* ---------- Alerts / Flash ---------- */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .92rem; line-height: 1.5; box-shadow: 0 6px 20px rgba(20,30,60,.12); animation: bc-alert-in .28s ease both; }
@keyframes bc-alert-in { from { opacity: 0; transform: translateY(-8px); } }
.alert > i { font-size: 1.15rem; flex-shrink: 0; margin-top: 1px; }
.alert-msg { flex: 1; min-width: 0; word-break: break-word; }
.alert-close { flex-shrink: 0; background: none; border: 0; font-size: 1.35rem; line-height: 1; cursor: pointer; color: inherit; opacity: .65; padding: 0 2px; }
.alert-close:hover { opacity: 1; }
.alert-success { background: rgba(26,157,92,.12); color: var(--bc-success); border: 1px solid rgba(26,157,92,.3); }
.alert-error { background: var(--bc-danger); color: #fff; border: 1px solid rgba(0,0,0,.15); font-weight: 600; box-shadow: 0 10px 30px rgba(217,45,67,.45); }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; background: var(--bc-surface); border-radius: var(--bc-radius); overflow: hidden; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--bc-border); font-size: .9rem; }
th { background: var(--bc-surface-light); color: var(--bc-text-muted); text-transform: uppercase; font-size: .75rem; letter-spacing: .5px; }
tr:last-child td { border-bottom: none; }
.table-responsive { overflow-x: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bc-text); color: #cdd3e0; padding: 50px 0 20px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { color: #fff; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #cdd3e0; }
.footer-grid a:hover { color: var(--bc-accent); }
.footer-bottom { text-align: center; color: #9aa3b8; font-size: .85rem; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

@media (max-width: 900px) {
  .hero { padding: 54px 0; }
  .hero::before { width: 100%; height: 36%; top: auto; bottom: 0; clip-path: polygon(0 34%, 100% 0, 100% 100%, 0 100%); }
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-showcase { width: min(100%, 540px); min-height: 360px; }
  .showcase-product { min-height: 280px; }
  .showcase-product img { height: 220px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid > div:nth-child(2) { border-right: 0; }
  .benefit-grid > div:first-child, .benefit-grid > div:last-child { padding: 20px; }
  .commercial-banner-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 54px; padding-bottom: 54px; gap: 28px; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 2.55rem; }
  .hero-trust { gap: 12px; }
  .hero-showcase { min-height: 330px; padding: 20px; }
  .showcase-badge { right: 10px; top: 42px; }
  .showcase-product img { height: 205px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid > div { border-right: 0; border-bottom: 1px solid var(--bc-border); padding: 17px 0 !important; }
  .benefit-grid > div:last-child { border-bottom: 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .commercial-actions, .commercial-actions .btn { width: 100%; }
  .commercial-actions .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Admin layout ---------- */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; background: var(--bc-bg-alt); border-right: 1px solid var(--bc-border);
  padding: 20px 0; flex-shrink: 0;
}
.admin-sidebar .brand { padding: 0 20px 20px; display: block; color: var(--bc-text); }
.admin-sidebar a {
  display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: var(--bc-text-muted); font-weight: 500;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--bc-surface); color: var(--bc-primary); border-right: 3px solid var(--bc-primary); }
.admin-content { flex: 1; padding: 30px; max-width: 100%; overflow-x: auto; background: var(--bc-bg); color: var(--bc-text); }
.admin-content h1, .admin-content h2, .admin-content h3 { color: var(--bc-text); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.stat-card { background: var(--bc-surface); border: 1px solid var(--bc-border); border-radius: var(--bc-radius); padding: 20px; }
.stat-card .value { font-size: 1.8rem; font-weight: 800; color: var(--bc-primary); }
.stat-card .label { color: var(--bc-text-muted); font-size: .85rem; }
.admin-mobile-bar { display: none; }
.admin-sidebar-overlay { display: none; }
@media (max-width: 900px) {
  .admin-mobile-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; background: var(--bc-bg-alt); border-bottom: 1px solid var(--bc-border);
    position: sticky; top: 0; z-index: 220;
  }
  .admin-mobile-bar .brand { color: var(--bc-text); font-family: var(--bc-display); font-weight: 700; }
  .admin-nav-toggle { border: 0; background: transparent; font-size: 1.5rem; line-height: 1; color: var(--bc-text); cursor: pointer; padding: 4px 6px; }
  .admin-wrapper { display: block; }
  .admin-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 260; width: 260px; max-width: 82vw;
    transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(0,0,0,.3);
    overflow-y: auto;
  }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-sidebar-overlay.is-open {
    display: block; position: fixed; inset: 0; z-index: 250; background: rgba(12,18,32,.5);
  }
  .admin-content { padding: 18px; max-width: 100vw; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; } .mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 30px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 10px; } .gap-2 { gap: 20px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--bc-text-muted); }

/* ---------- Promociones ---------- */
.promo-bar { position: relative; z-index: 110; display: flex; justify-content: center; align-items: center; gap: 20px; padding: 9px 48px 9px 20px; background: var(--bc-accent); color: #171717; font-size: .86rem; animation: bc-promo-drop .45s ease both; }
.promo-bar i { margin-right: 5px; }.promo-bar b { margin-left: 5px; text-transform: uppercase; }
.promo-rail, .promo-carousel { position: relative; }.promo-rail > .promo-bar, .promo-carousel .promo-banner { display: none; }.promo-rail > .promo-bar.is-current, .promo-carousel .promo-banner.is-current { display: flex; }.promo-carousel-next { position: absolute; right: 18px; top: 50%; z-index: 2; transform: translateY(-50%); border: 0; background: rgba(255,255,255,.16); color: #fff; width: 34px; height: 34px; cursor: pointer; }.promo-google-link { display: inline-flex; gap: 7px; align-items: center; color: var(--bc-primary); font-weight: 800; font-size: .82rem; }
.promo-bottom { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 150; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 13px 48px 13px 20px; background: var(--bc-primary); color: #fff; box-shadow: 0 12px 30px rgba(20,30,60,.25); animation: bc-fade-up .45s ease both; }.promo-bottom a { color: #fff; font-weight: 800; white-space: nowrap; }.promo-bottom button { position: absolute; right: 18px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.promo-bar button, .promo-close { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 1rem; }.promo-bar button { position: absolute; right: 20px; }
.promo-banner { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 34px max(20px, calc((100% - 1160px) / 2)); background: var(--bc-text); color: #fff; }.promo-banner h2 { margin: 5px 0; font-family: var(--bc-display); color: #fff; }.promo-banner p { margin: 0; color: #d7dce8; }.promo-banner .btn { flex-shrink: 0; }
.promo-overlay { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; align-items: safe center; justify-content: center; justify-content: safe center; padding: 20px; overflow-y: auto; background: rgba(12,18,32,.72); opacity: 0; transition: opacity .22s ease; }.promo-overlay[hidden] { display: none !important; }.promo-overlay.is-open { opacity: 1; }.promo-overlay > * { margin: auto; }
.promo-modal { width: min(100%, 480px); position: relative; padding: 38px; background: #fff; color: var(--bc-text); box-shadow: 0 24px 70px rgba(0,0,0,.3); transform: translateY(18px) scale(.97); transition: transform .22s ease; }.promo-overlay.is-open .promo-modal { transform: translateY(0) scale(1); }
.promo-modal h2 { font-family: var(--bc-display); font-size: 2rem; line-height: 1.1; margin: 8px 0; }.promo-modal p { color: var(--bc-text-muted); }.promo-close { position: absolute; right: 18px; top: 16px; color: var(--bc-text-muted); }.promo-discount { margin: 20px 0; padding: 12px; background: #fff4d6; color: #8a5900; font-weight: 800; font-size: 1.2rem; }.promo-discount small { display: block; font-size: .75rem; margin-top: 3px; }.promo-form { display: grid; gap: 10px; }.promo-skip { display: block; margin-top: 15px; text-align: center; font-size: .8rem; color: var(--bc-text-muted); }
.promo-media { width: 100%; max-height: 220px; object-fit: cover; margin: 16px 0; border: 1px solid var(--bc-border); }.form-help { display: block; margin-top: 5px; color: var(--bc-text-muted); font-size: .78rem; }.campaign-extend { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }.campaign-extend input, .campaign-extend select { width: auto; padding: 6px 8px; font-size: .78rem; }
.promo-inline-media { width: 34px; height: 24px; display: inline-block; vertical-align: middle; object-fit: cover; border-radius: 4px; margin-left: 8px; }.text-effect-shine { background: linear-gradient(110deg, currentColor 35%, var(--promo-accent) 50%, currentColor 65%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: bc-text-shine 2.4s linear infinite; }.text-effect-pulse { animation: bc-text-pulse 1.6s ease-in-out infinite; }.text-effect-slide { animation: bc-fade-up .65s ease both; }.text-effect-glow { color: var(--promo-accent); text-shadow: 0 0 12px color-mix(in srgb, var(--promo-accent), transparent 35%); animation: bc-text-glow 1.8s ease-in-out infinite alternate; }
.text-effect-bounce { display: inline-block; animation: bc-text-bounce 1.1s ease-in-out infinite; }
.text-effect-wiggle { display: inline-block; animation: bc-text-wiggle 1.4s ease-in-out infinite; transform-origin: 50% 90%; }
.text-effect-rainbow { background: linear-gradient(90deg, #ff5b5b, #ffb000, #3ddc84, #29a3ff, #b06bff, #ff5b5b); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: bc-text-rainbow 4.5s linear infinite; }
@keyframes bc-text-shine { to { background-position: -100% 0; } } @keyframes bc-text-pulse { 50% { transform: scale(1.035); } } @keyframes bc-text-glow { to { text-shadow: 0 0 22px var(--promo-accent); } }
@keyframes bc-text-bounce { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-9px); } 50% { transform: translateY(0); } 68% { transform: translateY(-4px); } 84% { transform: translateY(0); } }
@keyframes bc-text-wiggle { 0%, 100% { transform: rotate(0deg); } 20% { transform: rotate(-4deg); } 40% { transform: rotate(4deg); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(3deg); } }
@keyframes bc-text-rainbow { to { background-position: -300% 0; } }
@keyframes bc-promo-drop { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: translateY(0); } }
@keyframes bc-promo-pop-in { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
/* Ubicacion: burbuja flotante en la esquina */
.promo-corner {
  position: fixed; right: 18px; bottom: 18px; z-index: 150; width: min(320px, calc(100vw - 36px));
  background: #fff; color: var(--bc-text); border-radius: var(--bc-radius); box-shadow: 0 18px 50px rgba(20,30,60,.28);
  padding: 18px 40px 18px 18px; animation: bc-promo-pop-in .4s ease both; border-top: 3px solid var(--promo-accent);
}
.promo-corner strong { display: block; font-family: var(--bc-display); font-size: 1.05rem; margin-bottom: 4px; }
.promo-corner p { margin: 0 0 8px; color: var(--bc-text-muted); font-size: .86rem; }
.promo-corner .promo-media { max-height: 110px; border-radius: 8px; margin: 8px 0; }
.promo-corner button[data-promo-close] { position: absolute; top: 10px; right: 10px; border: 0; background: transparent; color: var(--bc-text-muted); cursor: pointer; }
.promo-corner .promo-discount { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 20px; background: rgba(217,35,46,.1); color: var(--bc-red); font-weight: 800; font-size: .82rem; }
/* Ubicacion: pantalla completa */
.promo-overlay-fullscreen .promo-modal { width: min(100%, 640px); padding: 52px 40px; text-align: center; }
.promo-overlay-fullscreen.is-open { background: rgba(8,12,24,.92); }
.promo-overlay-fullscreen .promo-modal h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.promo-overlay-fullscreen .promo-form { max-width: 360px; margin: 0 auto; }
.promo-bar-cta { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-weight: 800; text-decoration: underline; color: inherit; }

/*
 * Formas de promocion: la PUBLICACION COMPLETA adopta la forma elegida (no una insignia aparte).
 * IMPORTANTE: la forma (clip-path/border-radius) se pinta en una capa de fondo (::before), detras
 * del contenido (z-index -1, dentro de un stacking context propio via isolation:isolate). Asi el
 * boton de cerrar, el CTA y el formulario NUNCA quedan recortados fuera del area visible/clicable,
 * sin importar que tan angosta sea la forma (diamante, triangulo, corazon).
 */
.promo-shaped {
  width: min(340px, 90vw) !important; margin: 14px auto !important; flex-direction: column !important;
  text-align: center !important; align-items: center !important; justify-content: center !important;
  gap: 8px !important; padding: 42px 32px !important; background: transparent !important;
  color: #fff !important; left: auto !important; right: auto !important;
  position: relative !important; isolation: isolate; overflow: visible !important;
  /* La sombra va en el contenedor (no en ::before) para que siga la silueta recortada
     en vez de proyectar un rectangulo detras del circulo/diamante/etc. */
  filter: drop-shadow(0 16px 34px rgba(15, 23, 42, .34));
}
.promo-shaped::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--promo-accent, #ffb000);
}
/* Brillo/volumen sobre el color plano: luz arriba, leve sombra abajo. Se recorta con la
   misma forma (reglas ::after por forma mas abajo) y queda debajo del texto. */
.promo-shaped::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, 0) 42%, rgba(0, 0, 0, .16) 100%);
}
.promo-shaped p, .promo-shaped span, .promo-shaped strong, .promo-shaped h2, .promo-shaped .section-eyebrow, .promo-shaped small { color: inherit !important; }
.promo-shaped .promo-discount { background: rgba(255,255,255,.22) !important; color: #fff !important; }
.promo-shaped .promo-compact-hide { display: block !important; }
/*
 * La imagen/video del medio se acopla directamente a la forma completa (llena toda la
 * tarjeta, recortada con el mismo SVG que el fondo), no un recuadro chico adentro.
 */
.promo-shaped .promo-inline-media, .promo-shaped .promo-media {
  display: block !important; position: absolute !important; inset: 0 !important; z-index: -1 !important;
  width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important;
  aspect-ratio: auto !important; object-fit: cover !important; border: 0 !important; border-radius: 0 !important;
}
/* Con imagen/video de fondo el degradado se refuerza para que el texto se siga leyendo
   (sustituye al brillo suave de .promo-shaped::after por mayor especificidad). */
.promo-shaped.promo-has-media::after {
  background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.28) 45%, rgba(0,0,0,.74) 100%);
}
/* El boton de cerrar siempre queda encima, sin recortar. Se muestra como una "pastilla"
   con borde blanco y sombra propia: en formas con punta (diamante/triangulo/corazon) la
   esquina queda fuera de la silueta, y asi el boton se lee como una insignia intencional. */
.promo-shaped button[data-promo-close] {
  position: absolute !important; top: 6px !important; right: 6px !important; z-index: 5 !important;
  color: #fff !important; background: var(--promo-accent, #ffb000) !important;
  border: 2px solid #fff !important; border-radius: 50% !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .45) !important;
  width: 30px !important; height: 30px !important; display: flex !important; align-items: center !important; justify-content: center !important;
}
.promo-shaped.promo-has-media button[data-promo-close] { background: rgba(0, 0, 0, .55) !important; }
.promo-shaped.promo-bottom { left: 50% !important; transform: translateX(-50%) !important; }
.promo-shaped .promo-bar-cta, .promo-shaped .btn-outline, .promo-shaped .btn-light { color: #fff !important; border-color: rgba(255,255,255,.65) !important; }
/* El formulario/CTA del popup siempre visible y clicable por encima de la forma. */
.promo-shaped .promo-form, .promo-shaped .promo-form *, .promo-shaped > a.btn { position: relative; z-index: 2; }

/*
 * Cada forma usa una unica definicion SVG (ver partials/promotion.php) para recortar
 * TANTO el fondo de la tarjeta (::before) COMO la imagen/video del medio — asi la
 * imagen queda exactamente del mismo tamano/silueta que la forma elegida.
 */
/*
 * Tamano FIJO (no aspect-ratio): con contenido variable (titulo+mensaje+cuenta regresiva+
 * descuento+formulario en el popup), aspect-ratio no se respeta si el contenido necesita
 * mas alto de lo que el ancho permite — la caja crece y el circulo/diamante/etc. termina
 * siendo un ovalo o rombo estirado en vez de la forma real. Con ancho+alto fijos, ademas
 * de overflow controlado, la forma se mantiene exacta siempre.
 */
.promo-shaped.promo-shape-circle,
.promo-shaped.promo-shape-diamond,
.promo-shaped.promo-shape-triangle,
.promo-shaped.promo-shape-heart {
  width: min(320px, 88vw) !important; height: min(320px, 88vw) !important; overflow: hidden !important;
}
.promo-shaped.promo-shape-oval { width: min(340px, 88vw) !important; height: min(255px, 66vw) !important; overflow: hidden !important; }
/* El circulo y el ovalo tienen borde curvo por los cuatro lados: mas aire para que el
   texto no roce la curva. (Diamante/triangulo/corazon tienen su propio padding abajo.) */
.promo-shaped.promo-shape-circle { padding: 17% !important; }
.promo-shaped.promo-shape-oval { padding: 13% 15% !important; }
/* ---------------------------------------------------------------------------
 * VENTANA EMERGENTE / PANTALLA COMPLETA con forma decorativa.
 * El popup y el fullscreen traen demasiado contenido (titulo, mensaje, cuenta
 * regresiva, descuento, CTA y formulario) para caber dentro de un circulo/rombo
 * sin recortes ni barra de scroll. Aqui la forma NO envuelve toda la tarjeta:
 * es un "medallon" decorativo arriba — la imagen recortada con la forma, o un
 * disco de color si no hay imagen — y el resto fluye normal en una tarjeta
 * blanca rectangular. La animacion corre en el medallon, no en el texto.
 * (Barra, banner, esquina e inferior siguen tomando la forma completa.)
 * ------------------------------------------------------------------------- */
.promo-modal.promo-shaped {
  width: min(100%, 460px) !important; height: auto !important; overflow: visible !important;
  padding: 30px 26px !important; gap: 7px !important; filter: none !important;
  background: #fff !important; color: var(--bc-text) !important; justify-content: flex-start !important;
}
.promo-overlay-fullscreen .promo-modal.promo-shaped { width: min(100%, 560px) !important; }
.promo-modal.promo-shaped.promo-shape-circle,
.promo-modal.promo-shaped.promo-shape-oval,
.promo-modal.promo-shaped.promo-shape-diamond,
.promo-modal.promo-shaped.promo-shape-triangle,
.promo-modal.promo-shaped.promo-shape-heart {
  width: min(100%, 460px) !important; height: auto !important; padding: 30px 26px !important;
}
/* Colores legibles sobre la tarjeta blanca (revierte el color:#fff de .promo-shaped). */
.promo-modal.promo-shaped h2, .promo-modal.promo-shaped strong { color: var(--bc-text) !important; }
.promo-modal.promo-shaped h2 { font-size: clamp(1.3rem, 3.4vw, 1.75rem) !important; margin: 2px 0 !important; line-height: 1.14 !important; }
.promo-modal.promo-shaped p { color: var(--bc-text-muted) !important; font-size: .85rem !important; margin: 0 !important; }
.promo-modal.promo-shaped .section-eyebrow { color: var(--bc-primary) !important; font-size: .68rem !important; }
.promo-modal.promo-shaped .promo-countdown { color: var(--bc-text) !important; font-size: .78rem !important; }
.promo-modal.promo-shaped .promo-discount { background: #fff4d6 !important; color: #8a5900 !important; margin: 3px 0 !important; padding: 6px 12px !important; font-size: .88rem !important; }
/* Formulario compacto: ocupa menos alto para que el medallon con la forma se lleve el protagonismo. */
.promo-modal.promo-shaped .promo-form { gap: 7px !important; width: 100%; max-width: 284px; }
.promo-modal.promo-shaped .promo-form input, .promo-modal.promo-shaped .promo-form button { padding: 8px 10px !important; font-size: .82rem !important; }
.promo-modal.promo-shaped .promo-skip { margin-top: 7px !important; font-size: .73rem !important; color: var(--bc-text-muted) !important; }
.promo-modal.promo-shaped .promo-bar-cta, .promo-modal.promo-shaped .btn-outline { color: var(--bc-text) !important; border-color: var(--bc-border) !important; }
.promo-modal.promo-shaped button[data-promo-close] { background: rgba(20, 28, 46, .55) !important; border-color: rgba(255, 255, 255, .85) !important; }

/* Medallon con imagen: la foto/video recortada con la forma, subida al tope con order:-1.
   El aro de acento y el halo se dibujan con drop-shadow apilados: al ser filtro, siguen la
   silueta recortada (circulo/rombo/corazon), no un rectangulo. */
.promo-modal.promo-shaped .promo-media {
  position: static !important; inset: auto !important; z-index: auto !important; order: -1 !important;
  width: min(244px, 64vw) !important; height: min(244px, 64vw) !important;
  margin: 0 auto 14px !important; flex: 0 0 auto !important; object-fit: cover !important;
}
/* Medallon sin imagen: disco de color (el ::before pasa a ser un item de flex arriba). */
.promo-modal.promo-shaped::before {
  position: static !important; inset: auto !important; z-index: auto !important; order: -1 !important;
  width: min(204px, 56vw) !important; height: min(204px, 56vw) !important;
  margin: 0 auto 12px !important; flex: 0 0 auto !important; align-self: center !important;
}
.promo-modal.promo-has-media.promo-shaped::before { display: none !important; }
.promo-modal.promo-shaped::after { display: none !important; }

/* Carrusel de imagenes dentro del medallon (hasta 4). El contenedor lleva .promo-media, asi
   hereda tamano, recorte de forma, halo y animacion; las diapositivas se funden por opacidad. */
.promo-modal.promo-shaped .promo-media.promo-media-carousel { display: block !important; position: relative !important; overflow: hidden !important; background: #10192b !important; }
.promo-media-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .7s ease;
}
.promo-media-slide.is-current { opacity: 1; }
.promo-media-dots {
  position: absolute; left: 0; right: 0; bottom: 9px; z-index: 2;
  display: flex; gap: 5px; justify-content: center;
}
.promo-media-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .5);
  box-shadow: 0 0 3px rgba(0, 0, 0, .45); transition: background .3s ease, transform .3s ease;
}
.promo-media-dots i.is-current { background: #fff; transform: scale(1.35); }

/* Aro de acento + sombra base + halo suave permanente en el medallon (con o sin animacion elegida). */
.promo-modal.promo-shaped .promo-media,
.promo-modal.promo-shaped::before {
  filter:
    drop-shadow(0 0 1px var(--promo-accent, #ffb000))
    drop-shadow(0 0 1px var(--promo-accent, #ffb000))
    drop-shadow(0 16px 26px rgba(15, 23, 42, .34));
  animation: bc-medallion-halo 3.2s ease-in-out infinite;
}
@keyframes bc-medallion-halo {
  0%, 100% { filter:
    drop-shadow(0 0 1px var(--promo-accent, #ffb000))
    drop-shadow(0 0 1px var(--promo-accent, #ffb000))
    drop-shadow(0 16px 26px rgba(15, 23, 42, .34)); }
  50% { filter:
    drop-shadow(0 0 1px var(--promo-accent, #ffb000))
    drop-shadow(0 0 12px var(--promo-accent, #ffb000))
    drop-shadow(0 16px 26px rgba(15, 23, 42, .34)); }
}
@keyframes bc-medallion-spin {
  0% { transform: perspective(720px) rotateX(6deg) rotateY(0deg); }
  100% { transform: perspective(720px) rotateX(6deg) rotateY(360deg); }
}
@keyframes bc-medallion-pop {
  0% { opacity: 0; transform: scale(.3) rotate(-18deg); }
  55% { opacity: 1; transform: scale(1.12) rotate(6deg); }
  75% { transform: scale(.96) rotate(-2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* La animacion elegida corre en el medallon (transform), no en la tarjeta; el halo (filter)
   sigue en paralelo declarando las dos animaciones a la vez. */
.promo-modal.promo-shaped.promo-shape-anim-spin,
.promo-modal.promo-shaped.promo-shape-anim-bounce,
.promo-modal.promo-shaped.promo-shape-anim-float,
.promo-modal.promo-shaped.promo-shape-anim-appear,
.promo-modal.promo-shaped.promo-shape-anim-pulse,
.promo-modal.promo-shaped.promo-shape-anim-swing,
.promo-modal.promo-shaped.promo-shape-anim-wobble { animation: none !important; }
.promo-modal.promo-shaped.promo-shape-anim-spin::before,
.promo-modal.promo-shaped.promo-shape-anim-spin .promo-media { animation: bc-medallion-spin 9s linear infinite, bc-medallion-halo 3.2s ease-in-out infinite; }
.promo-modal.promo-shaped.promo-shape-anim-bounce::before,
.promo-modal.promo-shaped.promo-shape-anim-bounce .promo-media { animation: bc-shape-bounce 1.4s ease-in-out infinite, bc-medallion-halo 3.2s ease-in-out infinite; }
.promo-modal.promo-shaped.promo-shape-anim-float::before,
.promo-modal.promo-shaped.promo-shape-anim-float .promo-media { animation: bc-shape-float 3.4s ease-in-out infinite, bc-medallion-halo 3.2s ease-in-out infinite; }
.promo-modal.promo-shaped.promo-shape-anim-appear::before,
.promo-modal.promo-shaped.promo-shape-anim-appear .promo-media { animation: bc-medallion-pop .65s cubic-bezier(.34,1.56,.64,1) both, bc-medallion-halo 3.2s ease-in-out infinite; }
.promo-modal.promo-shaped.promo-shape-anim-pulse::before,
.promo-modal.promo-shaped.promo-shape-anim-pulse .promo-media { animation: bc-shape-pulse 2s ease-in-out infinite, bc-medallion-halo 3.2s ease-in-out infinite; }
.promo-modal.promo-shaped.promo-shape-anim-swing::before,
.promo-modal.promo-shaped.promo-shape-anim-swing .promo-media { animation: bc-shape-swing 2.4s ease-in-out infinite, bc-medallion-halo 3.2s ease-in-out infinite; transform-origin: top center; }
.promo-modal.promo-shaped.promo-shape-anim-wobble::before,
.promo-modal.promo-shaped.promo-shape-anim-wobble .promo-media { animation: bc-shape-wobble 3.6s ease-in-out infinite, bc-medallion-halo 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .promo-modal.promo-shaped .promo-media,
  .promo-modal.promo-shaped::before { animation: none !important; }
}

/* Fondo de la tarjeta con forma (campo "Fondo" del admin): ademas de la tarjeta blanca por
   defecto, se puede pintar con el color de acento (solid) o dejarla sin fondo sobre el
   telon oscuro del overlay (ghost). Ambas usan texto blanco. */
.promo-modal.promo-shaped.promo-modal-solid,
.promo-modal.promo-shaped.promo-modal-ghost { color: #fff !important; }
.promo-modal.promo-shaped.promo-modal-solid { background: var(--promo-accent, #ffb000) !important; }
.promo-modal.promo-shaped.promo-modal-ghost { background: transparent !important; box-shadow: none !important; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.promo-modal.promo-shaped.promo-modal-solid h2,
.promo-modal.promo-shaped.promo-modal-solid strong,
.promo-modal.promo-shaped.promo-modal-solid .section-eyebrow,
.promo-modal.promo-shaped.promo-modal-solid .promo-countdown,
.promo-modal.promo-shaped.promo-modal-ghost h2,
.promo-modal.promo-shaped.promo-modal-ghost strong,
.promo-modal.promo-shaped.promo-modal-ghost .section-eyebrow,
.promo-modal.promo-shaped.promo-modal-ghost .promo-countdown { color: #fff !important; }
.promo-modal.promo-shaped.promo-modal-solid p,
.promo-modal.promo-shaped.promo-modal-ghost p { color: rgba(255, 255, 255, .92) !important; }
.promo-modal.promo-shaped.promo-modal-solid .promo-discount,
.promo-modal.promo-shaped.promo-modal-ghost .promo-discount { background: rgba(255, 255, 255, .18) !important; color: #fff !important; }
.promo-modal.promo-shaped.promo-modal-solid .promo-form input,
.promo-modal.promo-shaped.promo-modal-ghost .promo-form input { background: rgba(255, 255, 255, .96) !important; border-color: transparent !important; text-shadow: none; }
.promo-modal.promo-shaped.promo-modal-solid .promo-skip,
.promo-modal.promo-shaped.promo-modal-ghost .promo-skip { color: rgba(255, 255, 255, .8) !important; }
.promo-modal.promo-shaped.promo-modal-solid .btn-outline,
.promo-modal.promo-shaped.promo-modal-ghost .btn-outline { color: #fff !important; border-color: rgba(255, 255, 255, .7) !important; }
.promo-modal.promo-shaped.promo-modal-solid button[data-promo-close],
.promo-modal.promo-shaped.promo-modal-ghost button[data-promo-close] { background: rgba(0, 0, 0, .38) !important; }
.promo-modal.promo-modal-solid.promo-shaped::before { background: rgba(255, 255, 255, .95) !important; }

/* Burbuja de precio opcional (campo "Descuento como burbuja" del admin): insignia circular
   tipo sticker de oferta, arriba a la izquierda del modal, encima del medallon. */
.promo-price-bubble {
  position: absolute; z-index: 6; top: 12px; left: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: clamp(64px, 17vw, 84px); height: clamp(64px, 17vw, 84px); border-radius: 50%;
  background: var(--promo-accent, #ffb000); color: #fff; text-shadow: none;
  line-height: 1; text-align: center; box-shadow: 0 6px 18px rgba(15, 23, 42, .42);
  animation: bc-bubble-in .5s cubic-bezier(.34, 1.56, .64, 1) both, bc-bubble-pulse 2.6s ease-in-out 1s infinite;
}
.promo-price-bubble strong { font-size: 1rem; font-weight: 900; }
.promo-price-bubble small { font-size: .54rem; text-transform: uppercase; letter-spacing: .05em; opacity: .92; margin-top: 2px; }
.promo-overlay-fullscreen .promo-price-bubble { width: clamp(74px, 15vw, 98px); height: clamp(74px, 15vw, 98px); }
.promo-overlay-fullscreen .promo-price-bubble strong { font-size: 1.15rem; }
@keyframes bc-bubble-in { from { opacity: 0; transform: rotate(-8deg) scale(0); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
@keyframes bc-bubble-pulse { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(-8deg) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .promo-price-bubble { animation: none; transform: rotate(-8deg); } }

.promo-shaped.promo-shape-circle::before,
.promo-shaped.promo-shape-circle::after,
.promo-shaped.promo-shape-circle .promo-media,
.promo-shaped.promo-shape-circle .promo-inline-media { clip-path: url(#promo-shape-circle); }

.promo-shaped.promo-shape-oval::before,
.promo-shaped.promo-shape-oval::after,
.promo-shaped.promo-shape-oval .promo-media,
.promo-shaped.promo-shape-oval .promo-inline-media { clip-path: url(#promo-shape-oval); }

.promo-shaped.promo-shape-diamond { padding: 22% 21% !important; }
.promo-shaped.promo-shape-diamond::before,
.promo-shaped.promo-shape-diamond::after,
.promo-shaped.promo-shape-diamond .promo-media,
.promo-shaped.promo-shape-diamond .promo-inline-media { clip-path: url(#promo-shape-diamond); }

.promo-shaped.promo-shape-triangle { justify-content: flex-end !important; padding: 12% 19% 15% !important; }
.promo-shaped.promo-shape-triangle::before,
.promo-shaped.promo-shape-triangle::after,
.promo-shaped.promo-shape-triangle .promo-media,
.promo-shaped.promo-shape-triangle .promo-inline-media { clip-path: url(#promo-shape-triangle); }

.promo-shaped.promo-shape-heart { padding: 14% 16% 22% !important; }
.promo-shaped.promo-shape-heart::before,
.promo-shaped.promo-shape-heart::after,
.promo-shaped.promo-shape-heart .promo-media,
.promo-shaped.promo-shape-heart .promo-inline-media { clip-path: url(#promo-shape-heart); }

/* La "Animacion de la forma" SOLO corre en ventana emergente y pantalla completa: ahi la
   forma es un medallon independiente (ver reglas .promo-modal.promo-shaped mas arriba) que
   puede moverse sin descolocar nada. En barra, banner, burbuja de esquina y barra inferior
   la forma queda FIJA: animar toda la pieza rompia su posicion (la barra inferior usa
   transform: translateX(-50%)), su animacion de entrada (la burbuja de esquina) y el
   carrusel de barra/banner. El recorte de la forma si se mantiene en todas las ubicaciones. */
.promo-shaped:not(.promo-modal).promo-shape-anim-spin,
.promo-shaped:not(.promo-modal).promo-shape-anim-bounce,
.promo-shaped:not(.promo-modal).promo-shape-anim-float,
.promo-shaped:not(.promo-modal).promo-shape-anim-appear,
.promo-shaped:not(.promo-modal).promo-shape-anim-pulse,
.promo-shaped:not(.promo-modal).promo-shape-anim-swing,
.promo-shaped:not(.promo-modal).promo-shape-anim-wobble { animation: none !important; }
@keyframes bc-shape-spin { to { transform: rotate(360deg); } }
@keyframes bc-shape-bounce {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  25% { transform: translateY(-15px) scale(.96, 1.05); }
  50% { transform: translateY(0) scale(1.04, .94); }
  70% { transform: translateY(-5px) scale(1, 1); }
}
@keyframes bc-shape-float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}
@keyframes bc-shape-appear { 0% { opacity: 0; transform: scale(.35); } 60% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes bc-shape-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes bc-shape-swing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes bc-shape-wobble {
  0%, 55%, 100% { transform: translateX(0) rotate(0); }
  12% { transform: translateX(-9px) rotate(-5deg); }
  26% { transform: translateX(7px) rotate(4deg); }
  40% { transform: translateX(-4px) rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .promo-shape-anim-spin, .promo-shape-anim-bounce, .promo-shape-anim-float, .promo-shape-anim-appear,
  .promo-shape-anim-pulse, .promo-shape-anim-swing, .promo-shape-anim-wobble { animation: none; }
}

/* ============================================================================
 * Vista previa de la "Forma decorativa" en el panel admin (promociones/editar y crear).
 * Reutiliza los mismos clip-path SVG (partials/promo-shape-defs.php) y los keyframes
 * de arriba, en un cuadro chico e independiente del render real.
 * ========================================================================== */
.shape-preview {
  display: flex; align-items: center; justify-content: center;
  min-height: 240px; padding: 18px; margin-top: 4px;
  background: var(--bc-surface-light); border: 1px dashed var(--bc-border);
  border-radius: var(--bc-radius); overflow: hidden;
}
/* Mismo montaje que la web real: el color (::before) y el brillo (::after) van en capas de
   fondo que se recortan con la forma; el texto queda encima SIN recortar y la sombra
   (filter) en el contenedor sigue la silueta. Clave: nunca clip-path + filter en el mismo
   elemento (algunos navegadores dejan de recortar cuando conviven). */
.shape-preview-box {
  position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  width: 150px; height: 150px; padding: 17%;
  text-align: center; color: #fff; font-weight: 800; font-size: .8rem; line-height: 1.2;
  filter: drop-shadow(0 12px 22px rgba(15, 23, 42, .3));
}
.shape-preview-box::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--shape-preview-accent, #ffb000); transition: background .15s ease;
}
.shape-preview-box::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 42%, rgba(0, 0, 0, .16) 100%);
}
.shape-preview-box span {
  position: relative; z-index: 1; max-width: 100%;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.shape-preview-box.is-none::before, .shape-preview-box.is-none::after { border-radius: 16px; }
.shape-preview-box.is-oval { width: 190px; height: 132px; }
.shape-preview-box.is-circle,
.shape-preview-box.is-diamond,
.shape-preview-box.is-triangle,
.shape-preview-box.is-heart { width: 168px; height: 168px; }
.shape-preview-box.is-circle::before, .shape-preview-box.is-circle::after { clip-path: url(#promo-shape-circle); }
.shape-preview-box.is-oval::before, .shape-preview-box.is-oval::after { clip-path: url(#promo-shape-oval); }
.shape-preview-box.is-diamond::before, .shape-preview-box.is-diamond::after { clip-path: url(#promo-shape-diamond); }
.shape-preview-box.is-diamond { padding: 22%; }
.shape-preview-box.is-triangle::before, .shape-preview-box.is-triangle::after { clip-path: url(#promo-shape-triangle); }
.shape-preview-box.is-triangle { align-items: flex-end; padding: 12% 19% 14%; }
.shape-preview-box.is-heart::before, .shape-preview-box.is-heart::after { clip-path: url(#promo-shape-heart); }
.shape-preview-box.is-heart { padding: 14% 16% 22%; }
.shape-preview-box.is-anim-spin { animation: bc-medallion-spin 9s linear infinite; }
.shape-preview-box.is-anim-bounce { animation: bc-shape-bounce 1.4s ease-in-out infinite; }
.shape-preview-box.is-anim-float { animation: bc-shape-float 3.4s ease-in-out infinite; }
.shape-preview-box.is-anim-appear { animation: bc-medallion-pop .65s cubic-bezier(.34, 1.56, .64, 1); }
.shape-preview-box.is-anim-pulse { animation: bc-shape-pulse 2s ease-in-out infinite; }
.shape-preview-box.is-anim-swing { animation: bc-shape-swing 2.4s ease-in-out infinite; transform-origin: top center; }
.shape-preview-box.is-anim-wobble { animation: bc-shape-wobble 3.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .shape-preview-box[class*="is-anim-"] { animation: none; }
}
.checkbox-inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .85rem; cursor: pointer; }
.checkbox-inline input { width: auto; margin: 0; }
.campaign-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.promo-countdown { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; padding: 2px 10px; border-radius: 20px; background: rgba(0,0,0,.14); font-weight: 800; font-variant-numeric: tabular-nums; font-size: .85em; }
.promo-modal .promo-countdown, .promo-banner .promo-countdown { display: flex; margin: 10px 0 0; width: fit-content; }
/* Modo movil de las promociones configurado desde el admin (campo "En telefono") */
@media (max-width: 720px) {
  .promo-mobile-hide-media .promo-media, .promo-mobile-hide-media .promo-inline-media { display: none !important; }
  .promo-mobile-compact .promo-compact-hide { display: none !important; }
}
.admin-grid-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 20px; }.admin-panel { background: var(--bc-surface); border: 1px solid var(--bc-border); border-radius: var(--bc-radius); padding: 24px; }.admin-panel h2 { margin-top: 0; }.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.admin-list-item { display: flex; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--bc-border); }.admin-list-item span { display: block; color: var(--bc-text-muted); font-size: .8rem; text-transform: capitalize; }.admin-count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; background: var(--bc-primary); color: #fff; font-size: .8rem; }.text-success { color: var(--bc-success); }.admin-page-head { margin-bottom: 24px; }
@media (max-width: 720px) { .admin-grid-two, .form-row { grid-template-columns: 1fr; }.promo-modal { padding: 32px 22px; }.promo-bar { justify-content: flex-start; font-size: .78rem; }.promo-banner { align-items: flex-start; flex-direction: column; }.promo-banner .btn { width: 100%; justify-content: center; }.promo-bottom { left: 10px; right: 10px; bottom: 10px; justify-content: flex-start; font-size: .82rem; } }
.dashboard-alerts { margin-bottom: 28px; }.alert-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }.alert-grid a { display: flex; align-items: center; gap: 10px; padding: 14px; color: var(--bc-text); background: var(--bc-surface-light); border-left: 3px solid var(--bc-primary); }.alert-grid a:hover { color: var(--bc-primary); transform: translateY(-2px); }.alert-grid i { color: var(--bc-accent); font-size: 1.2rem; }.alert-grid strong { display: block; font-size: 1.2rem; }.settings-section-title { border-top: 1px solid var(--bc-border); padding-top: 20px; margin-top: 24px; }
.partner-switches { display: flex; gap: 16px; flex-wrap: wrap; }.admin-switch { display: flex; align-items: center; gap: 8px; color: var(--bc-text); cursor: pointer; }.admin-switch input { width: auto; accent-color: var(--bc-primary); }
@media (max-width: 900px) { .alert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .alert-grid { grid-template-columns: 1fr; } }

/* ============ Mercadeo: conversion y urgencia ============ */

/* Interruptor de ajustes (reusa el estilo del panel de partners) */
.settings-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; color: var(--bc-text); }
.settings-switch input { width: auto; accent-color: var(--bc-primary); transform: scale(1.15); }

/* Pestanas de la pagina de configuracion */
.settings-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--bc-border); padding-bottom: 0; }
.settings-tab { appearance: none; border: 0; background: none; cursor: pointer; font: inherit; font-size: .86rem; font-weight: 700; color: var(--bc-text-muted); padding: 9px 14px; border-radius: 8px 8px 0 0; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .12s ease, background .12s ease; }
.settings-tab:hover { color: var(--bc-text); background: var(--bc-surface-light); }
.settings-tab.is-active { color: var(--bc-primary); border-bottom-color: var(--bc-primary); }
.settings-pane[hidden] { display: none; }
.settings-pane { animation: bc-fade-up .25s ease both; }
@media (max-width: 720px) {
  .settings-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Barra "te faltan RD$X para envio gratis" */
.freeship-bar { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--bc-radius); background: var(--bc-surface-light); border: 1px solid var(--bc-border); }
.freeship-bar.is-qualified { background: rgba(26,157,92,.10); border-color: rgba(26,157,92,.35); }
.freeship-msg { margin: 0 0 8px; font-size: .9rem; color: var(--bc-text); display: flex; align-items: center; gap: 8px; }
.freeship-msg i { color: var(--bc-primary); }
.freeship-bar.is-qualified .freeship-msg i { color: var(--bc-success); }
.freeship-track { height: 8px; border-radius: 6px; background: var(--bc-border); overflow: hidden; }
.freeship-fill { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--bc-primary), var(--bc-accent)); transition: width .5s ease; }
.freeship-bar.is-qualified .freeship-fill { background: var(--bc-success); }

/* Cuenta regresiva de campana en la ficha de producto */
.campaign-countdown { display: inline-flex; align-items: center; gap: 7px; margin: 12px 0 0; padding: 7px 14px; border-radius: 24px; background: rgba(217,35,46,.10); color: var(--bc-primary); font-weight: 700; font-size: .9rem; }
.campaign-countdown strong { font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.campaign-countdown.is-expired { opacity: .6; }

/* Boton comprar por WhatsApp */
.btn-wa { background: #25d366; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.btn-wa:hover { background: #1eb455; color: #fff; }

/* Barra fija de compra en movil (ficha de producto) */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bc-surface); border-top: 1px solid var(--bc-border); box-shadow: 0 -8px 24px rgba(20,30,60,.12); transform: translateY(110%); transition: transform .28s ease; }
.sticky-buy.is-visible { transform: translateY(0); }
.sticky-buy-info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.sticky-buy-name { font-weight: 700; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy-price { color: var(--bc-primary); font-weight: 800; }
.sticky-buy .btn { flex: 0 0 auto; }
@media (max-width: 768px) { .sticky-buy { display: flex; } body:has(.sticky-buy.is-visible) { padding-bottom: 74px; } }

/* Popup de salida (exit-intent) */
.exit-intent { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(12,18,32,.72); opacity: 0; transition: opacity .22s ease; }
.exit-intent[hidden] { display: none !important; }
.exit-intent.is-open { opacity: 1; }
.exit-intent-card { position: relative; width: 100%; max-width: 420px; background: var(--bc-surface); border: 1px solid var(--bc-border); border-radius: 16px; padding: 32px 28px; text-align: center; box-shadow: var(--bc-shadow); transform: translateY(12px) scale(.97); transition: transform .24s ease; }
.exit-intent.is-open .exit-intent-card { transform: translateY(0) scale(1); }
.exit-intent-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--bc-text-muted); cursor: pointer; }
.exit-intent-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--bc-primary); }
.exit-intent-card h3 { margin: 10px 0 6px; font-family: var(--bc-display); }
.exit-intent-card p { margin: 0 0 16px; color: var(--bc-text-muted); font-size: .92rem; }
.exit-intent-code { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 10px 18px; border: 2px dashed var(--bc-primary); border-radius: 10px; background: rgba(217,35,46,.06); color: var(--bc-primary); font-weight: 800; font-size: 1.1rem; letter-spacing: 1px; cursor: pointer; }
.exit-intent-code.is-copied { border-style: solid; border-color: var(--bc-success); color: var(--bc-success); background: rgba(26,157,92,.08); }

/* Avisos de prueba social en vivo */
.social-proof { position: fixed; left: 16px; bottom: 16px; z-index: 85; display: flex; align-items: flex-start; gap: 10px; max-width: 320px; padding: 14px 16px; background: var(--bc-surface); border: 1px solid var(--bc-border); border-radius: 12px; box-shadow: var(--bc-shadow); font-size: .85rem; color: var(--bc-text); opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .35s ease; }
.social-proof[hidden] { display: none !important; }
.social-proof.is-visible { opacity: 1; transform: translateY(0); }
.social-proof-body { line-height: 1.4; padding-right: 6px; }
.social-proof-ago { display: block; margin-top: 3px; font-size: .72rem; color: var(--bc-text-muted); }
.social-proof-close { position: absolute; top: 4px; right: 8px; background: none; border: 0; font-size: 1.1rem; line-height: 1; color: var(--bc-text-muted); cursor: pointer; }
@media (max-width: 768px) { .social-proof { left: 10px; right: 10px; bottom: 10px; max-width: none; } }

/* ============ Mercadeo: adquisicion y viralidad ============ */

/* Lista de correos en el footer */
.footer-news { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 0 24px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-news-copy h4 { margin: 0 0 4px; }
.footer-news-copy p { margin: 0; color: var(--bc-text-muted); font-size: .88rem; }
.footer-news-form { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-news-form input { min-width: 160px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--bc-border); background: var(--bc-surface); color: var(--bc-text); font: inherit; }
.footer-news-form .btn { flex: 0 0 auto; }
@media (max-width: 640px) { .footer-news-form { width: 100%; } .footer-news-form input { flex: 1 1 100%; } }

/* Panel "invita y gana" en Mi cuenta */
.referral-link { display: flex; gap: 8px; margin: 12px 0 10px; flex-wrap: wrap; }
.referral-link input { flex: 1; min-width: 220px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--bc-border); background: var(--bc-surface-light); color: var(--bc-text); font: inherit; }
.referral-link .btn { flex: 0 0 auto; }
.referral-share { margin: 0 0 10px; }
.referral-stats { margin: 0; font-size: .9rem; color: var(--bc-text-muted); }
.referral-stats strong { color: var(--bc-text); }

/* Botones de compartir en la ficha de producto */
.product-share { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.product-share span { font-size: .82rem; font-weight: 700; color: var(--bc-text-muted); }
.product-share a, .product-share button { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--bc-border); background: var(--bc-surface); color: var(--bc-text); font-size: 1rem; cursor: pointer; text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.product-share a:hover, .product-share button:hover { background: var(--bc-primary); border-color: var(--bc-primary); color: #fff; }

/* ============ Mercadeo: retencion y recompra ============ */

/* Usar credito en el checkout */
.checkout-credit { margin: 4px 0 10px; }
.checkout-credit-toggle { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--bc-border); border-radius: 8px; background: rgba(26,157,92,.06); cursor: pointer; font-size: .9rem; font-weight: 600; }
.checkout-credit-toggle input { width: auto; accent-color: var(--bc-success); transform: scale(1.15); }

/* Monedero en Mi cuenta */
.wallet-balance { font-family: var(--bc-display); font-size: 2rem; font-weight: 800; color: var(--bc-success); margin: 4px 0 6px; }
.wallet-history { list-style: none; padding: 0; margin: 12px 0 0; border-top: 1px solid var(--bc-border); }
.wallet-history li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--bc-border); font-size: .88rem; }
.wallet-history li span { color: var(--bc-text); }
.wallet-history li span small { display: block; color: var(--bc-text-muted); font-size: .75rem; }
.wallet-history li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wallet-history li b.pos { color: var(--bc-success); }
.wallet-history li b.neg { color: var(--bc-text-muted); }

/* "Avisame cuando vuelva" */
.stock-alert { padding: 14px; border: 1px dashed var(--bc-border); border-radius: var(--bc-radius); background: var(--bc-surface-light); }
.stock-alert input { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--bc-border); background: var(--bc-surface); color: var(--bc-text); font: inherit; }

/* ============ Mercadeo: resenas y confianza ============ */

.stars { display: inline-flex; gap: 2px; color: #f5a623; font-size: .95em; line-height: 1; vertical-align: middle; }
.stars .bi-star { color: #cdd3e0; }
.stars-count { margin-left: 6px; font-size: .8rem; color: var(--bc-text-muted); vertical-align: middle; }
.card-stars { display: block; margin: 2px 0 4px; }
.card-stars .stars { font-size: .82em; }
.review-summary { display: inline-flex; align-items: center; margin: 4px 0 8px; text-decoration: none; }

.reviews-block { border-top: 1px solid var(--bc-border); padding-top: 28px; }
.review-list { list-style: none; padding: 0; margin: 0 0 28px; }
.review-item { padding: 16px 0; border-bottom: 1px solid var(--bc-border); }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.review-head strong { font-size: .92rem; }
.review-verified { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; color: var(--bc-success); }
.review-date { font-size: .76rem; color: var(--bc-text-muted); margin-left: auto; }
.review-title { margin: 0 0 4px; font-weight: 700; }
.review-body { margin: 0; color: var(--bc-text); font-size: .92rem; }

.review-form h3 { margin-top: 0; }
/* Rating con estrellas sin JS: radios en orden inverso + row-reverse para el hover encadenado */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; font-size: 1.6rem; }
.star-input input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.star-input label { color: #cdd3e0; cursor: pointer; transition: color .12s ease; line-height: 1; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: #f5a623; }
.star-input input:focus-visible + label { outline: 2px solid var(--bc-primary); outline-offset: 2px; }

/* ============ Ajustes de tienda y ficha de producto ============ */

.text-muted { color: var(--bc-text-muted); }

/* Checkout: tarjeta de cuenta bancaria para transferencia */
.checkout-bank-accounts[hidden] { display: none; }
.bank-account-card { padding: 10px 12px; border: 1px dashed var(--bc-border); border-radius: 8px; background: var(--bc-surface-light); font-size: .88rem; margin-bottom: 8px; }
.bank-account-card strong { color: var(--bc-text); }

/* Solo para lectores de pantalla / SEO: presente en el DOM pero invisible. */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Boton azul para "Agregar al carrito" */
.btn-blue { background: #2563eb; color: #fff; }
.btn-blue:hover { background: #1d4ed8; color: #fff; }

/* Barra de beneficios compacta (solo /tienda) */
.benefit-bar-slim .benefit-grid > div { padding: 10px 16px; gap: 8px; }
.benefit-bar-slim .benefit-grid i { flex-basis: 20px; font-size: 1rem; }
.benefit-bar-slim .benefit-grid strong { font-size: .78rem; margin: 0; }
.benefit-bar-slim .benefit-grid span { font-size: 0; }
@media (max-width: 720px) {
  .benefit-bar-slim .benefit-grid { grid-template-columns: repeat(4, auto); overflow-x: auto; }
  .benefit-bar-slim .benefit-grid > div { padding: 9px 12px !important; border-right: 1px solid var(--bc-border); border-bottom: 0; white-space: nowrap; }
}

/* Ancho mas generoso; layout con barra lateral de filtros + grilla que llena el espacio */
.shop-wide { max-width: 1440px; }
.shop-layout { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 32px; padding: 24px 0 60px; align-items: start; }
.shop-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
@media (max-width: 520px) { .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* Barra lateral de filtros */
.shop-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 22px; }
.shop-filter-form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.shop-search { display: flex; gap: 6px; }
.shop-search input { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid var(--bc-border); border-radius: 8px; background: var(--bc-surface); color: var(--bc-text); font: inherit; }
.shop-search .btn { flex: 0 0 auto; }
.shop-facet h4 { margin: 0 0 8px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bc-text-muted); }
.shop-facet select { width: 100%; padding: 9px 11px; border: 1px solid var(--bc-border); border-radius: 8px; background: var(--bc-surface); color: var(--bc-text); font: inherit; }
.shop-facet-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; }
.shop-facet-list a { display: block; padding: 6px 10px; border-radius: 7px; color: var(--bc-text); font-size: .88rem; text-decoration: none; }
.shop-facet-list a:hover { background: var(--bc-surface-light); }
.shop-facet-list a.is-active { background: var(--bc-primary); color: #fff; font-weight: 700; }
.shop-clear { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--bc-text-muted); }
.shop-clear:hover { color: var(--bc-primary); }

.shop-main-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.shop-result-count { margin: 0; color: var(--bc-text-muted); font-size: .88rem; }
.shop-rss { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: #f26522; border: 1px solid var(--bc-border); border-radius: 8px; padding: 5px 10px; }
.shop-rss:hover { border-color: #f26522; color: #f26522; }

/* Boton "Filtros" (solo movil) */
.shop-filter-toggle { display: none; align-items: center; gap: 8px; margin: 20px 0 0; }
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; gap: 0; }
  .shop-filter-toggle { display: inline-flex; }
  .shop-sidebar { position: static; display: none; margin: 16px 0 8px; padding: 16px; border: 1px solid var(--bc-border); border-radius: var(--bc-radius); background: var(--bc-surface); }
  .shop-sidebar.is-open { display: flex; }
}

/* Acciones de tarjeta: comparar + agregar */
.product-card-actions { display: flex; align-items: center; gap: 8px; padding: 0 14px 14px; }
.product-card-actions .product-quick-add { flex: 1; margin: 0; }
.compare-check { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--bc-text-muted); cursor: pointer; white-space: nowrap; }
.compare-check input { width: auto; accent-color: var(--bc-primary); }

/* Barra flotante del comparador */
.compare-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 95; display: flex; align-items: center; gap: 14px; max-width: 92vw; padding: 10px 16px; background: var(--bc-surface); border: 1px solid var(--bc-border); border-radius: 999px; box-shadow: var(--bc-shadow); font-size: .85rem; }
.compare-bar[hidden] { display: none !important; }
.compare-bar-items { display: flex; gap: 6px; overflow: hidden; max-width: 40vw; }
.compare-bar-items span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; padding: 2px 8px; background: var(--bc-surface-light); border-radius: 999px; font-size: .76rem; }
.compare-bar .is-disabled { pointer-events: none; opacity: .45; }
.compare-bar-clear { background: none; border: 0; color: var(--bc-text-muted); font-size: .8rem; cursor: pointer; text-decoration: underline; }

/* Tabla del comparador */
.compare-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.compare-table th, .compare-table td { border: 1px solid var(--bc-border); padding: 12px 14px; text-align: left; vertical-align: top; font-size: .88rem; }
.compare-table th { width: 150px; background: var(--bc-surface-light); font-weight: 700; }
.compare-row-img td { text-align: center; }
.compare-row-img img { width: 120px; height: 120px; object-fit: contain; display: block; margin: 0 auto 8px; }
.compare-row-img strong { font-size: .9rem; }
.compare-price { font-weight: 800; color: var(--bc-primary); font-size: 1.05rem; }
.compare-specs, .compare-desc { white-space: pre-line; font-size: .82rem; color: var(--bc-text-muted); }

/* Ficha: insignias fuera de la imagen + fila de meta */
.product-gallery { position: relative; }
.product-badges-row .card-badges { position: static; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.product-meta-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }

/* Ficha: bloques de detalle (descripcion / especificaciones / garantia) */
.product-details { border-top: 1px solid var(--bc-border); padding-top: 24px; display: grid; gap: 24px; }
.product-detail-block .product-detail-body { color: var(--bc-text); font-size: .93rem; line-height: 1.65; white-space: pre-line; }

/* Stepper de cantidad: botones claramente pulsables */
.qty-btn { background: var(--bc-surface-light); border: 0; color: var(--bc-text); width: 38px; font-size: 1.15rem; cursor: pointer; line-height: 1; transition: background .12s ease; }
.qty-btn:hover { background: var(--bc-primary); color: #fff; }
.qty-btn:active { background: var(--bc-primary-dark); }

/* Admin: grilla de existencias por sucursal */
.branch-stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.branch-stock-grid[hidden] { display: none; }
.branch-stock-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--bc-border); border-radius: 8px; }
.branch-stock-item span { font-size: .85rem; font-weight: 600; }
.branch-stock-item small { display: block; font-weight: 400; color: var(--bc-text-muted); font-size: .72rem; }
.branch-stock-item input { width: 72px; text-align: center; }

/* Ficha: disponibilidad por sucursal */
.branch-availability { margin: 10px 0 4px; padding: 12px 14px; border: 1px solid var(--bc-border); border-radius: var(--bc-radius); background: var(--bc-surface-light); }
.branch-availability > strong { display: flex; align-items: center; gap: 6px; font-size: .85rem; margin-bottom: 8px; }
.branch-availability ul { list-style: none; margin: 0; padding: 0; }
.branch-availability li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--bc-border); font-size: .85rem; }
.branch-availability li:last-child { border-bottom: 0; }
.branch-availability li small { color: var(--bc-text-muted); }
.branch-availability li b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.branch-availability li.is-in b { color: var(--bc-success); }
.branch-availability li.is-out b { color: var(--bc-text-muted); font-weight: 500; }
.branch-availability > strong span { font-weight: 400; color: var(--bc-text-muted); }

/* ============ Ficha de producto: galeria multimedia ============ */
.gallery-main { position: relative; border: 1px solid var(--bc-border); border-radius: var(--bc-radius); overflow: hidden; background: var(--bc-surface); aspect-ratio: 4 / 3; }
.gallery-slide { display: none; width: 100%; height: 100%; }
.gallery-slide.is-active { display: block; }
.gallery-slide img, .gallery-slide video { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-slide img { background: #fff; }
.gallery-slide video { background: #000; }
.gallery-slide iframe { width: 100%; height: 100%; border: 0; display: block; }
.gallery-extlink { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; font-weight: 700; color: var(--bc-primary); text-decoration: none; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb { width: 62px; height: 62px; padding: 0; border: 2px solid var(--bc-border); border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--bc-surface-light); display: grid; place-items: center; }
.gallery-thumb.is-active { border-color: var(--bc-primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb-play { font-size: 1.4rem; color: var(--bc-primary); }
.price-off { display: inline-block; margin-left: 8px; font-size: .8rem; font-weight: 800; color: var(--bc-success); vertical-align: middle; }

/* ============ Ficha de producto: pestañas de detalle ============ */
.product-tabs { border-top: 1px solid var(--bc-border); padding-top: 8px; }
.product-tabs-nav { display: none; gap: 4px; border-bottom: 2px solid var(--bc-border); margin-bottom: 18px; flex-wrap: wrap; }
.product-tabs.is-enhanced .product-tabs-nav { display: flex; }
.product-tab { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -2px; padding: 12px 16px; font: inherit; font-weight: 700; color: var(--bc-text-muted); cursor: pointer; }
.product-tab.is-active { color: var(--bc-primary); border-bottom-color: var(--bc-primary); }
.product-tab-title { font-family: var(--bc-display); font-size: 1.25rem; margin: 0 0 10px; }
.product-tabs.is-enhanced .product-tab-title { display: none; }
.product-tabs.is-enhanced .product-tab-panel { display: none; }
.product-tabs.is-enhanced .product-tab-panel.is-active { display: block; }
.product-tab-panel + .product-tab-panel { margin-top: 26px; }
.product-tab-panel .product-detail-body { color: var(--bc-text); font-size: .93rem; line-height: 1.65; white-space: pre-line; }

/* ============ Admin: galeria de producto ============ */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 10px; }
.media-thumb { position: relative; border: 1px solid var(--bc-border); border-radius: 8px; overflow: hidden; display: block; }
.media-thumb img, .media-thumb video { width: 100%; height: 90px; object-fit: cover; display: block; background: #000; }
.media-tag { position: absolute; top: 4px; left: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: .65rem; padding: 1px 6px; border-radius: 4px; }
.media-del { display: flex; align-items: center; gap: 4px; padding: 5px 6px; font-size: .72rem; background: var(--bc-surface-light); cursor: pointer; }
.media-del input { width: auto; }

/* ============ Admin: guia SEO ============ */
.seo-list, .seo-tasks { margin: 8px 0 0; padding-left: 20px; }
.seo-list { list-style: disc; }
.seo-list li, .seo-tasks li { margin-bottom: 10px; line-height: 1.55; font-size: .9rem; }
.seo-tasks li { margin-bottom: 16px; }
.seo-ok { color: var(--bc-success); font-weight: 700; white-space: nowrap; }
.seo-no { color: var(--bc-danger); font-weight: 700; white-space: nowrap; }
.admin-panel code { background: var(--bc-surface-light); padding: 1px 6px; border-radius: 4px; font-size: .85em; }

/* Dashboard: tarjeta de novedad con pendientes */
.alert-grid a.has-pending { border-left-color: var(--bc-danger); background: rgba(217,45,67,.08); }
.alert-grid a.has-pending strong { color: var(--bc-danger); }

/* ============ Campana de notificaciones (header) ============ */
.nav-bell { position: relative; }
.nav-bell-btn { position: relative; background: none; border: 0; color: var(--bc-text); font-size: 1.15rem; cursor: pointer; padding: 2px 4px; line-height: 1; }
.nav-bell-btn:hover { color: var(--bc-primary); }
.nav-bell-count { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 999px; background: var(--bc-primary); color: #fff; font-size: .62rem; font-weight: 800; display: grid; place-items: center; }
.nav-bell-count[hidden] { display: none; }
.nav-bell-panel { position: absolute; right: 0; top: calc(100% + 12px); width: 300px; max-width: 78vw; padding: 8px; background: var(--bc-surface); border: 1px solid var(--bc-border); border-radius: 10px; box-shadow: var(--bc-shadow); z-index: 130; }
.nav-bell-panel[hidden] { display: none; }
.nav-bell-head { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bc-text-muted); padding: 6px 8px; }
.nav-bell-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.nav-bell-list li a, .nav-bell-list li { display: flex; gap: 8px; align-items: flex-start; padding: 9px 8px; font-size: .84rem; color: var(--bc-text); text-decoration: none; border-radius: 7px; line-height: 1.4; }
.nav-bell-list li a:hover { background: var(--bc-surface-light); }
.nav-bell-list li i { color: var(--bc-primary); margin-top: 1px; }
.nav-bell-empty { margin: 0; padding: 12px 8px; font-size: .82rem; color: var(--bc-text-muted); }
.nav-bell-empty[hidden] { display: none; }
@media (max-width: 900px) { .nav-bell-panel { right: auto; left: 0; } }

/* Barra de opt-in de notificaciones push */
.push-optin { position: fixed; left: 50%; transform: translate(-50%, 120%); bottom: 16px; z-index: 120; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 92vw; padding: 12px 16px; background: var(--bc-surface); border: 1px solid var(--bc-border); border-radius: 12px; box-shadow: var(--bc-shadow); font-size: .88rem; transition: transform .3s ease; }
.push-optin.is-in { transform: translate(-50%, 0); }
.push-optin button { border: 0; border-radius: 8px; padding: 7px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.push-optin button[data-yes] { background: var(--bc-primary); color: #fff; }
.push-optin button[data-no] { background: none; color: var(--bc-text-muted); text-decoration: underline; padding: 7px 4px; }

/* FAQ + texto SEO de la portada */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--bc-border); border-radius: 10px; background: var(--bc-surface, #fff); padding: 0; overflow: hidden; }
.faq-item > summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "\ff0b"; color: var(--bc-text-muted); font-weight: 400; }
.faq-item[open] > summary::after { content: "\2212"; }
.faq-answer { padding: 0 18px 16px; color: var(--bc-text-muted); line-height: 1.6; }
.home-seo-copy { max-width: 900px; }
.home-seo-text { color: var(--bc-text-muted); line-height: 1.7; }
.shop-cat-title { margin: 18px 0 8px; }
.shop-cat-intro { max-width: 900px; margin: 0 0 8px; color: var(--bc-text-muted); line-height: 1.7; }

/* ==========================================================
   Buscador global (portada + pagina /buscar)
   ========================================================== */
.hero-search { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 26px; max-width: 560px; background: #fff; border-radius: var(--bc-radius); padding: 6px 6px 6px 44px; box-shadow: 0 18px 44px rgba(0,0,0,.28); animation: bc-fade-up .7s ease .2s both; }
.hero-search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--bc-text-muted); font-size: 1.05rem; }
.hero-search-input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1rem; color: var(--bc-text); background: transparent; padding: 11px 4px; }
.hero-search-btn { flex-shrink: 0; border: 0; border-radius: 9px; background: var(--bc-red); color: #fff; font: inherit; font-weight: 700; padding: 11px 22px; cursor: pointer; transition: background .15s ease; }
.hero-search-btn:hover { background: var(--bc-red-dark); }

.hero-search-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 10px); background: #fff; border: 1px solid var(--bc-border); border-radius: var(--bc-radius); box-shadow: 0 24px 60px rgba(20,30,60,.28); overflow: hidden; z-index: 140; max-height: 68vh; overflow-y: auto; text-align: left; }
.hero-search-suggest[hidden] { display: none; }
.hs-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; color: var(--bc-text); border-bottom: 1px solid var(--bc-border); }
.hs-item:last-of-type { border-bottom: 0; }
.hs-item:hover, .hs-item.is-active { background: var(--bc-surface-light); }
.hs-img { width: 42px; height: 42px; flex-shrink: 0; border-radius: 8px; background: var(--bc-surface-light) center/cover no-repeat; }
.hs-ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--bc-surface-light); color: var(--bc-primary); font-size: 1.15rem; }
.hs-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hs-tx strong { font-size: .9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-tx small { font-size: .7rem; color: var(--bc-text-muted); text-transform: uppercase; letter-spacing: .04em; }
.hs-price { flex-shrink: 0; font-weight: 800; font-size: .85rem; color: var(--bc-text); }
.hs-all { display: block; text-align: center; padding: 12px 14px; font-weight: 700; font-size: .85rem; color: var(--bc-primary); text-decoration: none; background: var(--bc-surface-light); }
.hs-all:hover, .hs-all.is-active { background: #e4e8f3; }
.hs-empty { padding: 16px 14px; font-size: .85rem; color: var(--bc-text-muted); text-align: center; }

.search-page-form { position: relative; display: flex; align-items: center; gap: 8px; max-width: 620px; margin: 4px 0 30px; background: var(--bc-surface); border: 1px solid var(--bc-border); border-radius: var(--bc-radius); padding: 6px 6px 6px 44px; }
.search-page-form .bi-search { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--bc-text-muted); }
.search-page-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; padding: 11px 4px; color: var(--bc-text); }
.search-group { margin-top: 36px; }
.search-group + .search-group { margin-top: 48px; }
.search-group-title { display: flex; align-items: center; gap: 10px; font-family: var(--bc-display); font-size: 1.3rem; margin: 0 0 18px; }
.search-group-title span { font-size: .78rem; font-weight: 700; color: var(--bc-text-muted); background: var(--bc-surface-light); border-radius: 999px; padding: 2px 10px; }
.search-group .section-link { margin-top: 18px; display: inline-flex; }

@media (max-width: 700px) {
  .hero-search { max-width: none; padding-left: 40px; }
  .hero-search-icon { left: 14px; }
  .hero-search-btn { padding: 11px 16px; }
}

/* Franja del buscador cuando va suelto bajo el carrusel de la portada */
.home-search-strip { background: var(--bc-bg-alt); border-bottom: 1px solid var(--bc-border); padding: 18px 0; }
.hero-search-solo { margin: 0 auto; box-shadow: var(--bc-shadow); border: 1px solid var(--bc-border); }

/* ==========================================================
   Carrusel de anuncios de la portada (interactivo)
   ========================================================== */
.home-carousel { --car-ar: 16 / 5; --car-speed: 550ms; position: relative; background: #0e1626; overflow: hidden; }
.home-carousel--tall { --car-ar: 16 / 7; }
.home-carousel--full { --car-ar: auto; }
.home-carousel.is-boxed { background: transparent; padding: 18px 0; overflow: visible; }
.home-carousel.is-boxed .carousel-boxed-wrap { position: relative; border-radius: var(--bc-radius); overflow: hidden; box-shadow: var(--bc-shadow); }

.home-carousel .carousel-viewport { position: relative; overflow: hidden; }
.home-carousel .carousel-track { display: flex; will-change: transform; transition: transform var(--car-speed) cubic-bezier(.4, 0, .2, 1); }
.home-carousel .carousel-slide { position: relative; flex: 0 0 100%; max-width: 100%; overflow: hidden; aspect-ratio: var(--car-ar); background: #0e1626; }
.home-carousel--full .carousel-slide { aspect-ratio: auto; height: 84vh; min-height: 460px; }

/* Fondo: imagen / video / iframe */
.home-carousel .cs-bg { position: absolute; inset: 0; z-index: 1; }
.home-carousel .cs-bg picture, .home-carousel .cs-bg img,
.home-carousel .cs-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.home-carousel .cs-bg iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; min-width: 177.78vh; min-height: 56.25vw; border: 0; pointer-events: none; }

/* Diapositiva de marca (respaldo sin anuncios) */
.home-carousel .carousel-slide--brand { background: #131722; }
.home-carousel .carousel-slide--brand::before { content: ''; position: absolute; z-index: 1; width: 38%; height: 100%; right: 0; top: 0; background: var(--accent, #d9232e); clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%); opacity: .92; }

/* Velo de legibilidad */
.home-carousel .cs-scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cs-scrim--dark.at-left { background: linear-gradient(90deg, rgba(6,10,18,.8), rgba(6,10,18,.28) 55%, transparent 82%); }
.cs-scrim--dark.at-right { background: linear-gradient(270deg, rgba(6,10,18,.8), rgba(6,10,18,.28) 55%, transparent 82%); }
.cs-scrim--dark.at-center { background: linear-gradient(0deg, rgba(6,10,18,.72), rgba(6,10,18,.3)); }
.cs-scrim--light.at-left { background: linear-gradient(90deg, rgba(255,255,255,.92), rgba(255,255,255,.42) 55%, transparent 82%); }
.cs-scrim--light.at-right { background: linear-gradient(270deg, rgba(255,255,255,.92), rgba(255,255,255,.42) 55%, transparent 82%); }
.cs-scrim--light.at-center { background: linear-gradient(0deg, rgba(255,255,255,.88), rgba(255,255,255,.42)); }

.home-carousel .cs-cover { position: absolute; inset: 0; z-index: 3; }

/* Texto encima */
.home-carousel .cs-anchor { position: absolute; inset: 0; z-index: 4; display: flex; padding: clamp(18px, 4.5vw, 58px); pointer-events: none; }
.cs-anchor.x-left { justify-content: flex-start; } .cs-anchor.x-center { justify-content: center; } .cs-anchor.x-right { justify-content: flex-end; }
.cs-anchor.y-top { align-items: flex-start; } .cs-anchor.y-middle { align-items: center; } .cs-anchor.y-bottom { align-items: flex-end; }
.home-carousel .cs-content { pointer-events: auto; display: flex; flex-direction: column; gap: 14px; max-width: min(600px, 90%); }
.cs-anchor.x-center .cs-content { align-items: center; text-align: center; }
.cs-anchor.x-right .cs-content { align-items: flex-end; text-align: right; }
.home-carousel .cs-content.has-box { background: rgba(8,12,20,.52); backdrop-filter: blur(3px); padding: clamp(18px, 3vw, 30px); border-radius: 16px; }
.home-carousel .cs-theme-dark.has-box { background: rgba(255,255,255,.78); }
.cs-theme-light .cs-content, .cs-theme-light .cs-headline { color: #fff; }
.cs-theme-light .cs-sub { color: rgba(255,255,255,.92); }
.cs-theme-dark .cs-content, .cs-theme-dark .cs-headline { color: #101828; }
.cs-theme-dark .cs-sub { color: rgba(16,24,40,.82); }

.home-carousel .cs-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; padding: 6px 13px; border-radius: 20px; background: var(--accent, #d9232e); color: #fff; }
.home-carousel .cs-headline { font-family: var(--bc-display); font-weight: 700; line-height: 1.06; margin: 0; }
.cs-h-m { font-size: clamp(1.35rem, 3vw, 2rem); }
.cs-h-l { font-size: clamp(1.8rem, 4.6vw, 3.2rem); }
.cs-h-xl { font-size: clamp(2.1rem, 6.2vw, 4.4rem); }
.home-carousel .cs-sub { margin: 0; font-size: clamp(.95rem, 1.7vw, 1.16rem); line-height: 1.5; }
.home-carousel .cs-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.cs-anchor.x-center .cs-actions { justify-content: center; }
.cs-anchor.x-right .cs-actions { justify-content: flex-end; }
.home-carousel .cs-btn-primary { background: var(--accent, #d9232e); color: #fff; border: 0; }
.home-carousel .cs-btn-primary:hover { filter: brightness(.92); color: #fff; }
.home-carousel .cs-btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.55); }
.home-carousel .cs-btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.cs-theme-dark .cs-btn-ghost { background: rgba(16,24,40,.05); color: #101828; border-color: rgba(16,24,40,.35); }

/* Sticker de esquina */
.home-carousel .cs-badge { position: absolute; top: 16px; left: 16px; z-index: 5; background: var(--accent, #d9232e); color: #fff; font-weight: 800; font-size: .82rem; padding: 8px 14px; border-radius: 10px; box-shadow: 0 8px 22px rgba(0,0,0,.28); transform: rotate(-3deg); }

/* Cuenta regresiva */
.home-carousel .cs-countdown { display: flex; gap: 10px; flex-wrap: wrap; }
.home-carousel .cs-countdown span { display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 8px 6px; background: var(--cd-bg, #111827); border-radius: 10px; color: #fff; }
.home-carousel .cs-countdown b { font-size: 1.3rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.home-carousel .cs-countdown i { font-style: normal; font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; margin-top: 3px; }
.home-carousel .cs-cd-live { font-weight: 800; background: var(--cd-bg, #111827); color: #fff; padding: 8px 14px; border-radius: 10px; }

/* Ken Burns (solo imagen) */
@media (prefers-reduced-motion: no-preference) {
  .home-carousel .cs-bg.kb-zoom-in img { animation: kb-zin 16s ease-out both; }
  .home-carousel .cs-bg.kb-zoom-out img { animation: kb-zout 16s ease-out both; }
  .home-carousel .cs-bg.kb-pan-left img { animation: kb-pl 20s ease-in-out both; }
  .home-carousel .cs-bg.kb-pan-right img { animation: kb-pr 20s ease-in-out both; }
}
@keyframes kb-zin { from { transform: scale(1); } to { transform: scale(1.16); } }
@keyframes kb-zout { from { transform: scale(1.16); } to { transform: scale(1); } }
@keyframes kb-pl { from { transform: scale(1.14) translateX(3%); } to { transform: scale(1.14) translateX(-3%); } }
@keyframes kb-pr { from { transform: scale(1.14) translateX(-3%); } to { transform: scale(1.14) translateX(3%); } }

/* Entrada del texto al activarse la diapositiva */
@media (prefers-reduced-motion: no-preference) {
  .home-carousel .carousel-slide .cs-content[data-anim]:not([data-anim="none"]) > * { opacity: 0; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1), filter .6s ease; }
  .home-carousel .carousel-slide .cs-content[data-anim="fade-up"] > * { transform: translateY(26px); }
  .home-carousel .carousel-slide .cs-content[data-anim="slide-left"] > * { transform: translateX(-42px); }
  .home-carousel .carousel-slide .cs-content[data-anim="slide-right"] > * { transform: translateX(42px); }
  .home-carousel .carousel-slide .cs-content[data-anim="zoom-in"] > * { transform: scale(.9); }
  .home-carousel .carousel-slide .cs-content[data-anim="blur-in"] > * { filter: blur(9px); }
  .home-carousel .carousel-slide.is-active .cs-content[data-anim] > * { opacity: 1; transform: none; filter: none; }
  .home-carousel .cs-content[data-anim] > *:nth-child(2) { transition-delay: .09s; }
  .home-carousel .cs-content[data-anim] > *:nth-child(3) { transition-delay: .18s; }
  .home-carousel .cs-content[data-anim] > *:nth-child(4) { transition-delay: .27s; }
  .home-carousel .cs-content[data-anim] > *:nth-child(5) { transition-delay: .36s; }
}

/* Efectos del titulo */
.cs-fx-glow { text-shadow: 0 0 22px var(--accent, #ffb000), 0 0 4px rgba(0,0,0,.3); }
.cs-fx-pulse { animation: cs-pulse 2.6s ease-in-out infinite; transform-origin: left center; }
.cs-anchor.x-center .cs-fx-pulse { transform-origin: center; }
@keyframes cs-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.cs-fx-shine { position: relative; overflow: hidden; }
.cs-fx-shine::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg); animation: cs-shine 3.6s ease-in-out infinite; }
@keyframes cs-shine { 0% { left: -60%; } 55%, 100% { left: 130%; } }

/* Transiciones fundido / zoom */
.home-carousel.car-tx-fade .carousel-track, .home-carousel.car-tx-zoom .carousel-track { display: block; position: relative; transition: none; transform: none !important; }
.home-carousel.car-tx-fade .carousel-slide, .home-carousel.car-tx-zoom .carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--car-speed) ease, transform var(--car-speed) ease; }
.home-carousel.car-tx-fade .carousel-slide:first-child, .home-carousel.car-tx-zoom .carousel-slide:first-child { position: relative; }
.home-carousel.car-tx-zoom .carousel-slide { transform: scale(1.06); }
.home-carousel.car-tx-fade .carousel-slide.is-active, .home-carousel.car-tx-zoom .carousel-slide.is-active { opacity: 1; transform: none; z-index: 2; }

/* Flechas */
.home-carousel .carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(15,22,38,.5); color: #fff; font-size: 1.35rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s ease; z-index: 6; }
.home-carousel .carousel-nav:hover { background: rgba(15,22,38,.85); }
.home-carousel .carousel-prev { left: 16px; }
.home-carousel .carousel-next { right: 16px; }
.home-carousel.is-boxed .carousel-prev { left: 28px; }
.home-carousel.is-boxed .carousel-next { right: 28px; }

/* Puntos */
.home-carousel .carousel-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; gap: 8px; justify-content: center; z-index: 6; }
.home-carousel .carousel-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: background .15s ease, transform .15s ease; }
.home-carousel .carousel-dot:hover { background: rgba(255,255,255,.75); }
.home-carousel .carousel-dot.is-active { background: #fff; transform: scale(1.3); }

/* Barra de progreso */
.home-carousel .carousel-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.16); z-index: 6; }
.home-carousel .carousel-progress > span { display: block; height: 100%; width: 0; background: var(--accent, #fff); }
.home-carousel .carousel-progress.run > span { transition-property: width; transition-timing-function: linear; }

@media (max-width: 640px) {
  .home-carousel { --car-ar: 1 / 1; }
  .home-carousel--tall { --car-ar: 4 / 5; }
  .home-carousel--full .carousel-slide { height: 78vh; }
  .home-carousel .carousel-nav { width: 38px; height: 38px; font-size: 1.05rem; }
  .home-carousel .carousel-prev { left: 8px; }
  .home-carousel .carousel-next { right: 8px; }
  .home-carousel .cs-content { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .home-carousel .carousel-track { transition: none; }
  .home-carousel .cs-fx-shine::after, .home-carousel .cs-fx-pulse { animation: none; }
}

/* Franja "Seleccion de la semana" (1 producto destacado, debajo del buscador) */
.week-pick { padding: 26px 0; background: var(--bc-bg-alt); border-bottom: 1px solid var(--bc-border); }
.week-pick-inner { display: flex; align-items: center; gap: 34px; text-decoration: none; color: var(--bc-text); }
.week-pick-copy { flex: 1; min-width: 0; }
.week-pick-copy h2 { font-family: var(--bc-display); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; margin: 6px 0 10px; }
.week-pick-price { margin-bottom: 14px; }
.week-pick-price .card-price { font-size: 1.35rem; font-weight: 800; }
.week-pick-media { position: relative; flex: 0 0 38%; max-width: 320px; }
.week-pick-media img { width: 100%; height: 200px; object-fit: contain; display: block; }
.week-pick-media .card-badges { position: absolute; top: 6px; left: 6px; }
@media (max-width: 720px) {
  .week-pick-inner { flex-direction: column-reverse; text-align: center; gap: 16px; }
  .week-pick-media { flex-basis: auto; max-width: 220px; }
  .week-pick-media img { height: 150px; }
  .week-pick-price .card-price { justify-content: center; }
}

/* Fieldsets del editor de anuncios de la portada */
.admin-fs { border: 1px solid var(--bc-border); border-radius: var(--bc-radius); padding: 18px 18px 6px; margin: 0 0 20px; }
.admin-fs > legend { padding: 0 8px; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bc-text-muted); }
.admin-fs .form-hint, .form-hint { display: block; margin: -4px 0 14px; color: var(--bc-text-muted); font-size: .82rem; }
.admin-fs input[type="color"] { height: 42px; padding: 4px; }

/* Manual de /admin/integracion */
.int-steps { margin: 0 0 8px; padding-left: 20px; line-height: 1.7; }
.int-steps > li { margin-bottom: 12px; }
.int-h3 { font-size: .95rem; margin: 22px 0 8px; }
.int-kv { border-collapse: collapse; margin: 10px 0 4px; width: 100%; }
.int-kv th { text-align: left; font-weight: 700; color: var(--bc-text-muted); padding: 6px 14px 6px 0; white-space: nowrap; vertical-align: top; font-size: .85rem; }
.int-kv td { padding: 6px 0; font-size: .88rem; }
.int-copy { appearance: none; border: 1px solid var(--bc-border); background: var(--bc-surface-light); color: var(--bc-text-muted); font: inherit; font-size: .72rem; padding: 2px 8px; border-radius: 6px; cursor: pointer; margin-left: 6px; }
.int-copy:hover { color: var(--bc-primary); border-color: var(--bc-primary); }
.int-pre { background: var(--bc-surface-light); border: 1px solid var(--bc-border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: .8rem; line-height: 1.55; margin: 0 0 6px; }
.int-pre code { background: none; padding: 0; font-size: inherit; white-space: pre; }

/* Paginacion (tienda / categorias) */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; }
.pg-link { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--bc-border); border-radius: 9px; background: var(--bc-surface); color: var(--bc-text); font-weight: 700; font-size: .9rem; text-decoration: none; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.pg-link:hover { border-color: var(--bc-primary); color: var(--bc-primary); }
.pg-link.is-active { background: var(--bc-primary); border-color: var(--bc-primary); color: #fff; cursor: default; }
.pg-nav { color: var(--bc-text-muted); }
.pg-gap { padding: 0 2px; color: var(--bc-text-muted); font-weight: 700; }

/* Vitrina automatica del anuncio: imagen del producto/categoria enlazada */
.home-carousel .cs-showcase { position: absolute; z-index: 3; pointer-events: none; display: flex; }
.home-carousel .cs-showcase img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 16px; padding: 12px; filter: drop-shadow(0 26px 46px rgba(0,0,0,.5)); }
.home-carousel .cs-sc-right { top: 8%; right: 4%; bottom: 8%; width: 40%; align-items: center; justify-content: flex-end; }
.home-carousel .cs-sc-left { top: 8%; left: 4%; bottom: 8%; width: 40%; align-items: center; justify-content: flex-start; }
.home-carousel .cs-sc-bottom-right { right: 3%; bottom: 0; width: 34%; height: 82%; align-items: flex-end; justify-content: flex-end; }
.home-carousel .cs-sc-top-right { right: 4%; top: 5%; width: 32%; height: 62%; align-items: flex-start; justify-content: flex-end; }
.home-carousel .cs-sc-center { top: 6%; left: 50%; transform: translateX(-50%); bottom: 6%; width: 46%; align-items: center; justify-content: center; }
@media (prefers-reduced-motion: no-preference) {
  .home-carousel .cs-sc-fx-float img { animation: cs-sc-float 5s ease-in-out infinite; }
  .home-carousel .cs-sc-fx-tilt img { animation: cs-sc-tilt 6s ease-in-out infinite; }
  .home-carousel .cs-sc-fx-spin-slow img { animation: cs-sc-spin 22s linear infinite; }
  .home-carousel .carousel-slide.is-active .cs-sc-fx-pop img { animation: cs-sc-pop .7s cubic-bezier(.2,.8,.2,1) both; }
}
@keyframes cs-sc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes cs-sc-tilt { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-8px); } }
@keyframes cs-sc-spin { to { transform: rotate(360deg); } }
@keyframes cs-sc-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 640px) {
  .home-carousel .cs-showcase { inset: auto 0 0 0; width: 100%; height: 52%; opacity: .22; justify-content: center; align-items: flex-end; transform: none; }
  .home-carousel .cs-showcase img { filter: none; background: none; padding: 0; border-radius: 0; }
  .home-carousel .cs-sc-fx-float img, .home-carousel .cs-sc-fx-tilt img, .home-carousel .cs-sc-fx-spin-slow img { animation: none; }
}

/* Boton flotante de WhatsApp (todas las paginas publicas) */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 350; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #25d366; color: #fff; font-size: 1.7rem; box-shadow: 0 10px 26px rgba(37,211,102,.45); transition: transform .18s ease, box-shadow .18s ease; animation: wa-pop .4s ease .8s both; }
.wa-float:hover, .wa-float:focus-visible { color: #fff; transform: scale(1.08); box-shadow: 0 14px 34px rgba(37,211,102,.6); }
.wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: wa-ring 2.6s ease-out infinite; }
@keyframes wa-pop { from { transform: scale(0); } }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.75); opacity: 0; } }
@media (max-width: 640px) { .wa-float { width: 50px; height: 50px; font-size: 1.5rem; right: 14px; bottom: 14px; } }
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float::after { animation: none; } }

/* ---- /admin/anuncios: vista previa y lista mejoradas ---- */
.banner-preview { position: relative; max-width: 760px; margin: 4px 0 24px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.banner-preview .carousel-slide { aspect-ratio: 16 / 5; }
.banner-preview .cs-anchor { padding: 16px 22px; }
.banner-preview .cs-content { gap: 8px; max-width: 78%; }
.banner-preview .cs-headline { line-height: 1.08; }
.banner-preview .cs-actions .btn { pointer-events: none; padding: 7px 14px; font-size: .82rem; }
.banner-preview-tag { position: absolute; top: 8px; right: 10px; z-index: 8; background: rgba(0,0,0,.5); color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }

.btn-xs { padding: 2px 7px; font-size: .7rem; line-height: 1.4; border-radius: 6px; }
.banners-table td { vertical-align: middle; }
.banner-thumb { position: relative; width: 128px; height: 44px; border-radius: 7px; overflow: hidden; background: #131722; display: flex; align-items: center; }
.banner-thumb img { width: 100%; height: 100%; object-fit: cover; }
.banner-thumb-brand { position: absolute; inset: 0; }
.banner-thumb-brand::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 42%; background: var(--accent, #d9232e); clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%); }
.banner-thumb-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; }
.banner-thumb-h { position: absolute; left: 6px; right: 6px; bottom: 4px; z-index: 2; color: #fff; font-size: .62rem; font-weight: 700; line-height: 1.15; text-shadow: 0 1px 3px rgba(0,0,0,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.badge-btn { appearance: none; border: 1px solid var(--bc-border); background: var(--bc-surface); color: var(--bc-text); font: inherit; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.badge-btn.is-on { background: rgba(26,157,92,.15); color: var(--bc-success); border-color: rgba(26,157,92,.4); }
.badge-btn.is-off { background: var(--bc-surface-light); color: var(--bc-text-muted); }
.badge-btn:hover { filter: brightness(.96); }

/* /marcas: 4 carruseles infinitos de logos */
.brand-wall { padding: 4px 0 18px; }
.brand-marquee { overflow: hidden; padding: 4px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.brand-marquee + .brand-marquee { margin-top: 8px; }
.brand-track { display: flex; gap: 14px; width: max-content; animation: brand-scroll var(--dur, 30s) linear infinite; will-change: transform; }
.brand-marquee.rev .brand-track { animation-direction: reverse; }
.brand-marquee:hover .brand-track { animation-play-state: paused; }
@keyframes brand-scroll { to { transform: translateX(-50%); } }
.brand-tile { flex: 0 0 auto; width: 280px; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px 26px; background: var(--bc-surface, #fff); border: 1px solid var(--bc-border); border-radius: 18px; text-decoration: none; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.brand-tile:hover { border-color: var(--bc-primary); transform: translateY(-4px); box-shadow: var(--bc-shadow); }
.brand-tile img { height: 72px; width: 100%; object-fit: contain; }
.brand-tile span { font-size: .95rem; font-weight: 700; color: var(--bc-text); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.brand-tile.is-text { justify-content: center; }
.brand-tile-text { font-family: var(--bc-display); font-size: 1.7rem; font-weight: 700; letter-spacing: .02em; color: var(--bc-text); text-transform: uppercase; }
.brand-static { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
@media (max-width: 640px) { .brand-tile { width: 210px; height: 118px; padding: 16px 20px; } .brand-tile img { height: 54px; } .brand-tile-text { font-size: 1.3rem; } }
@media (prefers-reduced-motion: reduce) {
  .brand-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .brand-marquee { -webkit-mask-image: none; mask-image: none; }
  .brand-track > a[aria-hidden="true"] { display: none; }
  .brand-marquee.rev + .brand-marquee, .brand-marquee + .brand-marquee { margin-top: 14px; }
}

/* Ficha de producto: chips de "Busquedas relacionadas" */
.product-keywords { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.product-keywords > span { font-size: .78rem; font-weight: 700; color: var(--bc-text-muted); text-transform: uppercase; letter-spacing: .04em; margin-right: 2px; }
.product-keywords a { font-size: .8rem; padding: 4px 11px; border-radius: 999px; background: var(--bc-surface-light); color: var(--bc-text); text-decoration: none; border: 1px solid var(--bc-border); }
.product-keywords a:hover { border-color: var(--bc-primary); color: var(--bc-primary); }
