/* ============================================================
   CABUB STORE — Hoja de estilos
   Paleta:  negro #0A0A0A · blanco #FFFFFF · rojo-ticket #E63950
   ============================================================ */

:root {
  --negro:      #0A0A0A;
  --blanco:     #FFFFFF;
  --rojo:       #E63950;
  --rojo-osc:   #C22A3E;
  --gris-txt:   #6B6B68;
  --gris-borde: #E4E2DC;
  --superficie: #F4F3EF;
  --max: 1180px;
  --radio: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--negro);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'IBM Plex Mono', monospace; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Íconos SVG */
.ic { width: 1.1em; height: 1.1em; vertical-align: -0.18em; display: inline-block; }
.ic-lg { width: 30px; height: 30px; vertical-align: middle; }
.ic-ph { width: 42px; height: 42px; color: #C7C5BE; }

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
}
/* Barra de promoción / franja en movimiento (envío, mínimo, marcas) */
.header-promo {
  background: var(--rojo); color: #fff;
  overflow: hidden; white-space: nowrap; padding: 9px 0;
}
.promo-track {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-family: 'Manrope', sans-serif; font-size: 12.5px; font-weight: 600;
  animation: cabub-marquee 26s linear infinite;
}
.promo-track .promo-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Manrope', sans-serif; font-weight: 600; letter-spacing: 0;
  line-height: 1;
}
.promo-track b { font-weight: 800; }
.promo-track .ic { width: 15px; height: 15px; flex: 0 0 auto; }
.promo-sep {
  display: inline-flex; align-items: center; line-height: 1;
  color: rgba(255,255,255,.55); margin: 0 16px;
}
@keyframes cabub-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .promo-track { animation: none; }
  .header-promo { overflow-x: auto; }
}
@media (max-width: 600px) {
  .promo-track { font-size: 11.5px; }
}
/* Fila principal (crema cálida) */
.header-main { background: var(--superficie); border-bottom: 1px solid var(--gris-borde); }
.header-main .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.brand-logo { height: 34px; display: block; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  color: #2C2C2A; font-size: 14px; font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--rojo); }
.nav-wa {
  background: var(--rojo); color: #fff !important;
  padding: 8px 16px; border-radius: 6px; font-size: 13px;
}
.nav-wa:hover { background: var(--rojo-osc); }
.menu-toggle { display: none; background: none; border: 0; color: var(--negro); font-size: 26px; cursor: pointer; }

/* ---------- Hero: publicidad a todo el ancho ---------- */
.hero {
  display: block;
  background: var(--superficie);
}

/* Carrusel de publicidad: scroll horizontal real con snap (arrastrable) */
.hero-scroll-col {
  display: flex; flex-direction: column;
  background: var(--superficie);
}
.hero-scroll {
  flex: 1;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: 14px; padding: 16px 16px 10px;
  scrollbar-width: none;
}
.hero-scroll::-webkit-scrollbar { display: none; }
.hero-slide {
  scroll-snap-align: center; flex: 0 0 100%;
  border-radius: 12px; overflow: hidden;
  /* La proporción manda sobre la altura fija: así el encuadre es IDÉNTICO en
     cualquier pantalla. Exporta los avisos en 4:1 (ej. 1600x400) para que se
     vean completos, sin recorte. */
  aspect-ratio: 4 / 1;
  background-color: var(--superficie);
  position: relative; display: flex; align-items: flex-end;
}
/* Imagen del aviso: capa propia para poder separarla del texto en celular */
.hero-slide-media {
  display: block;
  position: absolute; inset: 0;
}
.hero-slide-media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
/* Con varios avisos se asoma el siguiente, para invitar a deslizar */
.hero-scroll.multi .hero-slide { flex: 0 0 88%; }
.hero-slide-cap {
  position: relative; z-index: 1;
  width: 100%; padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  color: #fff; font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(16px, 2.2vw, 24px);
}
.hero-slide-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--rojo); color: #fff; font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: 999px;
}
/* Puntos de navegación, debajo del carrusel */
.hero-dots {
  display: flex; justify-content: center; gap: 8px;
  padding: 0 0 14px;
}
.hero-dot {
  width: 8px; height: 8px; padding: 0; border: 1px solid var(--gris-borde);
  border-radius: 50%; background: #fff; cursor: pointer; transition: all .2s;
}
.hero-dot.activo { background: var(--negro); border-color: var(--negro); width: 20px; border-radius: 5px; }
@media (max-width: 860px) {
  .hero-scroll { padding: 12px 12px 8px; gap: 10px; }
  .hero-scroll.multi .hero-slide { flex: 0 0 92%; }
}
/* En celular el texto NO va encima de la imagen (se pierde sobre fotos
   cargadas): la imagen va arriba y el título en una franja negra debajo,
   siempre legible y completo. */
@media (max-width: 560px) {
  .hero-scroll { align-items: flex-start; }
  .hero-slide {
    display: block;            /* imagen arriba, texto abajo */
    aspect-ratio: auto;        /* la altura la definen imagen + franja */
    background: #fff;
  }
  .hero-slide-media {
    position: relative; inset: auto;
    width: 100%;
  }
  .hero-slide-media img {
    height: auto;            /* proporción natural: banner completo, sin recorte */
    max-height: 48vh;        /* red de seguridad: si subes una imagen muy alta
                                por error, se recorta en vez de ocupar todo */
    object-fit: cover;
  }
  .hero-slide-cap {
    background: var(--negro);            /* franja sólida, sin degradado */
    font-size: 15px; line-height: 1.3; font-weight: 700;
    padding: 12px 16px;
    min-height: 62px;                    /* alinea la altura entre avisos */
    display: flex; align-items: center;
  }
  .hero-slide-tag { top: 10px; left: 10px; font-size: 11px; padding: 4px 10px; }
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px; font-size: 15px; font-weight: 500;
  cursor: pointer; border: 1px solid transparent; transition: all .15s;
}
.btn-rojo { background: var(--rojo); color: #fff; }
.btn-rojo:hover { background: var(--rojo-osc); }
.btn-linea { background: transparent; color: #fff; border-color: #4A4A48; }
.btn-linea:hover { border-color: #fff; }

/* ---------- Rail de marcas (con foto de producto + logo) ---------- */
.marcas {
  background: var(--superficie);
  border-bottom: 1px solid var(--gris-borde);
  padding: 16px 0;
}
.marcas .wrap { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.marcas .wrap::-webkit-scrollbar { display: none; }

.chip-marca-todas {
  flex: 0 0 auto; min-width: 76px; min-height: 60px;
  background: var(--negro); color: #fff; border: 1px solid var(--negro);
  border-radius: 10px; cursor: pointer; padding: 10px 16px;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .15s;
}
.chip-marca-todas.activo { box-shadow: 0 0 0 2px var(--rojo); }

.chip-marca-foto {
  flex: 0 0 auto; min-width: 76px; min-height: 60px;
  background: #fff; border: 1px solid var(--gris-borde);
  border-radius: 10px; padding: 10px 16px; cursor: pointer;
  position: relative; transition: border-color .15s, box-shadow .15s;
  display: flex; align-items: center; justify-content: center;
}
.chip-marca-foto:hover { border-color: var(--negro); }
.chip-marca-foto.activo { border-color: var(--rojo); box-shadow: 0 0 0 1px var(--rojo); }
.chip-marca-foto::before {
  content: ''; position: absolute; left: -5px; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; background: var(--superficie);
  border: 1px solid var(--gris-borde); border-radius: 50%;
}
.chip-marca-foto .logo-mini { height: 22px; max-width: 100px; object-fit: contain; display: block; }
.chip-marca-foto .nombre-mini { font-size: 12.5px; font-weight: 600; color: var(--negro); white-space: nowrap; }

/* ---------- Secciones ---------- */
.section { padding: 60px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.section-head h2 {
  font-family: 'IBM Plex Sans', sans-serif; font-weight: 600;
  font-size: 26px; letter-spacing: -.5px;
}
.section-head .count { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--gris-txt); }

/* ---------- Categorías ---------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
}
.cat-card {
  background: var(--superficie); border: 1px solid var(--gris-borde);
  border-radius: var(--radio); padding: 22px 16px; text-align: center;
  cursor: pointer; transition: all .15s;
}
.cat-card:hover { border-color: var(--negro); transform: translateY(-2px); }
.cat-card i { font-size: 30px; }
.cat-card p { margin-top: 10px; font-weight: 500; font-size: 14px; }
.cat-card.activo { background: var(--negro); color: #fff; border-color: var(--negro); }

/* ---------- Fichas de producto ---------- */
.prod-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px;
}
.ficha {
  position: relative; background: #fff;
  border: 1px solid var(--gris-borde); border-radius: var(--radio);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .15s, transform .15s;
}
.ficha:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
/* muesca tipo etiqueta */
.ficha::before, .ficha::after {
  content: ''; position: absolute; top: 188px; width: 14px; height: 14px;
  background: var(--blanco); border: 1px solid var(--gris-borde); border-radius: 50%;
  z-index: 2;
}
.ficha::before { left: -8px; }
.ficha::after  { right: -8px; }
.ficha-img {
  position: relative; height: 200px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 14px; overflow: hidden; cursor: zoom-in;
  border-bottom: 1px dashed var(--gris-borde);
}
.ficha-img img {
  max-height: 100%; max-width: 100%; object-fit: contain;
  transition: transform .25s ease;
}
.ficha:hover .ficha-img img { transform: scale(1.12); }
.ficha-img .ph { color: #C7C5BE; font-size: 40px; }
/* botón de lupa sobre la imagen */
.ficha-zoom {
  position: absolute; bottom: 10px; right: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: 1px solid var(--gris-borde);
  color: var(--negro); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s, background .15s;
}
.ficha-img:hover .ficha-zoom { opacity: 1; }
.ficha-zoom:hover { background: var(--rojo); color: #fff; border-color: var(--rojo); }
.ficha-zoom .ic { width: 18px; height: 18px; }
.ficha-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ficha-ref { font-family: 'Manrope', sans-serif; font-weight: 500; font-size: 11px; color: var(--gris-txt); }
.ficha-marca {
  font-family: 'Manrope', sans-serif; font-size: 10px; letter-spacing: 1px;
  color: var(--rojo); font-weight: 700;
}
.ficha-nombre { font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 600; line-height: 1.3; }
.ficha-precios { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ficha-precio { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 800; }
.ficha-antes { font-family: 'Manrope', sans-serif; font-weight: 500; font-size: 13px; color: var(--gris-txt); text-decoration: line-through; }
.badge-dcto {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--rojo); color: #fff; font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; font-weight: 500; padding: 4px 8px; border-radius: 4px;
}
.badge-agotado {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--negro); color: #fff; font-size: 11px; font-weight: 500;
  padding: 4px 9px; border-radius: 4px; letter-spacing: .3px;
}
.ficha--agotado .ficha-img img { opacity: .5; filter: grayscale(.6); }

/* --- COMBOS --- */
.badge-combo {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  background: var(--negro); color: #fff; font-family: 'Manrope', sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: .5px;
  padding: 4px 9px; border-radius: 4px;
}
/* en un combo, el % de ahorro se va a la esquina derecha para no chocar con "COMBO" */
.ficha--combo .badge-dcto { left: auto; right: 10px; }
.ficha--combo { border-color: var(--negro); box-shadow: 0 2px 0 var(--negro); }
.ficha--combo .ficha-img { cursor: default; background: #fff; }
.ficha--combo:hover .ficha-img img { transform: none; }
/* collage de fotos de lo que incluye el combo */
.ficha-combo-grid {
  display: flex; gap: 6px; width: 100%; height: 100%;
  align-items: center; justify-content: center;
}
.ficha-combo-grid img {
  flex: 1 1 0; min-width: 0; max-height: 100%; object-fit: contain;
}
.ficha-combo-grid img + img { border-left: 1px dashed var(--gris-borde); padding-left: 6px; }
/* línea "Incluye: ..." */
.ficha-incluye {
  font-family: 'Manrope', sans-serif; font-size: 11.5px; line-height: 1.35;
  color: var(--gris-txt); background: var(--superficie);
  border-radius: 6px; padding: 5px 8px; margin: 2px 0;
}
.ficha-incluye b { color: var(--negro); font-weight: 700; }


/* --- Producto fuera del ciclo vigente de Novaventa --- */
.badge-fuera {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: #B7791F; color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 9px; border-radius: 4px; letter-spacing: .3px;
}
.ficha--fuera { border-color: #E9C46A; }
.ficha--fuera .ficha-img img { opacity: .55; filter: grayscale(.5); }
.ficha-aviso-fuera {
  margin: 6px 0 8px; font-size: 12px; line-height: 1.35;
  color: #8a5a12; background: #FDF3DF; border: 1px solid #F0DCB0;
  border-radius: 6px; padding: 6px 8px;
}
.cart-item--fuera { opacity: .85; }
.cart-item-fuera {
  display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 600;
  color: #8a5a12; background: #FDF3DF; border: 1px solid #F0DCB0;
  border-radius: 4px; padding: 2px 6px;
}
.ficha-btn--off { background: #9a9a97; cursor: not-allowed; opacity: .85; }
.ficha-btn--off:hover { background: #9a9a97; }
.ficha-btn {
  margin-top: auto; background: var(--negro); color: #fff;
  border: 0; padding: 11px; border-radius: 6px; font-size: 13px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .15s;
}
.ficha-btn:hover { background: var(--rojo); }
.vacio { text-align: center; padding: 50px 0; color: var(--gris-txt); font-size: 15px; }

/* ---------- Cómo comprar ---------- */
.pasos { background: var(--superficie); }
.pasos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.paso { display: flex; gap: 14px; align-items: start; }
.paso-num {
  font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; font-size: 30px; color: var(--rojo);
  line-height: 1; flex: 0 0 auto;
}
.paso h3 { font-size: 16px; margin-bottom: 4px; }
.paso p { font-size: 14px; color: var(--gris-txt); }

/* ---------- Footer ---------- */
.site-footer { background: var(--superficie); color: #4A4A48; padding: 46px 0 30px; border-top: 1px solid var(--gris-borde); }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 32px; }
.footer-logo { height: 40px; }
.footer-col h4 { color: var(--rojo); font-size: 13px; margin-bottom: 10px; letter-spacing: .5px; }
.footer-col a, .footer-col p { display: block; font-size: 13px; margin-bottom: 6px; }
.footer-col b { color: var(--negro); font-weight: 700; }
.footer-col a:hover { color: var(--rojo); }
.footer-bottom {
  border-top: 1px solid var(--gris-borde); padding-top: 18px; color: #8A8A86;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-align: center;
}

/* ---------- FAB WhatsApp ---------- */
.fab-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  background: #25D366; color: #fff; width: 54px; height: 54px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .15s;
}
.fab-wa:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-links a:not(.nav-wa) { display: none; }
  .menu-toggle { display: block; }
  .section-head h2 { font-size: 22px; }

  /* Menú desplegable al abrir el hamburguesa */
  .nav-links.abierto {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--gris-borde);
    box-shadow: 0 8px 16px rgba(0,0,0,.08);
    padding: 6px 20px 14px; z-index: 40;
  }
  .nav-links.abierto a:not(.nav-wa) {
    display: block; padding: 12px 0;
    border-bottom: 1px solid var(--gris-borde);
    font-size: 15px;
  }
  .nav-links.abierto a:last-of-type { border-bottom: 0; }
}

/* ---------- Visor con lupa (modal zoom) ---------- */
.zoom-modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.zoom-modal.abierto { display: flex; }
.zoom-backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.62); backdrop-filter: blur(2px); }
.zoom-dialog {
  position: relative; z-index: 1; background: #fff; border-radius: 14px;
  width: min(680px, 100%); max-height: 92vh; overflow: auto;
  padding: 22px 24px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.zoom-close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gris-borde);
  background: #fff; font-size: 22px; line-height: 1; color: var(--negro); cursor: pointer;
}
.zoom-close:hover { background: var(--superficie); }
.zoom-head { margin-bottom: 14px; padding-right: 40px; }
.zoom-marca { font-family: 'Manrope', sans-serif; font-size: 11px; letter-spacing: 1px; color: var(--rojo); font-weight: 700; }
.zoom-nombre { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 600; margin: 2px 0; color: var(--negro); }
.zoom-ref { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--gris-txt); }
.zoom-stage {
  position: relative; width: 100%; height: 380px; background: #fff;
  border: 1px solid var(--gris-borde); border-radius: 10px; overflow: hidden;
  cursor: crosshair;
}
.zoom-img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .12s ease-out;
}
.zoom-hint {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(10,10,10,.72); color: #fff; font-size: 12px;
  padding: 6px 12px; border-radius: 20px; pointer-events: none;
}
.zoom-stage { touch-action: none; }
.zoom-stage:hover .zoom-hint,
.zoom-stage.zoomeando .zoom-hint { opacity: 0; transition: opacity .2s; }
.zoom-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.zoom-thumb {
  width: 66px; height: 66px; border: 1px solid var(--gris-borde); border-radius: 8px;
  background: #fff; cursor: pointer; padding: 5px; overflow: hidden;
}
.zoom-thumb.activo { border-color: var(--rojo); box-shadow: 0 0 0 1px var(--rojo); }
.zoom-thumb img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 560px) {
  .zoom-stage { height: 300px; }
}

/* ================= CARRITO (botón header) ================= */
.nav-cart {
  position: relative; background: none; border: 0; color: #2C2C2A;
  cursor: pointer; padding: 6px; display: flex; align-items: center;
}
.nav-cart:hover { color: var(--rojo); }
.nav-cart .ic { width: 24px; height: 24px; }
.cart-count {
  position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px;
  background: var(--rojo); color: #fff; font-family: 'Manrope', sans-serif;
  font-size: 11px; font-weight: 700; border-radius: 10px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
}

/* ================= CARRITO (panel lateral) ================= */
.cart-drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.cart-drawer.abierto { display: block; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.5); }
.cart-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(400px, 100%);
  background: #fff; display: flex; flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,.2); animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--gris-borde);
}
.cart-head h3 { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 700; }
.cart-x { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--negro); }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 16px; }
.cart-vacio { text-align: center; color: var(--gris-txt); font-size: 14px; padding: 40px 10px; line-height: 1.7; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gris-borde); }
.cart-item-img {
  flex: 0 0 60px; height: 60px; background: #fff; border: 1px solid var(--gris-borde);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cart-item-img img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 4px; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-marca { font-family: 'Manrope', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 1px; color: var(--rojo); }
.cart-item-nom { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600; margin: 1px 0 3px; line-height: 1.25; }
.cart-item-precio { font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 800; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-item-del { background: none; border: 0; color: var(--gris-txt); cursor: pointer; padding: 2px; }
.cart-item-del:hover { color: var(--rojo); }
.cart-item-del .ic { width: 18px; height: 18px; }
.qty { display: flex; align-items: center; gap: 6px; border: 1px solid var(--gris-borde); border-radius: 20px; padding: 2px; }
.qty button { width: 24px; height: 24px; border: 0; background: var(--superficie); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty button:hover { background: var(--negro); color: #fff; }
.qty button .ic { width: 14px; height: 14px; }
.qty span { font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700; min-width: 18px; text-align: center; }
.cart-foot { padding: 16px 20px; border-top: 1px solid var(--gris-borde); }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-family: 'Manrope', sans-serif; }
.cart-total-row span:first-child { font-size: 14px; color: var(--gris-txt); }
.cart-total-row span:last-child { font-size: 22px; font-weight: 800; }
/* Jerarquía: subtotal y envío pequeños, total grande */
.cart-sub-row, .cart-envio-row { margin-bottom: 6px; }
.cart-sub-row span:last-child, .cart-envio-row span:last-child { font-size: 15px; font-weight: 700; }
.cart-envio-row span:last-child { color: var(--rojo); }
.cart-grand-row { padding-top: 10px; border-top: 1px dashed var(--gris-borde); }
/* Aviso de mínimo / envío gratis */
.cart-aviso { font-size: 13px; line-height: 1.4; margin: 0 0 12px; padding: 9px 11px; border-radius: 8px; }
.cart-aviso:empty { display: none; }
.cart-aviso.alerta { background: #FDECEF; color: var(--rojo-osc); border: 1px solid #F6C9D1; }
.cart-aviso.info   { background: var(--superficie); color: #4A4A48; border: 1px solid var(--gris-borde); }
.cart-aviso.ok     { background: #E9F7EE; color: #1B7A3D; border: 1px solid #BFE6CC; }
.cart-checkout { width: 100%; justify-content: center; }
.cart-checkout:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.cart-clear { width: 100%; background: none; border: 0; color: var(--gris-txt); font-size: 13px; margin-top: 8px; cursor: pointer; }
.cart-clear:hover { color: var(--rojo); }

/* ================= CHECKOUT ================= */
.co-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.co-modal.abierto { display: flex; }
.co-backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.6); backdrop-filter: blur(2px); }
.co-dialog {
  position: relative; z-index: 1; background: #fff; border-radius: 16px;
  width: min(460px, 100%); max-height: 92vh; overflow-y: auto; padding: 26px 26px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  transition: width .2s ease;
}
/* En el paso de pago el contenido va a dos columnas y necesita más ancho */
.co-dialog.ancho { width: min(680px, 100%); }
.co-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: var(--negro); }
.co-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.co-step { font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 700; color: #B4B2A9; }
.co-step.activo { color: var(--negro); }
.co-step-line { flex: 1; height: 1px; background: var(--gris-borde); }
.co-paso h3 { font-family: 'Manrope', sans-serif; font-size: 19px; font-weight: 700; margin-bottom: 16px; }
.co-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.co-form label { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 500; color: #4A4A48; display: flex; flex-direction: column; gap: 4px; }
.co-form input, .co-form textarea, .co-form select {
  font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; color: var(--negro);
  border: 1px solid var(--gris-borde); border-radius: 8px; padding: 10px 12px; width: 100%;
  background: #fff;
}
.co-form select { height: 42px; cursor: pointer; }
.co-form select:disabled { background: #F5F3EF; color: #9a9a97; cursor: not-allowed; }
.co-form input:focus, .co-form textarea:focus, .co-form select:focus { outline: none; border-color: var(--negro); }
.co-row { display: flex; gap: 10px; }
.co-row label { flex: 1; }
.co-error { color: var(--rojo); font-size: 13px; min-height: 16px; margin: 0; }
.co-zona { font-size: 12.5px; margin: 2px 0 6px; line-height: 1.35; min-height: 14px; }
.co-zona.ok { color: #1a7f37; font-weight: 600; }
.co-zona.aviso { color: #B7791F; }
.co-resumen {
  background: var(--superficie);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 12px 14px;
  margin: 6px 0 12px;
  font-size: 14px;
}
.co-resumen-fila {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 3px 0;
  color: var(--gris-txt);
}
.co-resumen-val { color: var(--negro); font-weight: 600; }
.co-resumen-val.gratis { color: #1a7f37; }
.co-resumen-val.pend { color: #B7791F; font-weight: 600; font-size: 12.5px; }
.co-resumen-total {
  border-top: 1px dashed var(--gris-borde);
  margin-top: 4px;
  padding-top: 8px;
}
.co-resumen-total > span:first-child { color: var(--negro); font-weight: 700; }
.co-resumen-total .co-resumen-val { color: var(--rojo); font-weight: 800; font-size: 18px; }
.co-next, .co-enviar { width: 100%; justify-content: center; }

/* ---- Animación agregar al carrito (fly-to-cart) ---- */
.fly-clone {
  pointer-events: none; z-index: 9999;
  border-radius: 8px; object-fit: contain;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.fly-chip {
  pointer-events: none; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 28px; padding: 0 10px;
  background: var(--rojo); color: #fff; font-weight: 800; font-size: 14px;
  border-radius: 999px; box-shadow: 0 6px 16px rgba(230,57,80,.35);
}
.cart-toast {
  position: fixed; left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  display: flex; align-items: center; gap: 10px;
  background: var(--negro); color: #fff;
  padding: 10px 16px; border-radius: 999px;
  font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.22);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 1300;
}
.cart-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.cart-toast .ic { width: 18px; height: 18px; color: #4ade80; }
.cart-toast-txt { white-space: nowrap; }
.cart-toast-ver {
  background: none; border: none; color: #fff; font: inherit; font-weight: 700;
  text-decoration: underline; cursor: pointer; padding: 0 0 0 2px; white-space: nowrap;
}
@media (max-width: 480px) {
  .cart-toast { left: 12px; right: 12px; bottom: 16px; transform: translateY(20px); justify-content: center; }
  .cart-toast.visible { transform: translateY(0); }
}

/* Pago */
.co-pago { display: flex; flex-direction: column; }
.co-pago-grid {
  display: block;
  border: 1px solid var(--gris-borde); border-radius: 12px; overflow: hidden;
}
/* Talón de ticket a lo ancho: total + QR grande */
.co-talon {
  background: var(--superficie); padding: 20px 16px; text-align: center;
  border-bottom: 2px dashed #C9C7BE;
}
.co-talon-lbl {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: .08em; color: var(--negro);
}
.co-talon strong {
  font-family: 'Manrope', sans-serif; font-size: 27px; font-weight: 800;
  display: block; margin: 2px 0 14px; line-height: 1.1;
}
.co-qr { width: 100%; max-width: 230px; border-radius: 10px; display: block; margin: 0 auto; }
.co-nombre { font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; margin-top: 12px; }
/* Bloque inferior: llaves en fila, pasos y botón */
.co-datos { padding: 16px; }
.co-llaves { display: flex; flex-direction: row; gap: 10px; }
.co-llave-item {
  flex: 1; min-width: 0;
  background: var(--superficie); border: 1px solid var(--gris-borde); border-radius: 10px;
  padding: 9px 12px; display: flex; flex-direction: column; gap: 2px;
}
.co-llave-lbl { font-size: 12px; color: var(--negro); font-weight: 600; }
.co-llave-val { display: flex; align-items: center; gap: 8px; margin: 1px 0; }
.co-llave-val span { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 800; letter-spacing: .4px; }
.co-copy { background: #fff; border: 1px solid var(--gris-borde); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-left: auto; }
.co-copy .ic { width: 15px; height: 15px; }
.co-copy.ok { background: #2e7d32; color: #fff; border-color: #2e7d32; }
.co-pasos-pago {
  text-align: left; font-size: 13px; color: var(--negro);
  margin: 14px 0; padding-left: 20px; line-height: 1.7;
}
.co-volver { background: none; border: 0; color: var(--gris-txt); font-size: 13px; margin-top: 14px; cursor: pointer; }
.co-volver:hover { color: var(--negro); }

/* ---------- Paso 3: pedido recibido ---------- */
.co-listo { text-align: center; }
.co-listo-check {
  width: 60px; height: 60px; border-radius: 50%; background: #2e7d32;
  display: flex; align-items: center; justify-content: center;
  margin: 4px auto 16px; box-shadow: 0 6px 18px rgba(46,125,50,.35);
  animation: coCheckPop .35s ease;
}
@keyframes coCheckPop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.co-listo h3 { text-align: center; }
.co-listo-sub { font-size: 14px; color: #4A4A48; margin: 0 0 16px; line-height: 1.4; }
.co-listo-sub strong { color: var(--negro); font-family: 'Manrope', sans-serif; letter-spacing: .3px; }
.co-listo-total {
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
  background: var(--superficie); border: 1px solid var(--gris-borde);
  border-radius: var(--radio); padding: 12px 16px; margin: 0 0 16px;
}
.co-listo-total span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gris-txt); }
.co-listo-total strong { font-family: 'Manrope', sans-serif; font-size: 24px; }
.co-listo-msg { font-size: 13.5px; color: #4A4A48; line-height: 1.5; margin: 0 0 12px; }
.co-listo-tip {
  font-size: 13px; color: #B7791F; background: #FFF8EC;
  border: 1px solid #F3E3C3; border-radius: 10px; padding: 10px 12px;
  line-height: 1.45; margin: 0 0 14px; text-align: left;
}
.co-listo-guarda { font-size: 13px; color: #4A4A48; margin: 0 0 16px; }
.co-listo-guarda strong { font-family: 'Manrope', sans-serif; color: var(--negro); letter-spacing: .3px; }
.co-listo-gracias { font-size: 13px; color: var(--gris-txt); margin: 14px 0 0; }
.co-step.hecho { color: #2e7d32; }
/* En pantallas angostas las llaves se apilan */
@media (max-width: 560px) {
  .co-llaves { flex-direction: column; }
  .co-qr { max-width: 200px; }
}
@media (max-width: 480px) { .co-row { flex-direction: column; } }

/* ---------- Checkout: paso de datos de envío ---------- */
.co-intro { font-size: 13px; color: var(--gris-txt); margin: 0 0 14px; }

/* ---------- Checkout: candado de confirmación del formulario ---------- */
.co-confirm {
  display: flex; align-items: flex-start; gap: 9px; cursor: pointer;
  font-size: 13px; color: #4A4A48; margin: 0 0 14px; line-height: 1.4;
}
.co-confirm input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--rojo); cursor: pointer; flex: 0 0 auto; }
.co-next:disabled {
  opacity: .45; cursor: not-allowed; filter: grayscale(.3);
}
.co-next:disabled:hover { background: var(--rojo); }

/* ---------- Pago: barra morada con logos (Nequi + Bre-B) ---------- */
.co-paga-bar {
  background: #2E035A; border-radius: 12px;
  padding: 16px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
.co-bar-nequi { height: 46px; width: auto; background: #fff; border-radius: 8px; padding: 5px 8px; display: block; }
.co-bar-sep { width: 1px; height: 40px; background: rgba(255,255,255,.3); }
.co-bar-breb { height: 34px; width: auto; display: block; }

/* ---------- Footer: enlace legal ---------- */
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.footer-legal { color: inherit; text-decoration: underline; opacity: .85; }
.footer-legal:hover { opacity: 1; color: var(--rojo); }

/* ---------- Modal Política de Privacidad ---------- */
.pol-modal { position: fixed; inset: 0; z-index: 110; display: none; align-items: center; justify-content: center; padding: 20px; }
.pol-modal.abierto { display: flex; }
.pol-backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.62); backdrop-filter: blur(2px); }
.pol-dialog {
  position: relative; z-index: 1; background: #fff; border-radius: 14px;
  width: min(680px, 100%); max-height: 88vh; overflow-y: auto;
  padding: 28px 30px 30px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.pol-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--negro); }
.pol-title { font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 800; line-height: 1.25; margin: 0 34px 16px 0; }
.pol-body { font-size: 14px; color: #3a3a38; line-height: 1.6; }
.pol-body h3 { font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; color: var(--negro); margin: 18px 0 6px; }
.pol-body p { margin: 0 0 8px; }
.pol-body ul { margin: 4px 0 10px; padding-left: 20px; }
.pol-body li { margin-bottom: 4px; }
.pol-fecha { margin-top: 16px; font-size: 12px; color: var(--gris-txt); font-style: italic; }

/* enlace dentro de las casillas de checkout */
.co-confirm a { color: var(--rojo); text-decoration: underline; }
