/* ============================================================
   LUNA COSMÉTICOS — Estilos (paleta beige, negro y gris)
   Estructura tipo marketplace de belleza.
   ============================================================ */

:root {
  --rosa:        #c9b7a0;
  --rosa-suave:  #ede3d3;
  --nude:        #d9c2a0;
  --lavanda:     #c6c0b3;
  --menta:       #d2d2ce;
  --crema:       #faf8f5;
  --marfil:      #ffffff;

  --rosa-fuerte: #141414;
  --vino:        #0e0d0c;
  --dorado:      #b8925f;
  --dorado-claro:#f2dfae;
  --gris-claro:  #f1efeb;

  --texto:       #1f1d1a;
  --texto-soft:  #6b655c;
  --blanco:      #ffffff;
  --sombra:      0 14px 32px rgba(14, 13, 12, 0.18);
  --sombra-soft: 0 6px 18px rgba(14, 13, 12, 0.10);
  --radio:       20px;
  --radio-sm:    14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--texto); background: var(--crema); line-height: 1.6; overflow-x: hidden;
}
h1, h2, h3, h4, .logo-text { font-family: 'Fraunces', Georgia, serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; color: var(--vino);
}
.marcas .section-title, .como-funciona .section-title,
.catalogo .section-title { text-align: center; margin-bottom: 2rem; }
.como-funciona .section-title::after {
  content: ""; display: block; width: 56px; height: 4px; margin: 0.6rem auto 0;
  border-radius: 4px; background: linear-gradient(90deg, var(--rosa), var(--lavanda));
}

/* ===== Íconos SVG (base) ===== */
.ic { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.ic svg { width: 1.15em; height: 1.15em; display: block; }

/* ===== Botones ===== */
.btn {
  display: inline-block; cursor: pointer; border: none; font-family: 'Poppins', sans-serif;
  font-weight: 500; font-size: 0.98rem; padding: 0.8rem 1.7rem; border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary { background: linear-gradient(120deg, var(--rosa-fuerte), var(--vino)); color: #fff; box-shadow: var(--sombra-soft); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.btn-block { width: 100%; text-align: center; }

/* ===== Topbar ===== */
.topbar {
  background: var(--dorado-claro);
  color: var(--vino); text-align: center; font-size: 0.82rem; font-weight: 600; padding: 0.65rem 1rem;
}

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: none; }
.header-main {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
}
.logo { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.logo-moon { color: var(--vino); }
.logo-moon svg { width: 26px; height: 26px; }
.logo-text { font-size: 1.4rem; font-weight: 700; letter-spacing: 1px; color: var(--vino); line-height: 1; display: flex; flex-direction: column; }
.logo-text small { font-family: 'Poppins', sans-serif; font-size: 0.58rem; letter-spacing: 3px; text-transform: uppercase; color: var(--texto-soft); font-weight: 400; }

.search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 0.5rem; background: var(--gris-claro); border: 1.5px solid transparent; border-radius: 50px; padding: 0.6rem 1.1rem; }
.search:focus-within { border-color: var(--vino); background: #fff; }
.search .search-ic { color: var(--texto-soft); }
.search .search-ic svg { width: 18px; height: 18px; }
.search input { flex: 1; border: none; outline: none; background: none; font-family: 'Poppins', sans-serif; font-size: 0.9rem; color: var(--texto); }
.search-mobile { display: none; margin: 0 clamp(1rem,4vw,3rem) 0.7rem; max-width: none; }

.header-actions { display: flex; align-items: center; gap: 1.1rem; flex-shrink: 0; }
.header-link { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--texto); }
.header-link .ic svg { width: 20px; height: 20px; color: var(--vino); }
.header-link:hover { color: var(--vino); }

.cart-btn { position: relative; border: none; cursor: pointer; background: var(--gris-claro); color: var(--vino); padding: 0.5rem 0.7rem; border-radius: 50px; transition: transform 0.2s, background 0.2s; }
.cart-btn .ic svg { width: 22px; height: 22px; }
.cart-btn:hover { background: var(--rosa); transform: translateY(-2px); }
.cart-count { position: absolute; top: -6px; right: -6px; background: var(--vino); color: #fff; font-size: 0.68rem; font-weight: 600; min-width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; padding: 0 4px; }

.menu-toggle { display: none; border: none; background: none; font-size: 1.4rem; cursor: pointer; color: var(--vino); }

/* ===== Mega-nav ===== */
.mega-nav {
  display: flex; align-items: center; justify-content: center; gap: 1.6rem; flex-wrap: wrap;
  background: var(--vino); padding: 0.75rem 1rem; border-top: none;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.4px; text-transform: uppercase;
}
.mega-nav a { color: #fff; position: relative; padding: 0.2rem 0; transition: color 0.2s; }
.mega-nav a:hover { color: var(--dorado); }
.mega-nav a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--dorado); transition: width 0.25s; }
.mega-nav a:hover::after { width: 100%; }
.mega-nav .nav-hot { color: var(--dorado); font-weight: 600; }
.mega-nav .nav-sale { color: var(--dorado); font-weight: 600; }

/* ===== Hero carrusel ===== */
.hero-carousel { position: relative; overflow: hidden; }
.slides { position: relative; }
.slide {
  display: none; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 2rem;
  padding: clamp(2.2rem, 5vw, 4.5rem) clamp(1.2rem, 5vw, 4rem); min-height: 380px;
}
.slide.active { display: grid; animation: fade 0.6s ease; }
@keyframes fade { from { opacity: 0.3; } to { opacity: 1; } }
.hero-eyebrow { display: inline-block; background: #fff; color: var(--vino); font-size: 0.78rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; padding: 0.35rem 1rem; border-radius: 50px; box-shadow: var(--sombra-soft); margin-bottom: 1.1rem; }
.slide h1 { font-size: clamp(2.1rem, 5.2vw, 3.8rem); font-weight: 700; line-height: 1.06; color: var(--vino); margin-bottom: 1rem; }
.slide h1 span { background: linear-gradient(120deg, var(--rosa-fuerte), var(--dorado)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.05rem; color: var(--texto); max-width: 470px; margin-bottom: 1.6rem; }
.slide-art { position: relative; display: grid; place-items: center; min-height: 240px; }
.slide-icon { z-index: 2; color: var(--vino); filter: drop-shadow(0 20px 30px rgba(28,26,23,.22)); }
.slide-icon svg { width: clamp(110px, 20vw, 190px); height: auto; }
.blob { position: absolute; border-radius: 50%; filter: blur(6px); }
.blob-1 { width: 240px; height: 240px; background: var(--rosa); opacity: 0.5; top: 6%; left: 18%; animation: float 7s ease-in-out infinite; }
.blob-2 { width: 190px; height: 190px; background: var(--lavanda); opacity: 0.55; bottom: 6%; right: 14%; animation: float 9s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,0.85); color: var(--vino); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--sombra-soft); transition: background 0.2s; }
.carousel-arrow:hover { background: #fff; }
.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }
.carousel-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 5; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(28,26,23,0.3); cursor: pointer; transition: all 0.2s; }
.dot.active { background: var(--vino); width: 26px; border-radius: 50px; }

/* ===== Slides con video de fondo ===== */
.slide-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.slide-scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(20,19,17,0.78) 0%, rgba(20,19,17,0.55) 42%, rgba(20,19,17,0.18) 78%, rgba(20,19,17,0.08) 100%); }
.slide-media .slide-content { position: relative; z-index: 2; }
.slide-media .hero-eyebrow { background: rgba(255,255,255,0.94); color: var(--vino); }
.slide-media h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.35); }
.slide-media h1 span { background: linear-gradient(120deg, #f0e9df, var(--dorado)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slide-media .hero-sub { color: rgba(255,255,255,0.94); text-shadow: 0 1px 12px rgba(0,0,0,0.35); }
.slide-media .hero-sub strong { color: #fff; }

/* ===== Beneficios ===== */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; padding: 1.4rem clamp(1rem, 5vw, 4rem); background: #fff; border-bottom: 1px solid var(--rosa-suave); }
.benefit { display: flex; align-items: center; gap: 0.7rem; justify-content: center; }
.benefit .ic svg { width: 30px; height: 30px; color: var(--rosa-fuerte); }
.benefit strong { display: block; font-size: 0.9rem; color: var(--vino); }
.benefit span { font-size: 0.78rem; color: var(--texto-soft); }

/* ===== Marcas ===== */
.marcas { padding: clamp(2.2rem, 4vw, 3.2rem) 0 clamp(1.5rem, 3vw, 2.4rem); overflow: hidden; }
.marcas .section-title { padding: 0 1rem; }
.marcas-track { display: flex; gap: 2.6rem; align-items: center; width: max-content; animation: marquee 32s linear infinite; }
.marcas:hover .marcas-track { animation-play-state: paused; }
.marca-item { font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 600; color: var(--texto-soft); opacity: 0.85; white-space: nowrap; transition: color 0.2s; }
.marca-item:hover { color: var(--vino); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Filas de productos (carruseles) ===== */
.fila-productos { padding: clamp(1.5rem, 3vw, 2.6rem) 0 clamp(1.5rem, 3vw, 2.6rem) clamp(1rem, 5vw, 4rem); }
.fila-head { display: flex; align-items: baseline; justify-content: space-between; padding-right: clamp(1rem, 5vw, 4rem); margin-bottom: 1.3rem; }
.fila-head .section-title { margin: 0; }
.ver-todo { font-size: 0.9rem; font-weight: 500; color: var(--rosa-fuerte); white-space: nowrap; }
.ver-todo:hover { color: var(--vino); }
.fila-track {
  display: flex; gap: 1.2rem; overflow-x: auto; padding: 0.4rem clamp(1rem, 5vw, 4rem) 1.2rem 0;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--rosa) transparent;
}
.fila-track::-webkit-scrollbar { height: 8px; }
.fila-track::-webkit-scrollbar-thumb { background: var(--rosa); border-radius: 50px; }
.fila-track .product-card { flex: 0 0 220px; scroll-snap-align: start; }
.ofertas { background: linear-gradient(180deg, #fff, var(--rosa-suave)); }

/* ===== Tarjeta de producto ===== */
.product-card { background: #fff; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra-soft); transition: transform 0.25s, box-shadow 0.25s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.product-img { height: 180px; display: grid; place-items: center; position: relative; width: 100%; border: none; padding: 0; font: inherit; cursor: pointer; }
.product-img::after { content: ""; position: absolute; inset: 0; background: rgba(20,19,17,0); transition: background 0.2s; }
.product-img:hover::after, .product-img:focus-visible::after { background: rgba(20,19,17,0.08); }
.product-icon { color: var(--vino); filter: drop-shadow(0 6px 10px rgba(28,26,23,.15)); }
.product-icon svg { width: 92px; height: 92px; }
.product-icon-photo { width: 100%; height: 100%; object-fit: cover; }
.product-tag { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--vino); font-size: 0.68rem; font-weight: 600; padding: 0.25rem 0.7rem; border-radius: 50px; box-shadow: var(--sombra-soft); }
.product-tag.tag-sale { background: var(--vino); color: #fff; }
.product-tag.tag-new { background: var(--lavanda); color: var(--vino); }
.product-body { padding: 1rem 1.1rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.product-brand { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--rosa-fuerte); font-weight: 600; }
.product-name { font-size: 1rem; font-weight: 600; color: var(--vino); margin: 0.2rem 0 0.5rem; font-family: 'Fraunces', serif; line-height: 1.25; }
.product-price { font-size: 1.15rem; font-weight: 600; color: var(--texto); margin-bottom: 0.85rem; }
.product-price small { font-size: 0.75rem; color: var(--texto-soft); font-weight: 400; }
.product-price .antes { font-size: 0.85rem; color: var(--texto-soft); text-decoration: line-through; font-weight: 400; margin-right: 0.2rem; }
.add-btn { margin-top: auto; cursor: pointer; border: none; background: var(--rosa-suave); color: var(--vino); font-weight: 500; font-family: 'Poppins', sans-serif; font-size: 0.88rem; padding: 0.65rem; border-radius: 50px; transition: all 0.2s; }
.add-btn:hover { background: var(--rosa-fuerte); color: #fff; }

/* ===== Modal de producto ===== */
.product-overlay { position: fixed; inset: 0; background: rgba(20,19,17,0.45); opacity: 0; visibility: hidden; transition: 0.25s; z-index: 110; display: grid; place-items: center; padding: 1.5rem; }
.product-overlay.open { opacity: 1; visibility: visible; }
.product-modal { background: #fff; border-radius: var(--radio); width: min(560px, 100%); max-height: 88vh; overflow-y: auto; box-shadow: var(--sombra); position: relative; transform: translateY(16px) scale(0.97); opacity: 0; transition: 0.25s; }
.product-overlay.open .product-modal { transform: translateY(0) scale(1); opacity: 1; }
.product-modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,0.92); color: var(--vino); font-size: 1.05rem; cursor: pointer; box-shadow: var(--sombra-soft); z-index: 2; transition: background 0.2s; }
.product-modal-close:hover { background: #fff; }
.product-modal-img { height: 300px; display: grid; place-items: center; position: relative; }
.product-modal-icon { color: var(--vino); filter: drop-shadow(0 6px 10px rgba(28,26,23,.15)); }
.product-modal-icon svg { width: 130px; height: 130px; }
.product-modal-icon-photo { width: 100%; height: 100%; object-fit: cover; }
.product-modal-body { padding: 1.5rem 1.7rem 1.9rem; }
.product-modal-cat { display: inline-block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--texto-soft); background: var(--crema); padding: 0.25rem 0.7rem; border-radius: 50px; margin-bottom: 0.6rem; }
.product-modal-name { font-size: 1.3rem; font-weight: 600; color: var(--vino); margin: 0.25rem 0 0.6rem; font-family: 'Fraunces', serif; line-height: 1.25; }
.product-modal-price { font-size: 1.4rem; font-weight: 600; color: var(--texto); margin-bottom: 0.9rem; }
.product-modal-price small { font-size: 0.75rem; color: var(--texto-soft); font-weight: 400; }
.product-modal-price .antes { font-size: 0.95rem; color: var(--texto-soft); text-decoration: line-through; font-weight: 400; margin-right: 0.3rem; }
.product-modal-note { font-size: 0.85rem; color: var(--texto-soft); margin-bottom: 1.2rem; line-height: 1.5; }

/* ===== Modal de checkout ===== */
.checkout-modal { width: min(480px, 100%); }
.checkout-body { padding: 2rem 1.9rem 2.2rem; }
.checkout-title { font-size: 1.25rem; color: var(--vino); margin-bottom: 0.5rem; font-family: 'Fraunces', serif; }
.checkout-total { font-size: 0.9rem; color: var(--texto-soft); margin-bottom: 1.3rem; }
.checkout-total strong { color: var(--vino); }
.checkout-form { display: flex; flex-direction: column; gap: 0.7rem; }
.checkout-form input {
  border: 1.5px solid var(--rosa-suave); border-radius: var(--radio-sm); padding: 0.75rem 1rem;
  font-family: 'Poppins', sans-serif; font-size: 0.92rem; color: var(--texto); outline: none; transition: border-color 0.2s;
}
.checkout-form input:focus { border-color: var(--vino); }
.checkout-form .btn { margin-top: 0.4rem; }
.checkout-success { text-align: center; }
.checkout-success-icon { display: block; margin: 0 auto 0.8rem; color: var(--dorado); }
.checkout-success-icon svg { width: 46px; height: 46px; }
.checkout-success p { color: var(--texto-soft); font-size: 0.92rem; margin-bottom: 1.4rem; line-height: 1.5; }
.checkout-form select {
  border: 1.5px solid var(--rosa-suave); border-radius: var(--radio-sm); padding: 0.75rem 1rem;
  font-family: 'Poppins', sans-serif; font-size: 0.92rem; color: var(--texto); outline: none; background: #fff;
}
.pass-wrap { position: relative; }
.pass-wrap input { width: 100%; padding-right: 2.6rem !important; }
.pass-toggle {
  position: absolute; top: 50%; right: 0.9rem; transform: translateY(-50%);
  border: none; background: none; cursor: pointer; color: var(--texto-soft); padding: 0; line-height: 0;
}
.pass-toggle svg { width: 19px; height: 19px; }
.pass-toggle:hover { color: var(--vino); }

/* ===== Cuenta de cliente (login / registro / mi cuenta) ===== */
.account-btn { display: flex; align-items: center; gap: 0.4rem; border: none; cursor: pointer; background: none; color: var(--texto); font-family: 'Poppins', sans-serif; font-size: 0.85rem; padding: 0.4rem 0.3rem; }
.account-btn .ic svg { width: 20px; height: 20px; color: var(--vino); }
.account-btn:hover { color: var(--vino); }
.account-modal { width: min(520px, 100%); }
.account-switch { text-align: center; font-size: 0.85rem; color: var(--texto-soft); margin-top: 1rem; }
.account-bienvenida { font-size: 0.85rem; color: var(--texto-soft); line-height: 1.5; margin-bottom: 1.2rem; }
.account-switch a { color: var(--vino); font-weight: 600; text-decoration: underline; }
.account-error { color: #b23b3b; font-size: 0.85rem; margin: 0; }
.pref-label { font-size: 0.78rem; font-weight: 600; color: var(--vino); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0.3rem; }
.pref-grid { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.pref-check { display: flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--texto); font-weight: 400; }

.account-panel .checkout-title { display: flex; align-items: center; gap: 0.5rem; }
.account-panel .checkout-title .ic svg { width: 20px; height: 20px; color: var(--dorado); }
.account-puntos { display: flex; align-items: center; gap: 0.8rem; background: var(--vino); color: #fff; border-radius: var(--radio-sm); padding: 0.9rem 1.1rem; margin-bottom: 1.3rem; }
.account-puntos .ic svg { width: 26px; height: 26px; color: var(--dorado); }
.account-puntos strong { font-size: 1.3rem; font-family: 'Fraunces', serif; }
.account-subtitle { font-size: 0.95rem; color: var(--vino); margin: 1.2rem 0 0.5rem; }
.account-pref-resumen { font-size: 0.85rem; color: var(--texto-soft); line-height: 1.5; }
.account-vacio { font-size: 0.85rem; color: var(--texto-soft); }
.account-recompensas, .account-pedidos { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 0.5rem; }
.recompensa-card, .pedido-cliente-card {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  border: 1px solid var(--rosa-suave); border-radius: var(--radio-sm); padding: 0.7rem 0.9rem; font-size: 0.85rem;
}
.recompensa-card strong { color: var(--vino); }
.recompensa-card p { color: var(--texto-soft); font-size: 0.8rem; margin: 0.1rem 0 0; }
.pedido-cliente-card { color: var(--texto); text-transform: capitalize; }
.account-panel #btnLogoutCliente { margin-top: 1.5rem; }

/* ===== Promo banner ===== */
.promo-banner {
  position: relative; overflow: hidden;
  margin: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 5vw, 4rem); padding: clamp(2.4rem, 5vw, 3.8rem);
  border-radius: var(--radio);
  background: radial-gradient(circle at 88% 15%, rgba(184,146,95,0.35), transparent 55%), var(--vino);
  text-align: center;
}
.promo-deco { position: absolute; top: -20px; right: -20px; color: var(--dorado); opacity: 0.18; }
.promo-deco svg { width: clamp(140px, 20vw, 220px); height: auto; }
.promo-content { position: relative; z-index: 1; }
.promo-eyebrow { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--dorado); font-weight: 600; margin-bottom: 0.5rem; }
.promo-banner h3 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); color: #fff; margin-bottom: 0.6rem; }
.promo-banner p { color: rgba(255,255,255,0.82); max-width: 540px; margin: 0 auto 1.4rem; }
.btn-invert { background: #fff; color: var(--vino); box-shadow: var(--sombra-soft); }
.btn-invert:hover { transform: translateY(-3px); box-shadow: var(--sombra); background: var(--dorado-claro); }

/* ===== Catálogo ===== */
.catalogo { padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 5vw, 4rem) 4rem; }
.filtros { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.filtro-btn { cursor: pointer; border: 1.5px solid var(--rosa); background: #fff; color: var(--vino); font-family: 'Poppins', sans-serif; font-size: 0.85rem; font-weight: 500; padding: 0.45rem 1.1rem; border-radius: 50px; transition: all 0.2s; }
.filtro-btn:hover { background: var(--rosa-suave); }
.filtro-btn.active { background: var(--rosa-fuerte); color: #fff; border-color: var(--rosa-fuerte); }

.subfiltros { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; margin: -1.2rem 0 1.6rem; }
.subfiltro-btn { cursor: pointer; border: 1.5px solid var(--texto-soft); background: transparent; color: var(--vino); font-family: 'Poppins', sans-serif; font-size: 0.78rem; font-weight: 500; padding: 0.32rem 0.85rem; border-radius: 50px; transition: all 0.2s; }
.subfiltro-btn:hover { background: var(--rosa-suave); }
.subfiltro-btn.active { background: var(--vino); color: #fff; border-color: var(--vino); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.4rem; max-width: 1200px; margin: 0 auto; }
.sin-resultados { text-align: center; color: var(--texto-soft); margin-top: 2rem; }

/* ===== Cómo funciona ===== */
.como-funciona { padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem); background: linear-gradient(180deg, var(--rosa-suave), var(--crema)); }
.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.4rem; max-width: 1100px; margin: 0 auto; }
.paso { position: relative; background: #fff; border-radius: var(--radio); padding: 2.1rem 1.3rem 1.5rem; text-align: center; box-shadow: var(--sombra-soft); }
.paso-num { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(120deg, var(--rosa-fuerte), var(--vino)); color: #fff; font-weight: 600; display: grid; place-items: center; font-size: 0.95rem; }
.paso-icon { display: block; margin: 0 auto 0.55rem; color: var(--rosa-fuerte); }
.paso-icon svg { width: 38px; height: 38px; }
.paso h3 { color: var(--vino); font-size: 1.05rem; margin-bottom: 0.35rem; }
.paso p { font-size: 0.88rem; color: var(--texto-soft); }

/* ===== Newsletter ===== */
.newsletter { text-align: center; padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 5vw, 4rem); }
.newsletter h3 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--vino); margin-bottom: 0.4rem; }
.newsletter > p { color: var(--texto-soft); margin-bottom: 1.5rem; }
.newsletter-form { display: flex; gap: 0.6rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input { flex: 1; min-width: 220px; border: 1.5px solid var(--rosa); border-radius: 50px; padding: 0.8rem 1.3rem; font-family: 'Poppins', sans-serif; font-size: 0.9rem; outline: none; background: #fff; }
.newsletter-form input:focus { border-color: var(--rosa-fuerte); }
.newsletter small { display: block; margin-top: 0.9rem; color: var(--rosa-fuerte); min-height: 1.2em; }

/* ===== Footer ===== */
.footer { background: #fff; padding: 3rem clamp(1rem, 5vw, 4rem) 1.5rem; border-top: 1px solid var(--rosa-suave); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2rem; max-width: 1150px; margin: 0 auto 2rem; }
.logo-footer { margin-bottom: 0.8rem; }
.footer-desc { font-size: 0.88rem; color: var(--texto-soft); max-width: 280px; margin-bottom: 1rem; }
.socials { display: flex; gap: 0.6rem; }
/* mayor especificidad para ganarle a `.footer-grid a` y centrar el glifo */
.footer-grid .socials a { width: 40px; height: 40px; border-radius: 50%; background: var(--rosa-suave); display: grid; place-items: center; gap: 0; color: var(--vino); transition: all 0.2s; }
.footer-grid .socials .ic svg { width: 21px; height: 21px; }
.socials a:hover { transform: translateY(-2px); }
.socials .soc-ig:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); color: #fff; }
.socials .soc-wa:hover { background: #25d366; color: #fff; }
.socials .soc-mail:hover { background: var(--vino); color: #fff; }
.footer h4 { color: var(--vino); margin-bottom: 0.9rem; font-size: 1rem; }
.footer-grid a { display: flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; color: var(--texto-soft); padding: 0.28rem 0; transition: color 0.2s; }
.footer-grid a:hover { color: var(--rosa-fuerte); }
.footer-small { font-size: 0.85rem; color: var(--texto-soft); margin-bottom: 0.6rem; }
.footer-grid .ic svg { width: 17px; height: 17px; color: var(--rosa-fuerte); }
.footer-pay { max-width: 1150px; margin: 0 auto; padding: 1.4rem 0; border-top: 1px solid var(--rosa-suave); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--texto-soft); }
.pay-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pay-badge { background: var(--rosa-suave); color: var(--vino); font-size: 0.75rem; font-weight: 500; padding: 0.35rem 0.8rem; border-radius: 50px; white-space: nowrap; }
.pay-note { font-size: 0.8rem; color: var(--texto-soft); }
.footer-copy { text-align: center; font-size: 0.8rem; color: var(--texto-soft); border-top: 1px solid var(--rosa-suave); padding-top: 1.2rem; max-width: 1150px; margin: 0 auto; }

/* ===== Carrito ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(28,26,23,0.35); opacity: 0; visibility: hidden; transition: 0.3s; z-index: 90; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-panel { position: fixed; top: 0; right: 0; height: 100%; width: min(390px, 90vw); background: var(--marfil); z-index: 100; box-shadow: -10px 0 40px rgba(28,26,23,.15); transform: translateX(100%); transition: transform 0.3s ease; display: flex; flex-direction: column; }
.cart-panel.open { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--rosa-suave); }
.cart-header h3 { color: var(--vino); font-size: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.cart-close { border: none; background: none; font-size: 1.2rem; cursor: pointer; color: var(--texto-soft); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-empty { text-align: center; color: var(--texto-soft); margin-top: 3rem; }
.cart-empty-icon { display: block; margin: 0 auto 0.8rem; color: var(--rosa); }
.cart-empty-icon svg { width: 48px; height: 48px; }
.cart-item { display: flex; gap: 0.8rem; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--rosa-suave); }
.cart-item-img { width: 54px; height: 54px; border-radius: var(--radio-sm); display: grid; place-items: center; flex-shrink: 0; }
.cart-item-icon { color: var(--vino); }
.cart-item-icon svg { width: 40px; height: 40px; }
.cart-item-icon-photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radio-sm); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.88rem; font-weight: 500; color: var(--vino); }
.cart-item-price { font-size: 0.82rem; color: var(--texto-soft); }
.qty { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.3rem; }
.qty button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--rosa); background: #fff; color: var(--vino); cursor: pointer; font-size: 0.9rem; line-height: 1; }
.qty span { font-size: 0.9rem; min-width: 20px; text-align: center; }
.cart-item-remove { border: none; background: none; cursor: pointer; color: var(--texto-soft); font-size: 1rem; }
.cart-footer { padding: 1.3rem 1.5rem; border-top: 1px solid var(--rosa-suave); background: var(--rosa-suave); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.cart-total span { color: var(--texto); }
.cart-total strong { font-size: 1.4rem; color: var(--vino); font-family: 'Fraunces', serif; }
.cart-note { font-size: 0.8rem; color: var(--texto-soft); margin-bottom: 1rem; }

/* ===== WhatsApp flotante ===== */
.wa-float { position: fixed; bottom: 22px; right: 22px; z-index: 80; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,0.45); transition: transform 0.2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .ic svg { width: 30px; height: 30px; }

/* ===== Toast ===== */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(140%); background: var(--vino); color: #fff; padding: 0.8rem 1.5rem; border-radius: 50px; font-size: 0.9rem; box-shadow: var(--sombra); z-index: 200; transition: transform 0.35s ease; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .header-link span:last-child { display: none; }
  .account-label { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; text-align: center; }
  .footer-brand .logo-footer { justify-content: center; }
  .footer-brand .footer-desc { margin-left: auto; margin-right: auto; }
  .footer-brand .socials { justify-content: center; }
}
@media (max-width: 820px) {
  .search { display: none; }
  .search-mobile { display: flex; }
  .menu-toggle { display: block; }
  .mega-nav { display: none; flex-direction: column; align-items: flex-start; gap: 0.2rem; padding: 0.6rem clamp(1rem,4vw,3rem); }
  .mega-nav.open { display: flex; }
  .mega-nav a { padding: 0.5rem 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .slide { grid-template-columns: 1fr; text-align: center; min-height: auto; }
  .slide-art { order: -1; min-height: 180px; }
  .slide-media { min-height: 460px; align-content: center; }
  .slide-media .slide-scrim { background: linear-gradient(180deg, rgba(20,19,17,0.35) 0%, rgba(20,19,17,0.62) 55%, rgba(20,19,17,0.78) 100%); }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .carousel-arrow { display: none; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-desc { margin: 0 auto 1rem; }
  .socials { justify-content: center; }
  .footer-grid a { justify-content: center; }
  .benefits { grid-template-columns: 1fr 1fr; }
}
