/*k&a-shop — CAPA PREMIUM (se carga después de styles.css)
   Estética limpia tipo Apple: profundidad, refinamiento, dinamismo.
   ══════════════════════════════════════════════════════════════ */

:root {
  --marca-glow: rgba(200,168,106,.35);
  --sombra-card: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  --sombra-card-hover: 0 4px 12px rgba(0,0,0,.35), 0 20px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(200,168,106,.15);
  --sombra-flotante: 0 20px 60px rgba(0,0,0,.5);
  --transicion: cubic-bezier(.16,1,.3,1);
  --bg-radial: radial-gradient(1200px 600px at 50% -200px, rgba(200,168,106,.10), transparent 70%);
}

/* Fondo con textura sutil de profundidad */
html { overflow-x: hidden; max-width: 100%; width: 100%; }
body {
  background:
    var(--bg-radial),
    var(--bg);
  background-attachment: scroll;
  background-repeat: no-repeat;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  position: relative;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Evitar que cualquier elemento hijo desborde el ancho de la pantalla */
main, section, .envoltura, header { max-width: 100%; }

/* ─────────── CABECERA más refinada ─────────── */
.cabecera {
  background: rgba(12,13,16,.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s ease;
}
.logo {
  background: linear-gradient(120deg, var(--texto) 40%, var(--marca) 120%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity .2s;
}
.logo:hover { opacity: .8; }
.logo b { -webkit-text-fill-color: var(--marca); }
.icono-btn { border-radius: 14px; transition: background .25s var(--transicion), transform .2s var(--transicion), color .2s; }
.icono-btn:hover { background: rgba(255,255,255,.06); }
.icono-btn:active { transform: scale(.88); }
.badge-carrito {
  box-shadow: 0 0 0 2px var(--bg), 0 2px 8px var(--marca-glow);
  animation: badgePop .3s var(--transicion);
}
@keyframes badgePop { from { transform: scale(0); } to { transform: scale(1); } }

/* ─────────── HERO cinematográfico con carrusel de fondo ─────────── */
.hero {
  min-height: 420px;
  border-radius: 28px;
  margin: 20px 0;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(145deg, #212430 0%, #0e0f13 60%);
  box-shadow: var(--sombra-flotante), inset 0 1px 0 rgba(255,255,255,.06);
  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
/* Carrusel de fondo */
.hero-carrusel { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-carrusel-track { display: flex; height: 100%; transition: transform .8s var(--transicion); }
.hero-slide { min-width: 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
/* Degradados para legibilidad del texto sobre las fotos */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(8,9,12,.96) 8%, rgba(8,9,12,.55) 42%, rgba(8,9,12,.15) 75%),
    linear-gradient(105deg, rgba(8,9,12,.85) 0%, rgba(8,9,12,.25) 45%, transparent 70%);
  pointer-events: none;
}
.hero-cont { position: relative; padding: 44px 40px; z-index: 2; }
.hero h1 {
  font-size: clamp(40px, 7vw, 66px);
  font-weight: 800; letter-spacing: -1.5px; line-height: .98;
  background: linear-gradient(180deg, #fff 30%, #cfcabb 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero h1 span {
  background: linear-gradient(120deg, var(--marca) 0%, #e8cf9a 50%, var(--marca) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: rgba(242,241,238,.85); font-size: 16px; margin-top: 12px; line-height: 1.5; max-width: 460px; }
.hero-acciones { margin-top: 24px; }
/* Dots del carrusel dentro del hero */
.hero-dots { position: absolute; bottom: 20px; right: 24px; z-index: 3; display: flex; gap: 7px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); transition: all .3s var(--transicion); }
.hero-dot.activo { width: 26px; border-radius: 4px; background: linear-gradient(120deg, var(--marca), #d9bd85); box-shadow: 0 2px 8px var(--marca-glow); }

@media (max-width: 560px) {
  .hero { min-height: 360px; }
  .hero-cont { padding: 30px 24px; }
}

/* ─────────── BUSCADOR flotante ─────────── */
.caja-buscar {
  border-radius: 18px; height: 56px;
  background: rgba(26,28,34,.8);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  box-shadow: var(--sombra-card);
  transition: border-color .25s, box-shadow .25s;
}
.caja-buscar:focus-within {
  border-color: rgba(200,168,106,.5);
  box-shadow: 0 0 0 4px rgba(200,168,106,.1), var(--sombra-card);
}

/* ─────────── CHIPS de categoría tipo pill premium ─────────── */
.chip-cat, .chip-sub {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(26,28,34,.6);
  backdrop-filter: blur(8px);
  transition: all .28s var(--transicion);
  font-weight: 600;
}
.chip-cat:hover, .chip-sub:hover { border-color: rgba(200,168,106,.4); color: var(--texto); transform: translateY(-1px); }
.chip-cat.activo, .chip-sub.activo {
  background: linear-gradient(120deg, var(--marca), #d9bd85);
  color: #1a1206; border-color: transparent;
  box-shadow: 0 6px 20px var(--marca-glow);
}

/* ─────────── TARJETAS DE PRODUCTO premium ─────────── */
.grid-productos { gap: 18px; width: 100%; }
@media (max-width: 560px) {
  .grid-productos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .prod-card { min-width: 0; }
  .prod-nombre { font-size: 13px; }
  .prod-precio { font-size: 15px; }
}
.prod-card {
  background: linear-gradient(180deg, rgba(30,32,39,.9), rgba(22,23,28,.9));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--sombra-card);
  transition: transform .4s var(--transicion), box-shadow .4s var(--transicion), border-color .4s;
  will-change: transform;
}
.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-card-hover);
  border-color: rgba(200,168,106,.2);
}
.prod-card:active { transform: translateY(-2px) scale(.99); }
.prod-foto {
  aspect-ratio: 1;
  background: #ffffff;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
}
.prod-foto img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.03) saturate(1.04);
  transition: transform .7s var(--transicion);
}
.prod-card:hover .prod-foto img { transform: scale(1.08); }
.prod-desc-badge {
  background: linear-gradient(120deg, var(--marca), #e0c48d);
  color: #1a1206; font-weight: 800;
  box-shadow: 0 4px 14px var(--marca-glow);
  backdrop-filter: blur(4px);
  border-radius: 10px;
}
.prod-info { padding: 15px 16px 18px; }
.prod-nombre { font-weight: 600; letter-spacing: -.2px; }
.prod-precio { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: -.3px; }
.prod-estrellas { font-weight: 600; }
.prod-stock-info {
  display: inline-block; margin-top: 6px; padding: 3px 8px;
  background: rgba(95,194,138,.12); color: #6fce97;
  border-radius: 6px; font-size: 10px; font-weight: 600;
}
.prod-agotado {
  display: inline-block; margin-top: 6px; padding: 3px 8px;
  background: rgba(229,100,93,.12); color: var(--rojo);
  border-radius: 6px; font-size: 10px; font-weight: 700;
}

/* ─────────── TÍTULOS de sección con acento ─────────── */
.seccion-titulo {
  font-size: 26px; font-weight: 800; letter-spacing: -.6px;
  margin: 28px 0 18px; position: relative; padding-left: 16px;
}
.seccion-titulo::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 26px; border-radius: 4px;
  background: linear-gradient(180deg, var(--marca), #d9bd85);
  box-shadow: 0 0 12px var(--marca-glow);
}

/* ─────────── BOTÓN de marca premium ─────────── */
.btn-marca {
  background: linear-gradient(120deg, var(--marca) 0%, #d9bd85 50%, var(--marca) 100%);
  background-size: 200% auto;
  color: #1a1206; font-weight: 700; letter-spacing: .2px;
  border-radius: 16px;
  box-shadow: 0 8px 24px var(--marca-glow), inset 0 1px 0 rgba(255,255,255,.3);
  transition: background-position .5s, transform .2s var(--transicion), box-shadow .3s;
}
.btn-marca:hover { background-position: right center; box-shadow: 0 10px 30px var(--marca-glow); }
.btn-marca:active { transform: scale(.97); }

/* ─────────── PAGINACIÓN refinada ─────────── */
.pag-btn {
  border-radius: 14px; background: rgba(26,28,34,.7);
  border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(8px);
  transition: all .25s var(--transicion);
}
.pag-btn:not(:disabled):hover { border-color: rgba(200,168,106,.4); transform: translateY(-1px); }

/* ─────────── DRAWER / paneles flotantes ─────────── */
/* Los drawers manejan su sombra en styles.css solo cuando están abiertos */
.drawer.abierto { box-shadow: -10px 0 40px rgba(0,0,0,.5); }

/* ─────────── Entrada animada de las cards ─────────── */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.prod-card { animation: cardIn .5s var(--transicion) backwards; }
.prod-card:nth-child(1){animation-delay:.02s}
.prod-card:nth-child(2){animation-delay:.06s}
.prod-card:nth-child(3){animation-delay:.10s}
.prod-card:nth-child(4){animation-delay:.14s}
.prod-card:nth-child(5){animation-delay:.18s}
.prod-card:nth-child(6){animation-delay:.22s}
.prod-card:nth-child(7){animation-delay:.26s}
.prod-card:nth-child(8){animation-delay:.30s}

/* ─────────── Detalle de producto premium ─────────── */
.pd-nombre { font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.pd-precio { font-family: 'Outfit', sans-serif; font-size: 30px; font-weight: 800; color: var(--marca); letter-spacing: -.8px; margin: 8px 0; }
.pd-galeria { border-radius: 24px; overflow: hidden; box-shadow: var(--sombra-card); background: #ffffff; }
.pd-galeria img { border-radius: 24px; object-fit: cover; width: 100%; height: 100%; }
html[data-tema="claro"] .pd-galeria { background: #ffffff; }
.pd-var-op {
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  transition: all .25s var(--transicion);
}
.pd-var-op.activo { background: var(--marca); color: #1a1206; border-color: transparent; box-shadow: 0 4px 14px var(--marca-glow); }

/* ─────────── Publicidad: cards compactos tipo iOS ─────────── */
.pub-banners { margin: 14px 0 18px; }
.pub-track {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 2px;
}
.pub-track::-webkit-scrollbar { display: none; }
.pub-card {
  display: flex; align-items: center; gap: 14px;
  min-width: 82%; scroll-snap-align: start;
  background: linear-gradient(120deg, rgba(200,168,106,.12), rgba(200,168,106,.03));
  border: 1px solid rgba(200,168,106,.25);
  border-radius: 20px; padding: 12px 14px;
  text-decoration: none; color: inherit;
  transition: transform .3s var(--transicion), border-color .3s;
  box-shadow: var(--sombra-card);
}
.pub-card:active { transform: scale(.98); }
.pub-card-img { width: 64px; height: 64px; border-radius: 15px; overflow: hidden; flex-shrink: 0; background: var(--panel-2, #23262e); }
.pub-card-img img { width: 100%; height: 100%; object-fit: cover; }
.pub-card-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pub-card-txt strong { font-size: 15px; font-weight: 700; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-card-txt small { font-size: 12px; color: var(--texto-suave); }
.pub-card > svg { width: 20px; height: 20px; color: var(--marca); flex-shrink: 0; }
@media (min-width: 700px) {
  .pub-card { min-width: 340px; }
}

/* ─────────── Logo con imagen en el header ─────────── */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; -webkit-text-fill-color: initial; }

/* ─────────── Popup de promoción premium ─────────── */
.promo-modal {
  border-radius: 28px; box-shadow: var(--sombra-flotante);
  border: 1px solid rgba(255,255,255,.1);
}
.promo-cuerpo h3 {
  background: linear-gradient(120deg, var(--marca), #e8cf9a);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ─────────── Scrollbar elegante (desktop) ─────────── */
@media (min-width: 1025px) {
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 6px; border: 2px solid var(--bg); }
  ::-webkit-scrollbar-thumb:hover { background: rgba(200,168,106,.4); }
}


/* ─────────── Hero: botón e indicadores de confianza ─────────── */
.hero-acciones { margin-top: 26px; }
.hero-btn {
  padding: 14px 32px; border-radius: 16px;
  background: linear-gradient(120deg, var(--marca) 0%, #d9bd85 50%, var(--marca) 100%);
  background-size: 200% auto;
  color: #1a1206; font-weight: 700; font-size: 15px; letter-spacing: .2px;
  box-shadow: 0 10px 30px var(--marca-glow), inset 0 1px 0 rgba(255,255,255,.3);
  transition: background-position .5s, transform .2s var(--transicion), box-shadow .3s;
}
.hero-btn:hover { background-position: right center; transform: translateY(-2px); box-shadow: 0 14px 40px var(--marca-glow); }
.hero-btn:active { transform: translateY(0) scale(.97); }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px;
}
.hero-trust-item {
  font-size: 13px; font-weight: 600; color: rgba(242,241,238,.75);
  letter-spacing: .2px;
}
@media (max-width: 560px) {
  .hero-trust { gap: 12px; }
  .hero-trust-item { font-size: 11px; }
  .hero-cont { padding: 32px 24px; }
}

/* ─────────── Respeta reduce-motion ─────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
}

/* ══════════════════════════════════════════════════════════════
   FUNCIONALIDADES NUEVAS: tema, favoritos, más vendidos, relacionados, cupones
   ══════════════════════════════════════════════════════════════ */

/* ─────────── TEMA CLARO ─────────── */
html[data-tema="claro"] {
  --bg: #f5f4f0; --bg-2: #eeece4; --panel: #ffffff; --panel-2: #f0eee7;
  --texto: #1a1a1a; --texto-suave: #6b6b70; --linea: rgba(0,0,0,.08); --marca-tinta: #ffffff;
}
html[data-tema="claro"] body { background: radial-gradient(1200px 600px at 50% -200px, rgba(200,168,106,.12), transparent 70%), var(--bg); }
html[data-tema="claro"] .cabecera { background: rgba(255,255,255,.75); }
html[data-tema="claro"] .prod-card { background: linear-gradient(180deg, #ffffff, #faf9f5); }
html[data-tema="claro"] .prod-foto { background: radial-gradient(circle at 50% 40%, #ffffff, #f2f0ea); }
html[data-tema="claro"] .caja-buscar { background: rgba(255,255,255,.9); }
html[data-tema="claro"] .chip-cat, html[data-tema="claro"] .chip-sub { background: rgba(255,255,255,.8); }
html[data-tema="claro"] .icono-btn:hover { background: rgba(0,0,0,.05); }
html[data-tema="claro"] .drawer { background: var(--panel); }
#iconoTema { transition: transform .5s var(--transicion); }
html[data-tema="claro"] #iconoTema { transform: rotate(180deg); }

/* ─────────── CORAZÓN DE FAVORITO ─────────── */
.prod-foto { position: relative; }
.prod-fav {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,0,0,.35); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15);
  color: #fff; cursor: pointer; transition: all .25s var(--transicion);
}
.prod-fav svg { width: 18px; height: 18px; fill: none; transition: fill .25s, stroke .25s; }
.prod-fav:hover { transform: scale(1.1); }
.prod-fav:active { transform: scale(.9); }
.prod-fav.activo { background: rgba(229,100,93,.9); border-color: transparent; }
.prod-fav.activo svg { fill: #fff; stroke: #fff; animation: favPop .4s var(--transicion); }
@keyframes favPop { 0% { transform: scale(.6); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* Etiqueta "quedan pocas" */
.prod-stock-bajo {
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  background: rgba(229,100,93,.92); color: #fff; font-size: 10px; font-weight: 800;
  padding: 4px 9px; border-radius: 8px; letter-spacing: .3px;
  box-shadow: 0 4px 12px rgba(229,100,93,.4); animation: pulseStock 2s infinite;
}
@keyframes pulseStock { 0%,100% { opacity: 1; } 50% { opacity: .7; } }

/* ─────────── MÁS VENDIDOS ─────────── */
.destacados { margin: 8px 0 14px; }
.destacados-track {
  display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 12px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.destacados-track::-webkit-scrollbar { display: none; }
.destacado-item { min-width: 168px; max-width: 168px; scroll-snap-align: start; }
.destacado-item .prod-card { animation: none; }

/* ─────────── RELACIONADOS ─────────── */
.pd-relacionados { margin-top: 26px; border-top: 1px solid var(--linea); padding-top: 18px; }
.pd-rel-titulo { font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.pd-rel-track { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pd-rel-track::-webkit-scrollbar { display: none; }
.pd-rel-card { min-width: 128px; max-width: 128px; scroll-snap-align: start; cursor: pointer; }
.pd-rel-foto { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--panel-2); margin-bottom: 8px; }
.pd-rel-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--transicion); }
.pd-rel-card:hover .pd-rel-foto img { transform: scale(1.08); }
.pd-rel-nombre { font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-rel-precio { font-size: 14px; font-weight: 800; color: var(--marca); margin-top: 3px; font-family: 'Outfit', sans-serif; }

/* ─────────── ACCIONES DETALLE (fav + compartir) ─────────── */
.pd-nombre-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.pd-acciones-top { display: flex; gap: 8px; flex-shrink: 0; }
.pd-icono-btn {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--linea); color: var(--texto);
  cursor: pointer; transition: all .25s var(--transicion);
}
.pd-icono-btn svg { width: 20px; height: 20px; fill: none; }
.pd-icono-btn:hover { border-color: var(--marca); transform: translateY(-2px); }
.pd-icono-btn.activo { background: rgba(229,100,93,.9); border-color: transparent; color: #fff; }
.pd-icono-btn.activo svg { fill: #fff; stroke: #fff; }

/* ─────────── CUPÓN en el carrito ─────────── */
.cupon-fila { margin-bottom: 14px; }
.cupon-input { display: flex; gap: 8px; }
.cupon-input input { flex: 1; height: 46px; border-radius: 12px; padding: 0 14px; background: var(--panel-2); border: 1px solid var(--linea); color: var(--texto); font-size: 14px; }
.cupon-input input:focus { outline: none; border-color: var(--marca); }
.cupon-input button { padding: 0 18px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--marca); color: var(--marca); font-weight: 700; font-size: 14px; cursor: pointer; transition: all .2s var(--transicion); }
.cupon-input button:hover { background: var(--marca); color: var(--marca-tinta); }
.cupon-aplicado { display: flex; align-items: center; justify-content: space-between; background: rgba(95,194,138,.12); border: 1px solid rgba(95,194,138,.35); border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--verde); }
.cupon-aplicado button { background: none; border: 0; color: var(--texto-suave); font-size: 13px; cursor: pointer; text-decoration: underline; }

/* ─────────── Contención de carruseles horizontales (evita franja lateral) ─────────── */
.destacados-track, .pub-track, .pd-rel-track, .categorias, .subcategorias, .pd-thumbs {
  max-width: 100%;
}
/* La sección de destacados y demás no deben forzar ancho */
.destacados, .pub-banners { max-width: 100%; overflow: hidden; }
/* ══════════════════════════════════════════════════════════════
   MEJORAS v11: WhatsApp, footer, 3D, iluminación, animaciones
   ══════════════════════════════════════════════════════════════ */

/* ─────────── Botón flotante de WhatsApp ─────────── */
.fab-whatsapp {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(145deg, #25d366, #1da851);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45), inset 0 1px 0 rgba(255,255,255,.3);
  animation: fabPulse 2.6s infinite;
  transition: transform .3s var(--transicion);
}
.fab-whatsapp svg { width: 32px; height: 32px; }
.fab-whatsapp:hover { transform: scale(1.1) rotate(4deg); }
.fab-whatsapp:active { transform: scale(.94); }
@keyframes fabPulse {
  0% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 600px) { .fab-whatsapp { width: 52px; height: 52px; bottom: 18px; right: 18px; } .fab-whatsapp svg { width: 28px; height: 28px; } }

/* WhatsApp e Instagram del pie con color e ícono visible */
.pie-red-wa { background: linear-gradient(145deg, #25d366, #1da851) !important; color: #fff !important; box-shadow: 0 4px 14px rgba(37,211,102,.35); }
.pie-red-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important; color: #fff !important; box-shadow: 0 4px 14px rgba(220,39,67,.3); }
.pie-red { transition: transform .3s var(--transicion); }
.pie-red:hover { transform: translateY(-3px) scale(1.05); }

/* ─────────── Footer: crédito del creador ─────────── */
.pie-credito {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--linea);
  font-size: 13px; color: var(--texto-suave); display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.pie-credito strong { color: var(--marca); font-weight: 700; }
.pie-credito-link {
  color: var(--texto); text-decoration: none; font-weight: 600;
  padding: 6px 16px; border-radius: 999px; margin-top: 4px;
  background: linear-gradient(145deg, rgba(200,168,106,.15), rgba(200,168,106,.05));
  border: 1px solid rgba(200,168,106,.3); transition: all .3s var(--transicion);
}
.pie-credito-link:hover { background: var(--marca); color: var(--marca-tinta); transform: translateY(-2px); box-shadow: 0 6px 18px var(--marca-glow); }

/* ═══════ ESTRUCTURA 3D + ILUMINACIÓN PROFESIONAL (tema oscuro) ═══════ */
/* Cards con profundidad e iluminación superior */
.prod-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(38,41,50,.95), rgba(20,21,26,.95));
  box-shadow:
    0 1px 2px rgba(0,0,0,.4),
    0 10px 30px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.08);
}
/* Brillo superior tipo "luz de estudio" */
.prod-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent);
  pointer-events: none; z-index: 1; border-radius: 22px 22px 0 0;
}
.prod-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 4px 12px rgba(0,0,0,.4),
    0 24px 60px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.12),
    0 0 0 1px rgba(200,168,106,.25);
}
/* Reflejo dinámico en la foto al pasar el cursor */
.prod-foto::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.14) 48%, transparent 56%);
  transform: translateX(-100%); transition: transform .8s var(--transicion);
}
.prod-card:hover .prod-foto::after { transform: translateX(100%); }

/* Hero con luz ambiental animada */
.hero::after {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,168,106,.18), transparent 65%);
  top: -120px; right: -80px; filter: blur(20px);
  animation: luzFlotante 8s ease-in-out infinite;
}
@keyframes luzFlotante {
  0%,100% { transform: translate(0,0) scale(1); opacity: .8; }
  50% { transform: translate(-40px, 40px) scale(1.2); opacity: 1; }
}

/* Botones con profundidad e iluminación */
.btn-marca {
  background: linear-gradient(145deg, #d9bd85, var(--marca));
  box-shadow: 0 4px 14px var(--marca-glow), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .25s var(--transicion), box-shadow .25s;
}
.btn-marca:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--marca-glow), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-marca:active { transform: translateY(0); }

/* Aparición escalonada de secciones */
.seccion-titulo { position: relative; }
.seccion-titulo::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 42px; height: 3px;
  background: linear-gradient(90deg, var(--marca), transparent); border-radius: 3px;
}

/* ═══════ TEMA CLARO: 3D + iluminación + publicidad mejorada ═══════ */
html[data-tema="claro"] .prod-card {
  background: linear-gradient(180deg, #ffffff, #f6f4ee);
  box-shadow:
    0 1px 2px rgba(0,0,0,.06),
    0 10px 30px rgba(140,120,80,.12),
    inset 0 1px 0 rgba(255,255,255,.9);
}
html[data-tema="claro"] .prod-card::before { background: linear-gradient(180deg, rgba(255,255,255,.6), transparent); }
/* En tema claro: la foto va sobre fondo blanco puro y sin velos que la opaquen */
html[data-tema="claro"] .prod-foto { background: #ffffff; }
html[data-tema="claro"] .prod-card::before { height: 0; }
html[data-tema="claro"] .prod-foto img { filter: contrast(1.04) saturate(1.06) brightness(1.02); }
html[data-tema="claro"] .pd-galeria { background: #ffffff; }
html[data-tema="claro"] .pd-galeria img { filter: contrast(1.04) saturate(1.06); }
html[data-tema="claro"] .prod-card:hover {
  box-shadow:
    0 4px 12px rgba(140,120,80,.14),
    0 24px 60px rgba(140,120,80,.2),
    inset 0 1px 0 rgba(255,255,255,1),
    0 0 0 1px rgba(200,168,106,.3);
}
html[data-tema="claro"] .hero {
  background: linear-gradient(145deg, #ffffff 0%, #f0ece2 100%);
  box-shadow: 0 20px 60px rgba(140,120,80,.15), inset 0 1px 0 rgba(255,255,255,.9);
}

/* Publicidad tipo iOS mejorada (ambos temas) */
.pub-card {
  background: linear-gradient(145deg, rgba(200,168,106,.14), rgba(200,168,106,.04));
  border: 1px solid rgba(200,168,106,.3);
  box-shadow: 0 4px 18px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.1);
  position: relative; overflow: hidden;
}
.pub-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 100%;
  background: linear-gradient(115deg, transparent 45%, rgba(255,255,255,.12) 50%, transparent 55%);
  transform: translateX(-100%); transition: transform .7s var(--transicion);
}
.pub-card:hover::before { transform: translateX(100%); }
.pub-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(200,168,106,.25); }
.pub-card-img { box-shadow: 0 4px 12px rgba(0,0,0,.25); }
html[data-tema="claro"] .pub-card {
  background: linear-gradient(145deg, #ffffff, #faf6ec);
  border-color: rgba(200,168,106,.4);
  box-shadow: 0 6px 20px rgba(140,120,80,.15), inset 0 1px 0 rgba(255,255,255,.9);
}

/* ═══════ Botón "Preguntar por WhatsApp" en el producto ═══════ */
.pd-pie-botones { display: flex; gap: 10px; width: 100%; }
.btn-wa-producto {
  display: flex; align-items: center; gap: 6px; padding: 0 18px; height: 52px;
  border-radius: 14px; border: 0; cursor: pointer; font-weight: 700; font-size: 14px;
  background: linear-gradient(145deg, #25d366, #1da851); color: #fff;
  box-shadow: 0 4px 14px rgba(37,211,102,.35), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .25s var(--transicion), box-shadow .25s; flex-shrink: 0;
}
.btn-wa-producto svg { width: 20px; height: 20px; }
.btn-wa-producto:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37,211,102,.45); }
.btn-wa-producto:active { transform: translateY(0); }

/* ═══════ PROBADOR VIRTUAL (AR) ═══════ */
.probador-modal { position: fixed; inset: 0; z-index: 9999; background: #000; overflow: hidden; }
#probadorVideo { width: 100%; height: 100%; object-fit: cover; }
.probador-producto {
  position: absolute; width: 150px; cursor: grab; touch-action: none; user-select: none;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.5)); z-index: 2;
}
.probador-producto:active { cursor: grabbing; }
.probador-barra-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; padding: 16px 20px;
  background: linear-gradient(rgba(0,0,0,.6), transparent); color: #fff;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 16px;
}
.probador-barra-top button { background: rgba(255,255,255,.2); border: 0; color: #fff; width: 38px; height: 38px; border-radius: 50%; font-size: 18px; cursor: pointer; backdrop-filter: blur(8px); }
.probador-controles {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.probador-ayuda { color: rgba(255,255,255,.85); font-size: 13px; text-align: center; }
#probadorTamano { width: 80%; max-width: 300px; accent-color: var(--marca); }
.probador-controles .btn-marca { width: 80%; max-width: 300px; height: 50px; }

/* ═══════ Suscripción a ofertas ═══════ */
.ofertas-cta { margin: 30px 0; }
.ofertas-cta-inner {
  background: linear-gradient(135deg, rgba(200,168,106,.16), rgba(200,168,106,.04));
  border: 1px solid rgba(200,168,106,.3);
  border-radius: 24px; padding: 28px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: 0 10px 40px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.08);
  position: relative; overflow: hidden;
}
.ofertas-cta-inner::before {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,168,106,.2), transparent 65%);
  top: -150px; right: -60px; filter: blur(30px); animation: luzFlotante 7s ease-in-out infinite;
}
.ofertas-cta-txt { position: relative; z-index: 1; flex: 1; min-width: 240px; }
.ofertas-cta-txt h3 { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.5px; }
.ofertas-cta-txt p { color: var(--texto-suave); font-size: 14px; line-height: 1.5; }
.ofertas-cta-form { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.ofertas-cta-form input {
  height: 50px; border-radius: 14px; padding: 0 18px; min-width: 220px;
  background: var(--panel-2); border: 1px solid var(--linea); color: var(--texto); font-size: 15px;
}
.ofertas-cta-form input:focus { outline: none; border-color: var(--marca); }
.ofertas-cta-form .btn-marca { height: 50px; padding: 0 24px; white-space: nowrap; }
html[data-tema="claro"] .ofertas-cta-inner {
  background: linear-gradient(135deg, #ffffff, #faf6ec);
  box-shadow: 0 10px 40px rgba(140,120,80,.15), inset 0 1px 0 rgba(255,255,255,.9);
}
@media (max-width: 600px) {
  .ofertas-cta-inner { padding: 22px; }
  .ofertas-cta-form { width: 100%; }
  .ofertas-cta-form input { flex: 1; min-width: 0; }
}

/* ═══════ SWEETALERT tipo iOS (shop) ═══════ */
.swal2-popup.swal-ios {
  border-radius: 28px !important; padding: 26px 22px 22px !important;
  background: linear-gradient(180deg, #1c1d23, #131318) !important;
  border: 1px solid rgba(200,168,106,.18) !important;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06) !important;
  max-width: 380px !important;
}
.swal-ios .swal2-title { font-size: 20px !important; font-weight: 800 !important; color: #fff !important; padding: 0 0 4px !important; letter-spacing: -.4px !important; }
.swal-ios .swal2-html-container { margin: 10px 0 0 !important; color: rgba(255,255,255,.75) !important; font-size: 14px !important; }
.swal-stars { display: flex; gap: 10px; justify-content: center; margin: 18px 0 20px; }
.swal-stars span { font-size: 40px; cursor: pointer; color: #3a352c; transition: transform .15s cubic-bezier(.16,1,.3,1), color .15s; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.swal-stars span.on { color: #f5c542; }
.swal-stars span:active { transform: scale(1.3); }
.swal-ios .swal2-input, .swal-ios .swal2-textarea {
  background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 14px !important; color: #fff !important; font-size: 15px !important; box-shadow: none !important;
  margin: 8px 0 !important; padding: 14px 16px !important;
}
.swal-ios .swal2-input::placeholder, .swal-ios .swal2-textarea::placeholder { color: rgba(255,255,255,.35) !important; }
.swal-ios .swal2-input:focus, .swal-ios .swal2-textarea:focus { border-color: var(--marca) !important; outline: none !important; background: rgba(255,255,255,.08) !important; }
.swal-ios .swal2-textarea { min-height: 90px !important; resize: none !important; }
.swal-ios .swal2-actions { gap: 10px !important; margin-top: 20px !important; width: 100% !important; display: flex !important; }
.swal-ios .swal2-confirm, .swal-ios .swal2-cancel { flex: 1 !important; margin: 0 !important; border-radius: 14px !important; height: 50px !important; font-size: 15px !important; font-weight: 700 !important; box-shadow: none !important; transition: transform .2s, filter .2s !important; }
.swal-ios .swal2-confirm { background: linear-gradient(145deg, #d9bd85, var(--marca)) !important; color: #16130f !important; }
.swal-ios .swal2-confirm:active, .swal-ios .swal2-cancel:active { transform: scale(.97) !important; }
.swal-ios .swal2-cancel { background: rgba(255,255,255,.08) !important; color: rgba(255,255,255,.85) !important; }
.swal-anon-hint { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 8px; text-align: center; }
html[data-tema="claro"] .swal2-popup.swal-ios { background: linear-gradient(180deg, #ffffff, #f5f3ee) !important; border-color: rgba(200,168,106,.3) !important; }
html[data-tema="claro"] .swal-ios .swal2-title { color: #1a1a1a !important; }
html[data-tema="claro"] .swal-ios .swal2-html-container { color: #5c5c5c !important; }
html[data-tema="claro"] .swal-ios .swal2-input, html[data-tema="claro"] .swal-ios .swal2-textarea { background: rgba(0,0,0,.04) !important; border-color: rgba(0,0,0,.1) !important; color: #1a1a1a !important; }
html[data-tema="claro"] .swal-ios .swal2-input::placeholder, html[data-tema="claro"] .swal-ios .swal2-textarea::placeholder { color: rgba(0,0,0,.35) !important; }

/* ═══════ Resumen de reseñas: promedio + desglose ═══════ */
.resenas-resumen { display: flex; gap: 20px; align-items: center; background: var(--panel-2); border: 1px solid var(--linea); border-radius: 18px; padding: 18px; margin: 14px 0; }
.resenas-prom { text-align: center; flex-shrink: 0; min-width: 90px; }
.resenas-prom-num { font-family: 'Outfit', sans-serif; font-size: 42px; font-weight: 800; line-height: 1; color: var(--marca); }
.resenas-prom-stars { font-size: 14px; margin: 4px 0; letter-spacing: 1px; }
.resenas-prom-total { font-size: 11px; color: var(--texto-suave); }
.resenas-barras { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.resena-barra-fila { display: flex; align-items: center; gap: 8px; }
.resena-barra-num { font-size: 12px; color: var(--texto-suave); width: 24px; flex-shrink: 0; }
.resena-barra-track { flex: 1; height: 7px; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; }
.resena-barra-fill { height: 100%; background: linear-gradient(90deg, #d9bd85, var(--marca)); border-radius: 4px; transition: width .6s var(--transicion); }
.resena-barra-cant { font-size: 11px; color: var(--texto-suave); width: 20px; text-align: right; flex-shrink: 0; }
.est-llenas { color: var(--marca); }
.est-vacias { color: rgba(255,255,255,.2); }
html[data-tema="claro"] .resena-barra-track { background: rgba(0,0,0,.08); }
html[data-tema="claro"] .est-vacias { color: rgba(0,0,0,.15); }

/* Comentarios y paginación */
.resenas-com-tit { font-size: 14px; font-weight: 700; margin: 18px 0 10px; }
.resenas-pag { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.resenas-pag-btn { width: 38px; height: 38px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--linea); color: var(--texto); font-size: 17px; cursor: pointer; transition: all .2s; }
.resenas-pag-btn:not(:disabled):hover { border-color: var(--marca); }
.resenas-pag-btn:disabled { opacity: .4; cursor: not-allowed; }
.resenas-pag span { font-size: 13px; color: var(--texto-suave); font-weight: 600; }