/* ============================================================
   MARIAL TIENDA — renovación visual
   Identidad: rosa pastel + burdeos/vino, blanco y negro.
   Script manuscrita para MARIAL, sans-serif gruesa en mayúsculas
   para títulos de sección (como las portadas de destacados de IG).
   ============================================================ */
:root{
  --rosa:#F9A8C9;
  --rosa-medio:#F27BAC;
  --rosa-fuerte:#E85D9A;
  --rosa-suave:#FDE9F2;
  --rosa-claro:#FCD3E4;
  --burdeos:#7A1F3D;
  --burdeos-oscuro:#5C1429;
  --burdeos-suave:#F7E3EA;
  --tinta:#2B2126;
  --gris:#6E5A63;
  --gris-claro:#F6F1F3;
  --blanco:#FFFFFF;
  --wa:#25D366;
  --wa-oscuro:#1DA851;
  --sombra:0 6px 24px rgba(122,31,61,.10);
  --sombra-fuerte:0 12px 32px rgba(122,31,61,.16);
  --radio:18px;
  --radio-sm:12px;
  --fuente:'Nunito',system-ui,-apple-system,'Segoe UI',sans-serif;
  --script:'Dancing Script',cursive;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--fuente);
  color:var(--tinta);
  background:var(--blanco);
  -webkit-font-smoothing:antialiased;
}
img{display:block;max-width:100%}
a{color:var(--burdeos);text-decoration:none}
a:hover{text-decoration:underline}
button{font-family:inherit;cursor:pointer}
input,select,textarea{font-family:inherit;font-size:1rem}
::selection{background:var(--rosa-claro);color:var(--burdeos-oscuro)}

/* ---------- Barra superior rotativa ---------- */
.topbar{
  background:var(--burdeos);
  color:#fff;
  text-align:center;
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.04em;
  padding:.5rem 1rem;
  min-height:2.1rem;
  display:flex;align-items:center;justify-content:center;
}
.topbar span{transition:opacity .4s ease}
.topbar.fade-out span{opacity:0}

/* ---------- Encabezado ---------- */
.site-header{
  position:sticky;top:0;z-index:60;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--rosa-suave);
  box-shadow:0 2px 12px rgba(122,31,61,.06);
}
.header-inner{
  max-width:1240px;margin:0 auto;
  display:flex;align-items:center;gap:.75rem;
  padding:.55rem 1rem;
}
.brand{display:flex;align-items:center;gap:.55rem;flex-shrink:0}
.brand:hover{text-decoration:none}
.brand-logo{border-radius:50%;object-fit:cover}
.brand-text{display:flex;flex-direction:column;line-height:1}
.brand-script{
  font-family:var(--script);
  font-size:2rem;font-weight:700;
  color:var(--burdeos);
}
.brand-sub{
  font-size:.62rem;font-weight:900;letter-spacing:.42em;
  color:var(--rosa-medio);margin-top:-.15rem;
}
.search-form{
  flex:1;max-width:560px;margin:0 auto;
  display:flex;align-items:center;
  background:var(--gris-claro);
  border:2px solid transparent;
  border-radius:999px;
  padding:.15rem .35rem .15rem 1rem;
  position:relative;
}
.search-form:focus-within{border-color:var(--rosa);background:#fff}
.search-form input{
  flex:1;border:0;outline:0;background:transparent;
  padding:.5rem 0;color:var(--tinta);min-width:0;
}
.search-form input::placeholder{color:var(--gris)}
.header-actions{display:flex;align-items:center;gap:.25rem;margin-left:auto}
.icon-btn{
  position:relative;
  display:inline-flex;align-items:center;justify-content:center;
  width:42px;height:42px;border:0;border-radius:50%;
  background:transparent;color:var(--burdeos);
  transition:background .15s ease;
}
.icon-btn:hover{background:var(--rosa-suave)}
.icon-btn .badge{
  position:absolute;top:2px;right:0;
  min-width:18px;height:18px;padding:0 4px;
  border-radius:999px;background:var(--burdeos);color:#fff;
  font-size:.68rem;font-weight:900;
  display:flex;align-items:center;justify-content:center;
}
#btn-menu{display:none}

/* Navegación de categorías (escritorio) */
.cat-nav{
  max-width:1240px;margin:0 auto;
  display:flex;gap:.25rem;justify-content:flex-start;
  padding:0 1rem .55rem;
  overflow-x:auto;scrollbar-width:none;
}
/* Centrado cuando cabe, anclado a la izquierda (desplazable) cuando desborda:
   los márgenes automáticos absorben el espacio libre solo si lo hay. */
#cat-nav a:first-child{margin-left:auto}
#cat-nav a:last-child{margin-right:auto}
.cat-nav::-webkit-scrollbar{display:none}
.cat-nav a{
  white-space:nowrap;color:var(--tinta);
  font-size:.82rem;font-weight:800;letter-spacing:.03em;
  padding:.45rem .9rem;border-radius:999px;
}
.cat-nav a:hover{background:var(--rosa-suave);text-decoration:none;color:var(--burdeos)}
.cat-nav a.active{background:var(--burdeos);color:#fff}

/* ---------- Menú lateral ---------- */
.drawer-overlay{
  position:fixed;inset:0;background:rgba(43,33,38,.5);
  z-index:90;opacity:0;transition:opacity .25s ease;
}
.drawer-overlay.show{opacity:1}
.side-menu{
  position:fixed;top:0;left:0;bottom:0;width:min(320px,88vw);
  background:#fff;z-index:95;overflow-y:auto;
  transform:translateX(-105%);transition:transform .3s ease;
  box-shadow:var(--sombra-fuerte);
  display:flex;flex-direction:column;
}
.side-menu.open{transform:translateX(0)}
.side-menu-head{
  display:flex;align-items:center;gap:.6rem;
  padding:1rem;background:var(--rosa-suave);
}
.side-menu-head .brand-script{font-size:1.7rem}
.side-menu-sub{display:block;font-size:.72rem;color:var(--gris);font-weight:700}
.side-menu-head .icon-btn{margin-left:auto}
.side-menu-title{
  font-size:.72rem;font-weight:900;letter-spacing:.14em;
  text-transform:uppercase;color:var(--burdeos);
  padding:1.1rem 1.25rem .4rem;margin:0;
}
.side-menu-links{display:flex;flex-direction:column}
.side-menu-links a{
  padding:.65rem 1.25rem;color:var(--tinta);
  font-weight:700;border-bottom:1px solid var(--gris-claro);
}
.side-menu-links a:hover{background:var(--rosa-suave);text-decoration:none;color:var(--burdeos)}
.side-contact{padding:1.25rem;font-size:.85rem;color:var(--gris);line-height:1.7}
.side-contact strong{color:var(--burdeos)}

/* ---------- Carrito lateral ---------- */
.cart-drawer{
  position:fixed;top:0;right:0;bottom:0;width:min(400px,92vw);
  background:#fff;z-index:95;
  transform:translateX(105%);transition:transform .3s ease;
  box-shadow:var(--sombra-fuerte);
  display:flex;flex-direction:column;
}
.cart-drawer.open{transform:translateX(0)}
.cart-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:1rem 1.25rem;border-bottom:1px solid var(--rosa-suave);
}
.cart-head h2{margin:0;font-size:1.15rem;font-weight:900;color:var(--burdeos)}
.cart-body{flex:1;overflow-y:auto;padding:1rem 1.25rem}
.cart-foot{border-top:1px solid var(--rosa-suave);padding:1rem 1.25rem 1.25rem}
.cart-empty{text-align:center;padding:2rem 0 1rem;color:var(--gris)}
.cart-empty .cart-empty-icon{font-size:3rem;line-height:1}
.cart-empty h3{color:var(--burdeos);margin:.75rem 0 .25rem}
.cart-empty p{margin:0 0 1rem}
.cart-item{
  display:flex;gap:.75rem;padding:.75rem 0;
  border-bottom:1px solid var(--gris-claro);
}
.cart-item img{width:64px;height:64px;object-fit:cover;border-radius:var(--radio-sm);flex-shrink:0}
.cart-item-info{flex:1;min-width:0}
.cart-item-info h4{margin:0 0 .15rem;font-size:.9rem;line-height:1.3}
.cart-item-info .cart-item-price{color:var(--burdeos);font-weight:900;font-size:.95rem}
.cart-item-controls{display:flex;align-items:center;gap:.5rem;margin-top:.4rem}
.qty-btn{
  width:28px;height:28px;border-radius:50%;
  border:1.5px solid var(--rosa);background:#fff;color:var(--burdeos);
  font-weight:900;font-size:1rem;line-height:1;
  display:inline-flex;align-items:center;justify-content:center;
}
.qty-btn:hover{background:var(--rosa-suave)}
.cart-item-qty{font-weight:800;min-width:20px;text-align:center}
.cart-item-remove{
  border:0;background:transparent;color:var(--gris);
  font-size:.8rem;font-weight:700;padding:.25rem 0;
}
.cart-item-remove:hover{color:var(--burdeos)}
.cart-total-row{display:flex;justify-content:space-between;font-weight:700;margin:.3rem 0}
.cart-total-row.total{font-size:1.15rem;color:var(--burdeos);font-weight:900;margin-top:.6rem}
.cart-total-row.discount{color:#1E7A46}
.cart-code{display:flex;gap:.5rem;margin:.75rem 0}
.cart-code input{
  flex:1;border:1.5px solid var(--rosa-claro);border-radius:10px;
  padding:.55rem .75rem;text-transform:uppercase;min-width:0;
}
.cart-code input:focus{outline:2px solid var(--rosa)}
.cart-code-msg{font-size:.82rem;font-weight:700;margin:-.25rem 0 .5rem}
.cart-code-msg.ok{color:#1E7A46}
.cart-code-msg.err{color:#B3261E}

/* ---------- Checkout en el carrito ---------- */
.checkout-section{margin-top:1.4rem;padding-top:1.2rem;border-top:1.5px dashed var(--rosa-claro)}
.checkout-title{font-size:.95rem;font-weight:900;color:var(--burdeos);margin:1.1rem 0 .6rem}
.checkout-title:first-child{margin-top:0}
.opt-group{display:flex;flex-direction:column;gap:.5rem}
.opt-card{
  display:flex;flex-direction:column;gap:.1rem;cursor:pointer;
  border:1.5px solid var(--rosa-claro);border-radius:12px;
  padding:.65rem .85rem;background:#fff;transition:border-color .15s ease, background .15s ease;
}
.opt-card:hover{border-color:var(--rosa-medio)}
.opt-card.selected{border-color:var(--burdeos);background:var(--rosa-suave)}
.opt-card input{position:absolute;opacity:0;pointer-events:none}
.opt-label{font-weight:900;font-size:.92rem;color:var(--tinta)}
.opt-card.selected .opt-label{color:var(--burdeos)}
.opt-detail{font-size:.8rem;color:var(--gris);line-height:1.35}
.checkout-hint{font-size:.8rem;color:var(--gris);margin:.45rem 0 0;font-style:italic}
.transfer-box{
  display:flex;flex-direction:column;align-items:flex-start;gap:.4rem;
  background:var(--rosa-suave);border-radius:12px;padding:.8rem .9rem;margin-top:.6rem;
}
.transfer-key{font-size:1.15rem;font-weight:900;color:var(--burdeos);letter-spacing:.02em}
.checkout-field{margin-bottom:.6rem}
.checkout-field label{display:block;font-size:.82rem;font-weight:800;color:var(--tinta);margin-bottom:.25rem}
.checkout-field input{
  width:100%;border:1.5px solid var(--rosa-claro);border-radius:10px;
  padding:.6rem .75rem;font-size:.95rem;font-family:inherit;color:var(--tinta);background:#fff;
}
.checkout-field input:focus{outline:2px solid var(--rosa);border-color:var(--rosa)}
.checkout-field input.field-err{border-color:#B3261E;outline:2px solid rgba(179,38,30,.25)}
.cart-reco{margin-top:1.25rem}
.cart-reco h3{font-size:.95rem;color:var(--burdeos);margin:0 0 .5rem}
.cart-reco-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem}

/* ---------- Botones ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  border:0;border-radius:999px;
  padding:.8rem 1.6rem;
  font-weight:900;font-size:.95rem;letter-spacing:.02em;
  transition:transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.btn:active{transform:scale(.97)}
.btn-primary{background:var(--burdeos);color:#fff;box-shadow:0 6px 18px rgba(122,31,61,.28)}
.btn-primary:hover{background:var(--burdeos-oscuro);text-decoration:none}
.btn-rosa{background:var(--rosa);color:var(--burdeos-oscuro)}
.btn-rosa:hover{background:var(--rosa-medio);text-decoration:none}
.btn-outline{background:#fff;color:var(--burdeos);border:2px solid var(--burdeos)}
.btn-outline:hover{background:var(--burdeos-suave);text-decoration:none}
.btn-wa{background:var(--wa);color:#fff}
.btn-wa:hover{background:var(--wa-oscuro);text-decoration:none}
.btn-block{width:100%}
.btn-sm{padding:.5rem 1rem;font-size:.85rem}

/* ---------- Layout general ---------- */
.app{min-height:60vh}
.wrap{max-width:1240px;margin:0 auto;padding:0 1rem}
.section{padding:2.6rem 0}
.section--rosa{background:var(--rosa-suave)}
.section--burdeos{background:var(--burdeos);color:#fff}
.section-head{
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:1rem;margin-bottom:1.4rem;flex-wrap:wrap;
}
.section-title{
  font-size:1.6rem;font-weight:900;letter-spacing:.02em;
  text-transform:uppercase;color:var(--burdeos);margin:0;
  line-height:1.15;
}
.section--burdeos .section-title{color:#fff}
.section-sub{margin:.3rem 0 0;color:var(--gris);font-weight:600}
.section--burdeos .section-sub{color:var(--rosa-claro)}
.section-link{font-weight:900;white-space:nowrap}
.section-link:hover{color:var(--burdeos-oscuro)}

/* ---------- Hero MARIAL BOX ---------- */
.hero{
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(242,123,172,.35), transparent 60%),
    radial-gradient(ellipse 50% 70% at 10% 90%, rgba(249,168,201,.5), transparent 60%),
    linear-gradient(135deg,#FDE9F2 0%,#FCD3E4 55%,#F9A8C9 100%);
  overflow:hidden;
}
.hero-inner{
  max-width:1240px;margin:0 auto;padding:3.2rem 1rem 3.6rem;
  display:grid;grid-template-columns:1.05fr .95fr;gap:2.5rem;align-items:center;
}
.hero-eyebrow{
  display:inline-block;background:var(--burdeos);color:#fff;
  font-size:.72rem;font-weight:900;letter-spacing:.18em;text-transform:uppercase;
  padding:.4rem .9rem;border-radius:999px;margin-bottom:1rem;
}
.hero-title{
  font-family:var(--script);
  font-size:clamp(3.2rem,7vw,5.2rem);font-weight:700;
  color:var(--burdeos);line-height:.95;margin:0 0 .4rem;
}
.hero-title span{display:block;font-size:.55em;color:var(--burdeos-oscuro)}
.hero-slogan{
  font-size:1.35rem;font-weight:900;letter-spacing:.02em;
  text-transform:uppercase;color:var(--tinta);margin:.2rem 0 .8rem;
}
.hero-text{color:#5C4350;font-size:1.05rem;line-height:1.6;max-width:46ch;margin:0 0 1.5rem}
.hero-actions{display:flex;gap:.75rem;flex-wrap:wrap}
.hero-visual{position:relative;display:flex;justify-content:center}
.hero-box{
  position:relative;width:min(380px,86vw);aspect-ratio:1;
  background:#fff;border-radius:32px;
  box-shadow:0 24px 60px rgba(122,31,61,.22);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:1.5rem;overflow:hidden;
}
.hero-box::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 50% 0%, rgba(249,168,201,.45), transparent 65%);
}
.hero-box-logo{width:110px;height:110px;border-radius:50%;object-fit:cover;position:relative;box-shadow:var(--sombra)}
/* Carrusel MARIAL BOX: las fotos de la caja pasan solas con fundido */
.hero-box-slides{position:relative;width:min(270px,70%);aspect-ratio:4/3;border-radius:20px;overflow:hidden;box-shadow:var(--sombra)}
.hero-box-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-box-slide{opacity:0;transition:opacity .9s ease-in-out}
.hero-box-slide.is-active{opacity:1}
.hero-box-link{display:block;text-decoration:none;color:inherit}
.hero-box-script{
  font-family:var(--script);font-size:3rem;font-weight:700;
  color:var(--burdeos);line-height:1;position:relative;margin-top:.6rem;
}
.hero-box-tag{
  font-weight:900;letter-spacing:.28em;text-transform:uppercase;
  font-size:.85rem;color:var(--burdeos);position:relative;
}
.hero-box-hearts{font-size:1.4rem;letter-spacing:.3em;position:relative;margin-top:.5rem}
.hero-chip{
  position:absolute;background:#fff;border-radius:999px;
  box-shadow:var(--sombra-fuerte);padding:.5rem .95rem;
  font-size:.8rem;font-weight:900;color:var(--burdeos);
  display:flex;align-items:center;gap:.4rem;
}
.hero-chip--a{top:5%;left:5%}
.hero-chip--b{bottom:5%;right:5%}

/* ---------- Categorías ---------- */
.cat-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
  gap:1.1rem;
}
.cat-card{
  display:flex;flex-direction:column;align-items:center;gap:.6rem;
  text-align:center;color:var(--tinta);padding:.5rem;
}
.cat-card:hover{text-decoration:none}
.cat-circle{
  width:110px;height:110px;border-radius:50%;
  background:var(--rosa-suave);
  border:3px solid var(--rosa-claro);
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;transition:transform .18s ease, border-color .18s ease;
  font-family:var(--script);font-size:2.2rem;font-weight:700;color:var(--burdeos);
}
.cat-card:hover .cat-circle{transform:scale(1.06);border-color:var(--burdeos)}
.cat-circle img{width:100%;height:100%;object-fit:cover}
.cat-card span{font-weight:800;font-size:.85rem;line-height:1.3}
.cat-card small{color:var(--gris);font-weight:700}

/* ---------- Carruseles ---------- */
.carousel{position:relative}
.carousel-track{
  display:flex;gap:1rem;overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding:.4rem .2rem 1rem;
  scrollbar-width:none;
}
.carousel-track::-webkit-scrollbar{display:none}
.carousel-track>*{scroll-snap-align:start;flex-shrink:0}
.carousel-btn{
  position:absolute;top:38%;z-index:2;
  width:44px;height:44px;border-radius:50%;border:0;
  background:#fff;color:var(--burdeos);
  box-shadow:var(--sombra-fuerte);
  display:flex;align-items:center;justify-content:center;
  font-size:1.3rem;font-weight:900;
}
.carousel-btn:hover{background:var(--burdeos);color:#fff}
.carousel-btn--prev{left:-8px}
.carousel-btn--next{right:-8px}

/* ---------- Tarjeta de producto ---------- */
.product-card{
  width:230px;background:#fff;border-radius:var(--radio);
  overflow:hidden;box-shadow:var(--sombra);
  display:flex;flex-direction:column;
  transition:transform .18s ease, box-shadow .18s ease;
  position:relative;
}
.product-card:hover{transform:translateY(-4px);box-shadow:var(--sombra-fuerte)}
.product-media{position:relative;aspect-ratio:1;background:var(--rosa-suave);overflow:hidden}
.product-media img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.product-card:hover .product-media img{transform:scale(1.05)}
.product-media a{display:block;width:100%;height:100%}
.product-badge{
  position:absolute;top:.6rem;left:.6rem;z-index:2;
  background:var(--burdeos);color:#fff;
  font-size:.72rem;font-weight:900;letter-spacing:.05em;
  padding:.3rem .6rem;border-radius:999px;
}
.product-badge--oferta{background:#C2185B}
.product-fav{
  position:absolute;top:.5rem;right:.5rem;z-index:2;
  width:36px;height:36px;border-radius:50%;border:0;
  background:rgba(255,255,255,.92);color:var(--burdeos);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
}
.product-fav.active svg{fill:var(--burdeos)}
.product-fav svg{fill:none}
.product-body{padding:.85rem .95rem 1rem;display:flex;flex-direction:column;flex:1}
.product-cat{
  font-size:.72rem;font-weight:900;letter-spacing:.12em;
  text-transform:uppercase;color:#C2185B;margin-bottom:.25rem;min-height:1em;
}
.product-name{
  font-size:.95rem;font-weight:800;line-height:1.35;margin:0 0 .4rem;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  min-height:2.6em;
}
.product-name a{color:var(--tinta)}
.product-name a:hover{color:var(--burdeos);text-decoration:none}
.product-price-row{display:flex;align-items:baseline;gap:.5rem;margin-top:auto}
.product-price{font-size:1.15rem;font-weight:900;color:var(--burdeos)}
.product-old{font-size:.85rem;color:var(--gris);text-decoration:line-through;font-weight:700}
.product-add{margin-top:.7rem;width:100%}

/* Rejilla de catálogo */
.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
  gap:1.1rem;
}
.product-grid .product-card{width:100%}

/* ---------- Banners editoriales ---------- */
.editorial-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.editorial-card{
  position:relative;border-radius:var(--radio);overflow:hidden;
  aspect-ratio:4/3.4;display:flex;align-items:flex-end;
  color:#fff;box-shadow:var(--sombra);
}
.editorial-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.editorial-card:hover img{transform:scale(1.05)}
.editorial-card::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(to top, rgba(92,20,41,.82), rgba(92,20,41,.15) 55%, transparent);
}
.editorial-card:hover{text-decoration:none}
.editorial-content{position:relative;z-index:2;padding:1.25rem}
.editorial-content h3{
  margin:0;font-size:1.3rem;font-weight:900;
  text-transform:uppercase;letter-spacing:.03em;line-height:1.15;
}
.editorial-content p{margin:.3rem 0 0;font-size:.88rem;font-weight:700;opacity:.92}
.editorial-content .editorial-cta{
  display:inline-block;margin-top:.7rem;
  background:#fff;color:var(--burdeos);
  font-size:.8rem;font-weight:900;
  padding:.45rem .95rem;border-radius:999px;
}

/* ---------- Slider de banners (BD) ---------- */
.banner-slider{position:relative;border-radius:var(--radio);overflow:hidden;box-shadow:var(--sombra)}
.banner-slider img{width:100%;aspect-ratio:21/7;object-fit:cover}
.banner-dots{position:absolute;bottom:.8rem;left:0;right:0;display:flex;justify-content:center;gap:.4rem}
.banner-dot{width:9px;height:9px;border-radius:50%;border:0;background:rgba(255,255,255,.6);padding:0}
.banner-dot.active{background:#fff}

/* ---------- Instagram ---------- */
.ig-strip{display:grid;grid-template-columns:repeat(6,1fr);gap:.6rem}
.ig-tile{
  position:relative;border-radius:var(--radio-sm);overflow:hidden;
  aspect-ratio:1;background:var(--rosa-suave);
}
.ig-tile img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.ig-tile:hover img{transform:scale(1.07)}
.ig-tile::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(to top, rgba(122,31,61,.35), transparent 55%);
  opacity:0;transition:opacity .25s ease;
}
.ig-tile:hover::after{opacity:1}

/* ---------- Confianza ---------- */
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.trust-item{
  background:#fff;border-radius:var(--radio);padding:1.4rem 1.1rem;
  text-align:center;box-shadow:var(--sombra);
}
.trust-item .trust-icon{
  width:56px;height:56px;margin:0 auto .7rem;border-radius:50%;
  background:var(--rosa-suave);color:var(--burdeos);
  display:flex;align-items:center;justify-content:center;
}
.trust-item h3{margin:0 0 .3rem;font-size:1rem;color:var(--burdeos)}
.trust-item p{margin:0;font-size:.88rem;color:var(--gris);line-height:1.5}

/* ---------- Pie ---------- */
.site-footer{background:var(--burdeos-oscuro);color:#F7E3EA;margin-top:0}
.footer-inner{
  max-width:1240px;margin:0 auto;padding:3rem 1rem 1.5rem;
  display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:2rem;
}
.footer-brand .brand-script{color:var(--rosa);font-size:2.4rem}
.footer-brand p{margin:.5rem 0 0;font-size:.9rem;line-height:1.6;color:#E8C9D4}
.footer-social{display:flex;gap:.6rem;margin-top:1rem}
.footer-social a{
  width:40px;height:40px;border-radius:50%;
  background:rgba(255,255,255,.12);color:#fff;
  display:flex;align-items:center;justify-content:center;
}
.footer-social a:hover{background:var(--rosa);color:var(--burdeos-oscuro);text-decoration:none}
.site-footer h4{
  color:#fff;font-size:.85rem;font-weight:900;
  letter-spacing:.14em;text-transform:uppercase;margin:0 0 .9rem;
}
.footer-links{display:flex;flex-direction:column;gap:.5rem}
.footer-links a{color:#E8C9D4;font-size:.92rem}
.footer-links a:hover{color:#fff}
.footer-contact{font-size:.92rem;line-height:1.9;color:#E8C9D4}
.footer-contact strong{color:#fff}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.15);
  max-width:1240px;margin:0 auto;padding:1.1rem 1rem 1.4rem;
  display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;
  font-size:.82rem;color:#C99AA9;
}
.footer-bottom a{color:#E8C9D4}

/* ---------- WhatsApp flotante ---------- */
.wa-float{
  position:fixed;right:1.1rem;bottom:1.1rem;z-index:70;
  width:58px;height:58px;border-radius:50%;
  background:var(--wa);color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 22px rgba(37,211,102,.45);
  transition:transform .15s ease;
}
.wa-float:hover{transform:scale(1.08);text-decoration:none;background:var(--wa-oscuro)}

/* ---------- Buscador predictivo ---------- */
.search-suggest{
  position:absolute;top:calc(100% + 8px);left:0;right:0;
  background:#fff;border-radius:var(--radio);box-shadow:var(--sombra-fuerte);
  overflow:hidden;z-index:80;max-height:420px;overflow-y:auto;
}
.suggest-item{
  display:flex;align-items:center;gap:.75rem;
  padding:.65rem .9rem;color:var(--tinta);cursor:pointer;
}
.suggest-item:hover{background:var(--rosa-suave);text-decoration:none}
.suggest-item img{width:44px;height:44px;object-fit:cover;border-radius:10px;flex-shrink:0}
.suggest-item .suggest-name{flex:1;font-size:.9rem;font-weight:700;line-height:1.3}
.suggest-item .suggest-price{color:var(--burdeos);font-weight:900;font-size:.9rem;white-space:nowrap}
.suggest-empty{padding:1rem;text-align:center;color:var(--gris);font-weight:700}
.suggest-more{
  display:block;text-align:center;padding:.7rem;
  font-weight:900;color:var(--burdeos);border-top:1px solid var(--gris-claro);
}

/* ---------- Catálogo ---------- */
.catalog-head{padding:2rem 0 .5rem}
.catalog-head h1{
  font-size:1.7rem;font-weight:900;text-transform:uppercase;
  letter-spacing:.02em;color:var(--burdeos);margin:0 0 .3rem;
}
.catalog-head p{margin:0;color:var(--gris);font-weight:600}
.filters-bar{
  display:flex;flex-direction:column;align-items:stretch;gap:.6rem;
  padding:1rem 0;position:sticky;top:118px;z-index:40;
  background:rgba(255,255,255,.95);backdrop-filter:blur(6px);
}
.filter-pills{display:flex;gap:.45rem;flex-wrap:nowrap;flex:none;width:100%;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:.1rem}
.filter-pills::-webkit-scrollbar{display:none}
.pill{
  border:1.5px solid var(--rosa-claro);background:#fff;
  color:var(--tinta);font-weight:800;font-size:.82rem;
  padding:.45rem .95rem;border-radius:999px;white-space:nowrap;
}
.pill:hover{border-color:var(--burdeos);color:var(--burdeos)}
.pill.active{background:var(--burdeos);border-color:var(--burdeos);color:#fff}
.filter-selects{display:flex;gap:.5rem;flex-wrap:wrap}
.filter-selects select{
  border:1.5px solid var(--rosa-claro);border-radius:999px;
  padding:.45rem .8rem;background:#fff;color:var(--tinta);font-weight:700;font-size:.85rem;
}
.filter-selects select:focus{outline:2px solid var(--rosa)}
.filters-toggle{display:none}
.filters-chev{display:inline-block;transition:transform .2s}
.filters-count{
  background:var(--burdeos);color:#fff;border-radius:999px;
  min-width:1.25rem;height:1.25rem;padding:0 .3rem;
  display:inline-flex;align-items:center;justify-content:center;font-size:.72rem;
}
.results-count{font-size:.88rem;color:var(--gris);font-weight:700;padding:.4rem 0 1rem}
.empty-state{text-align:center;padding:3.5rem 1rem;color:var(--gris)}
.empty-state h2{color:var(--burdeos);margin:0 0 .5rem}
.empty-state p{margin:0 0 1.25rem}

/* ---------- Ficha de producto ---------- */
.breadcrumbs{padding:1.2rem 0 .4rem;font-size:.85rem;font-weight:700;color:var(--gris)}
.breadcrumbs a{color:var(--burdeos)}
.product-detail{
  display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;
  padding:1rem 0 2.5rem;
}
.gallery-main{
  border-radius:var(--radio);overflow:hidden;background:var(--rosa-suave);
  aspect-ratio:1;position:relative;
}
.gallery-main img{width:100%;height:100%;object-fit:cover}
.gallery-thumbs{display:flex;gap:.6rem;margin-top:.6rem}
.gallery-thumb{
  width:76px;height:76px;border-radius:var(--radio-sm);overflow:hidden;
  border:2.5px solid transparent;padding:0;background:var(--rosa-suave);cursor:pointer;
}
.gallery-thumb img{width:100%;height:100%;object-fit:cover}
.gallery-thumb.active{border-color:var(--burdeos)}
.detail-cat{
  font-size:.75rem;font-weight:900;letter-spacing:.14em;
  text-transform:uppercase;color:var(--rosa-medio);
}
.detail-title{font-size:1.7rem;font-weight:900;line-height:1.25;margin:.3rem 0 .6rem}
.detail-stock{
  display:inline-block;font-size:.8rem;font-weight:800;
  background:#E7F6EC;color:#1E7A46;
  padding:.3rem .7rem;border-radius:999px;margin-bottom:.8rem;
}
.detail-stock.out{background:#FDECEA;color:#B3261E}
.detail-price-row{display:flex;align-items:baseline;gap:.7rem;margin-bottom:1rem}
.detail-price{font-size:2rem;font-weight:900;color:var(--burdeos)}
.detail-old{font-size:1.1rem;color:var(--gris);text-decoration:line-through;font-weight:700}
.detail-save{
  background:#C2185B;color:#fff;font-size:.8rem;font-weight:900;
  padding:.3rem .6rem;border-radius:999px;
}
.detail-desc{line-height:1.7;color:#4A3640;margin:0 0 1.2rem}
.detail-features{margin:0 0 1.4rem;padding:0;list-style:none}
.detail-features li{
  padding:.45rem 0 .45rem 1.7rem;position:relative;
  border-bottom:1px solid var(--gris-claro);font-weight:600;line-height:1.5;
}
.detail-features li::before{
  content:"";position:absolute;left:.2rem;top:1rem;
  width:8px;height:8px;border-radius:50%;background:var(--rosa-medio);
}
.detail-actions{display:flex;gap:.6rem;flex-wrap:wrap;align-items:stretch}
.qty-picker{
  display:flex;align-items:center;gap:.2rem;
  border:2px solid var(--rosa-claro);border-radius:999px;padding:.2rem;
}
.qty-picker .qty-btn{width:36px;height:36px}
.qty-picker .qty-value{font-weight:900;min-width:28px;text-align:center;font-size:1.05rem}
.detail-actions .btn{flex:1;min-width:150px}
.detail-meta{
  margin-top:1.4rem;padding:1rem;background:var(--rosa-suave);
  border-radius:var(--radio-sm);font-size:.88rem;line-height:1.8;color:#5C4350;
}
.detail-meta strong{color:var(--burdeos)}
.sticky-buy{
  display:none;
  position:fixed;left:0;right:0;bottom:0;z-index:65;
  background:#fff;border-top:1px solid var(--rosa-suave);
  box-shadow:0 -6px 20px rgba(122,31,61,.12);
  padding:.6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
  gap:.6rem;align-items:center;
}
.sticky-buy .sticky-price{font-weight:900;color:var(--burdeos);font-size:1.1rem;white-space:nowrap}
.sticky-buy .btn{flex:1;padding:.7rem 1rem}

/* ---------- Barra inferior móvil ---------- */
.mobile-nav{
  display:none;
  position:fixed;left:0;right:0;bottom:0;z-index:65;
  background:#fff;border-top:1px solid var(--rosa-suave);
  box-shadow:0 -4px 16px rgba(122,31,61,.10);
  padding:.35rem .5rem calc(.35rem + env(safe-area-inset-bottom));
  justify-content:space-around;
}
.mobile-nav a,.mobile-nav button{
  display:flex;flex-direction:column;align-items:center;gap:2px;
  color:var(--gris);font-size:.68rem;font-weight:800;
  background:none;border:0;padding:.3rem .6rem;position:relative;
}
.mobile-nav a.active,.mobile-nav button.active{color:var(--burdeos)}
.mobile-nav .badge{
  position:absolute;top:0;right:2px;
  min-width:16px;height:16px;padding:0 3px;border-radius:999px;
  background:var(--burdeos);color:#fff;font-size:.62rem;font-weight:900;
  display:flex;align-items:center;justify-content:center;
}

/* ---------- Toast ---------- */
.toast{
  position:fixed;left:50%;bottom:5.5rem;transform:translateX(-50%);
  background:var(--burdeos-oscuro);color:#fff;
  padding:.8rem 1.4rem;border-radius:999px;z-index:120;
  font-weight:800;font-size:.9rem;box-shadow:var(--sombra-fuerte);
  max-width:92vw;text-align:center;
}

/* ---------- Estados de carga / error ---------- */
.loading-state{text-align:center;padding:4rem 1rem;color:var(--gris)}
.loading-heart{font-size:2.5rem;animation:pulse 1.1s ease-in-out infinite}
@keyframes pulse{0%,100%{transform:scale(1);opacity:.7}50%{transform:scale(1.25);opacity:1}}
.loading-state p{font-weight:700;margin-top:.8rem}
.error-state{
  text-align:center;padding:3rem 1rem;max-width:560px;margin:0 auto;
}
.error-state h2{color:var(--burdeos)}
.error-state p{color:var(--gris);line-height:1.6}

/* ---------- Responsive ---------- */
@media (max-width:1020px){
  .hero-inner{grid-template-columns:1fr;gap:1.8rem}
  .hero-visual{order:-1}
  .editorial-grid{grid-template-columns:1fr 1fr}
  .ig-strip{grid-template-columns:repeat(3,1fr)}
  .trust-grid{grid-template-columns:repeat(2,1fr)}
  .footer-inner{grid-template-columns:1fr 1fr}
}
@media (max-width:820px){
  #btn-menu{display:inline-flex}
  .cat-nav{display:none}
  .header-inner{flex-wrap:wrap}
  .search-form{order:3;flex-basis:100%;max-width:none;margin-top:.2rem}
  .filters-bar{top:122px}
  .catalog-head{padding:1.2rem 0 .25rem}
  .catalog-head h1{font-size:1.35rem}
  /* Móvil: categorías en una sola fila con desplazamiento horizontal y
     filtros colapsados en un botón, para que los productos se vean
     desde el primer pantallazo. */
  .filters-bar{flex-direction:column;align-items:stretch;gap:.5rem;padding:.7rem 0}
  .filter-pills{flex:none;width:100%}
  .filters-toggle{
    display:inline-flex;align-items:center;justify-content:center;gap:.4rem;
    border:1.5px solid var(--burdeos);background:#fff;color:var(--burdeos);
    font-weight:800;font-size:.85rem;padding:.5rem 1rem;border-radius:999px;
  }
  .filter-selects{display:none}
  .filters-bar.filters-open .filter-selects{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
  .filters-bar.filters-open .filter-selects select{width:100%}
  .filters-bar.filters-open .filters-chev{transform:rotate(180deg)}
  .hero-inner{padding:2.2rem 1rem 2.6rem}
  .hero-box{width:min(300px,80vw)}
  .hero-chip{display:none}
  .product-detail{grid-template-columns:1fr;gap:1.4rem}
  .sticky-buy.show{display:flex}
  .mobile-nav{display:flex}
  body{padding-bottom:58px}
  body.is-product{padding-bottom:74px}
  body.is-product .mobile-nav{display:none}
  body.is-product .wa-float{display:none}
  .wa-float{bottom:4.6rem;right:.9rem;width:52px;height:52px}
  .toast{bottom:8rem}
  .carousel-btn{display:none}
  .editorial-grid{grid-template-columns:1fr}
  .footer-inner{grid-template-columns:1fr;gap:1.6rem}
  .section{padding:2rem 0}
  .section-title{font-size:1.3rem}
}
@media (max-width:480px){
  .hero-box-slides{width:64%}
  .hero-box-script{font-size:2.4rem}
  .cat-grid{grid-template-columns:repeat(3,1fr);gap:.6rem}
  .cat-circle{width:88px;height:88px;font-size:1.7rem}
  .product-grid{grid-template-columns:repeat(2,1fr);gap:.7rem}
  .product-card{width:200px}
  .product-grid .product-card{width:100%}
  .product-price{font-size:1.02rem}
  .trust-grid{grid-template-columns:1fr 1fr;gap:.7rem}
  .ig-strip{grid-template-columns:repeat(3,1fr);gap:.4rem}
}
