/* ============================================================
   CUXPI — Estilos (paleta propia: petróleo, coral y mostaza)
   Estructura tipo marketplace multicategoría.
   ============================================================ */

:root {
  --superficie:        #d8d2c4;
  --superficie-suave:  #f2ede2;
  --acento-suave:        #fce3d6;
  --neutro:     #cdd6d4;
  --neutro-frio:       #d2d2ce;
  --crema:       #fdf8f3;
  --marfil:      #ffffff;

  --marca-oscuro: #0f5c56;
  --tinta:        #16211f;
  --acento:      #ff5a4e;
  --acento-claro:#ffc94d;
  --gris-claro:  #eef2f1;

  --texto:       #1f1d1a;
  --texto-soft:  #6b655c;
  --blanco:      #ffffff;
  --sombra:      0 14px 32px rgba(15, 92, 86, 0.16);
  --sombra-soft: 0 6px 18px rgba(15, 92, 86, 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(--tinta);
}
.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(--superficie), var(--neutro));
}

/* ===== Í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(--acento), #e8483d); 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(--acento-claro);
  color: var(--tinta); 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(--tinta); }
.logo-moon svg { width: 26px; height: 26px; }
.logo-text { font-size: 1.4rem; font-weight: 700; letter-spacing: 1px; color: var(--tinta); 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; min-width: 0; 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(--tinta); 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); border: none; background: none; cursor: pointer; font-family: 'Poppins', sans-serif; padding: 0; }
.header-link .ic svg { width: 20px; height: 20px; color: var(--tinta); }
.header-link:hover { color: var(--tinta); }

.cart-btn { position: relative; border: none; cursor: pointer; background: var(--gris-claro); color: var(--tinta); 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(--superficie); transform: translateY(-2px); }
.cart-count { position: absolute; top: -6px; right: -6px; background: var(--tinta); 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(--tinta); }

/* ===== Mega-nav ===== */
.mega-nav {
  display: flex; align-items: center; justify-content: center; gap: 1.6rem; flex-wrap: wrap;
  background: var(--tinta); 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(--acento); }
.mega-nav a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--acento); transition: width 0.25s; }
.mega-nav a:hover::after { width: 100%; }
.mega-nav .nav-hot { color: var(--acento); font-weight: 600; }
.mega-nav .nav-sale { color: var(--acento); 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(--tinta); 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(--tinta); margin-bottom: 1rem; }
.slide h1 span { background: linear-gradient(120deg, var(--marca-oscuro), var(--acento)); -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(--tinta); 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(--superficie); opacity: 0.5; top: 6%; left: 18%; animation: float 7s ease-in-out infinite; }
.blob-2 { width: 190px; height: 190px; background: var(--neutro); 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(--tinta); 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(--tinta); 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(--tinta); }
.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(--acento)); -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(--superficie-suave); }
.benefit { display: flex; align-items: center; gap: 0.7rem; justify-content: center; }
.benefit .ic svg { width: 30px; height: 30px; color: var(--marca-oscuro); }
.benefit strong { display: block; font-size: 0.9rem; color: var(--tinta); }
.benefit span { font-size: 0.78rem; color: var(--texto-soft); }

/* ===== Ofertas destacadas (banners a landing pages) ===== */
.landing-promos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1rem, 5vw, 4rem) 0;
}
.landing-promo-card {
  position: relative; display: block; border-radius: var(--radio); overflow: hidden;
  min-height: 220px; text-decoration: none; box-shadow: var(--sombra-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}
.landing-promo-card:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.landing-promo-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.landing-promo-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
}
.landing-promo-info {
  position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.1rem 1.3rem; gap: 0.25rem;
}
.landing-promo-tag {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
  color: var(--acento); margin-bottom: 0.2rem;
}
.landing-promo-info h3 { color: #fff; font-size: clamp(1.1rem, 2.2vw, 1.4rem); margin: 0; }
.landing-promo-cta { color: #fff; font-size: 0.85rem; opacity: 0.9; margin-top: 0.3rem; }
@media (max-width: 640px) {
  .landing-promos { grid-template-columns: 1fr; }
  .landing-promo-card { min-height: 170px; }
}

/* ===== Categorías (tarjetas grandes tipo landing) ===== */
.categorias { padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1rem, 5vw, 4rem) 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; margin-top: 1rem; }
.cat-tile {
  position: relative; border: none; cursor: pointer; border-radius: var(--radio); overflow: hidden;
  min-height: 150px; padding: 1.1rem; display: flex; flex-direction: column; justify-content: flex-end;
  align-items: flex-start; gap: 0.3rem; text-align: left; box-shadow: var(--sombra-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.cat-tile-icon { position: absolute; top: 0.9rem; right: 0.9rem; opacity: 0.9; }
.cat-tile-icon svg { width: 34px; height: 34px; }
.cat-tile-name { font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 700; color: var(--tinta); line-height: 1.15; }
.cat-tile-cta { font-size: 0.78rem; font-weight: 600; color: var(--marca-oscuro); }

/* ===== 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(--tinta); }
@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(--marca-oscuro); white-space: nowrap; }
.ver-todo:hover { color: var(--tinta); }
.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(--superficie) transparent;
}
.fila-track::-webkit-scrollbar { height: 8px; }
.fila-track::-webkit-scrollbar-thumb { background: var(--superficie); border-radius: 50px; }
.fila-track .product-card { flex: 0 0 220px; scroll-snap-align: start; }
.ofertas { background: linear-gradient(180deg, #fff, var(--superficie-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 { aspect-ratio: 1 / 1; display: grid; place-items: center; position: relative; width: calc(100% - 1.6rem); margin: 0.8rem 0.8rem 0; border: none; padding: 0; font: inherit; cursor: pointer; border-radius: calc(var(--radio) - 8px); overflow: hidden; }
.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(--tinta); 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(--tinta); 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: #d13c2e; color: #fff; }
.product-tag.tag-new { background: var(--acento-claro); color: var(--tinta); }
.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(--marca-oscuro); font-weight: 600; }
.product-name { font-size: 1rem; font-weight: 600; color: var(--tinta); 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(--superficie-suave); color: var(--tinta); 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(--marca-oscuro); 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(620px, 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(--tinta); 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-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(--tinta); 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; }

/* ===== Ficha de producto = página propia dentro del sitio (el header se mantiene fijo arriba, no se tapa) ===== */
#productOverlay {
  position: static; inset: auto; z-index: auto; padding: 0;
  background: var(--crema); opacity: 1; visibility: visible;
  display: none;
}
#productOverlay.open { display: block; }
#productModal {
  width: 100%; max-width: 100%; min-height: 60vh; max-height: none; overflow: visible;
  border-radius: 0; box-shadow: none; transform: none; opacity: 1; transition: none;
}
#productModal .product-modal-close { display: none; }

/* Mientras se ve una ficha de producto, se ocultan las secciones de la home
   (el header y el footer se mantienen, como en una página real). */
body.pdp-open .hero-carousel,
body.pdp-open .benefits,
body.pdp-open .marcas,
body.pdp-open .fila-productos,
body.pdp-open .promo-banner,
body.pdp-open .landing-promos,
body.pdp-open .catalogo,
body.pdp-open .como-funciona,
body.pdp-open .newsletter {
  display: none;
}

.pdp-page { max-width: 1180px; margin: 0 auto; padding: 2rem clamp(1.2rem, 4vw, 3rem) 3.5rem; }
.pdp-breadcrumb { font-size: 0.8rem; color: var(--texto-soft); margin-bottom: 1.5rem; display: flex; gap: 0.45rem; flex-wrap: wrap; }
.pdp-breadcrumb a { color: var(--texto-soft); text-decoration: underline; cursor: pointer; }
.pdp-breadcrumb a:hover { color: var(--tinta); }
.pdp-breadcrumb-current { color: var(--tinta); }

.pdp-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.pdp-gallery { display: flex; flex-direction: column; gap: 0.8rem; }
@media (min-width: 801px) { .pdp-gallery { position: sticky; top: 6.5rem; } }
.pdp-media { position: relative; border-radius: var(--radio); min-height: 440px; display: grid; place-items: center; overflow: hidden; }
.pdp-media-icon { color: var(--tinta); filter: drop-shadow(0 6px 10px rgba(28,26,23,.15)); }
.pdp-media-icon svg { width: 170px; height: 170px; }
.pdp-media-icon-photo, .pdp-media-photo { width: 100%; height: 100%; object-fit: cover; }
.pdp-media-video { width: 100%; height: 100%; min-height: 440px; aspect-ratio: 9 / 16; border: none; background: #000; }
#pdpMainMediaInner { display: grid; place-items: center; width: 100%; height: 100%; }
.pdp-thumbs { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.2rem; }
.pdp-thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; border: 2px solid transparent; padding: 0; overflow: hidden; cursor: pointer; background: var(--crema); display: grid; place-items: center; transition: border-color 0.2s; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.active { border-color: var(--tinta); }
.pdp-thumb-play { color: var(--tinta); font-size: 1.2rem; }
.pdp-info { padding-top: 0.2rem; }

@media (max-width: 800px) {
  .pdp-page { padding-top: 1.5rem; }
  .pdp-columns { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .pdp-media { min-height: 320px; }
  .pdp-media-video { min-height: 320px; }
}

/* ===== Ficha de producto ampliada (estilo PDP) ===== */
.pdp-rating-empty { display: block; font-size: 0.78rem; color: var(--texto-soft); letter-spacing: 1px; margin-bottom: 0.6rem; text-decoration: none; }
.pdp-rating-empty:hover { color: var(--tinta); }

.pdp-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.2rem 0 1.2rem; }
.pdp-chip { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--crema); color: var(--texto); font-size: 0.76rem; font-weight: 500; padding: 0.35rem 0.7rem; border-radius: 50px; }
.pdp-chip svg { width: 13px; height: 13px; color: var(--acento); flex-shrink: 0; }

.pdp-qty-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; }
.pdp-qty { margin: 0; border: 1.5px solid var(--superficie-suave); border-radius: 50px; padding: 0.3rem 0.6rem; gap: 0.7rem; flex-shrink: 0; }
.pdp-qty button { width: 26px; height: 26px; }
.pdp-qty span { min-width: 22px; font-weight: 500; }
.pdp-add { flex: 1; padding: 0.75rem 1rem; }
.pdp-buy {
  width: 100%; margin-bottom: 1.1rem; padding: 0.75rem 1rem; text-align: center;
  background: transparent; color: var(--tinta); border: 1.5px solid var(--tinta);
}
.pdp-buy:hover { background: var(--tinta); color: #fff; transform: translateY(-2px); }

.pdp-accordion { border-top: 1px solid var(--superficie-suave); margin-top: 0.3rem; }
.acc-item { border-bottom: 1px solid var(--superficie-suave); }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; cursor: pointer; padding: 0.9rem 0.1rem;
  font-family: 'Poppins', sans-serif; font-size: 0.9rem; font-weight: 500; color: var(--texto);
}
.acc-arrow { transition: transform 0.2s; color: var(--texto-soft); }
.acc-item.open .acc-arrow { transform: rotate(180deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.25s ease; }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body-inner { overflow: hidden; }
.acc-body-inner p { font-size: 0.86rem; color: var(--texto-soft); line-height: 1.6; padding-bottom: 0.9rem; }

.pdp-related { max-width: 1180px; margin: 0 auto; padding: 2.2rem clamp(1.2rem, 4vw, 3rem) 1rem; border-top: 1px solid var(--superficie-suave); }
.pdp-related h4 { font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--tinta); margin-bottom: 0; }
.pdp-related-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.pdp-related-vertodo { font-size: 0.85rem; font-weight: 600; color: var(--acento); white-space: nowrap; }
.pdp-related-track, .pdp-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 700px) { .pdp-related-track, .pdp-related-grid { grid-template-columns: repeat(2, 1fr); } }
.pdp-mini-card {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 0.15rem;
  background: none; border: none; cursor: pointer; padding: 0; font-family: 'Poppins', sans-serif;
}
.pdp-mini-img { display: block; width: 100%; aspect-ratio: 1/1; border-radius: var(--radio-sm); overflow: hidden; display: grid; place-items: center; margin-bottom: 0.4rem; }
.pdp-mini-icon { color: var(--tinta); }
.pdp-mini-icon svg { width: 46px; height: 46px; }
.pdp-mini-icon-photo { width: 100%; height: 100%; object-fit: cover; }
.pdp-mini-brand { font-size: 0.7rem; color: var(--texto-soft); text-transform: uppercase; letter-spacing: 0.5px; }
.pdp-mini-name { font-size: 0.82rem; color: var(--tinta); font-weight: 500; line-height: 1.3; }
.pdp-mini-price { font-size: 0.82rem; color: var(--texto); font-weight: 600; }

/* ===== 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(--tinta); 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(--tinta); }
.checkout-form { display: flex; flex-direction: column; gap: 0.7rem; }
.checkout-form input {
  border: 1.5px solid var(--superficie-suave); border-radius: var(--radio-sm); padding: 0.75rem 1rem;
  font-family: 'Poppins', sans-serif; font-size: 16px; color: var(--texto); outline: none; transition: border-color 0.2s;
}
.checkout-form input:focus { border-color: var(--tinta); }
.checkout-form .btn { margin-top: 0.4rem; }
.checkout-success { text-align: center; }
.checkout-success-icon { display: block; margin: 0 auto 0.8rem; color: var(--acento); }
.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(--superficie-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(--tinta); }

/* ===== 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(--tinta); }
.account-btn:hover { color: var(--tinta); }
.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(--tinta); 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(--tinta); 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(--acento); }
.account-puntos { display: flex; align-items: center; gap: 0.8rem; background: var(--tinta); 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(--acento); }
.account-puntos strong { font-size: 1.3rem; font-family: 'Fraunces', serif; }
.account-subtitle { font-size: 0.95rem; color: var(--tinta); 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(--superficie-suave); border-radius: var(--radio-sm); padding: 0.7rem 0.9rem; font-size: 0.85rem;
}
.recompensa-card strong { color: var(--tinta); }
.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(--tinta);
  text-align: center;
}
.promo-deco { position: absolute; top: -20px; right: -20px; color: var(--acento); 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(--acento); 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(--tinta); box-shadow: var(--sombra-soft); }
.btn-invert:hover { transform: translateY(-3px); box-shadow: var(--sombra); background: var(--acento-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(--superficie); background: #fff; color: var(--tinta); 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(--superficie-suave); }
.filtro-btn.active { background: var(--marca-oscuro); color: #fff; border-color: var(--marca-oscuro); }

.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(--tinta); 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(--superficie-suave); }
.subfiltro-btn.active { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem; padding: 0.4rem 0 1.2rem;
}
.product-grid .product-card { width: 100%; }
.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(--superficie-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(--marca-oscuro), var(--tinta)); 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(--marca-oscuro); }
.paso-icon svg { width: 38px; height: 38px; }
.paso h3 { color: var(--tinta); font-size: 1.05rem; margin-bottom: 0.35rem; }
.paso p { font-size: 0.88rem; color: var(--texto-soft); }

/* ===== Páginas de info (envíos, FAQ, sobre CUXPI) ===== */
.info-paginas { padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 5vw, 4rem); background: var(--crema); scroll-margin-top: 90px; }
.info-paginas .section-title { max-width: 720px; margin: 0 auto 1.2rem; }
.info-bloque { max-width: 720px; margin: 0 auto; text-align: left; }
.info-bloque h3 { color: var(--tinta); font-size: 1.05rem; margin: 1.3rem 0 0.35rem; }
.info-bloque h3:first-child { margin-top: 0; }
.info-bloque p { color: var(--texto-soft); font-size: 0.92rem; line-height: 1.6; margin-bottom: 0.7rem; }
.info-bloque a { color: var(--marca-oscuro); text-decoration: underline; }

/* ===== 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(--tinta); 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(--superficie); 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(--marca-oscuro); }
.newsletter small { display: block; margin-top: 0.9rem; color: var(--marca-oscuro); min-height: 1.2em; }

/* ===== Footer ===== */
.footer { background: #fff; padding: 3rem clamp(1rem, 5vw, 4rem) 1.5rem; border-top: 1px solid var(--superficie-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(--superficie-suave); display: grid; place-items: center; gap: 0; color: var(--tinta); 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(--tinta); color: #fff; }
.footer h4 { color: var(--tinta); 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(--marca-oscuro); }
.footer-small { font-size: 0.85rem; color: var(--texto-soft); margin-bottom: 0.6rem; }
.footer-grid .ic svg { width: 17px; height: 17px; color: var(--marca-oscuro); }
.footer-pay { max-width: 1150px; margin: 0 auto; padding: 1.4rem 0; border-top: 1px solid var(--superficie-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(--superficie-suave); color: var(--tinta); 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(--superficie-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(--superficie-suave); }
.cart-header h3 { color: var(--tinta); 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(--superficie); }
.cart-empty-icon svg { width: 48px; height: 48px; }
.cart-empty-cta { display: block; margin: 1.2rem auto 0; padding: 0.7rem 1.6rem; border: none; border-radius: 999px; background: var(--marca-oscuro); color: #fff; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.cart-item { display: flex; gap: 0.8rem; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--superficie-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(--tinta); }
.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(--tinta); }
.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(--superficie); background: #fff; color: var(--tinta); 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(--superficie-suave); background: var(--superficie-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(--tinta); font-family: 'Fraunces', serif; }
.cart-note { font-size: 0.8rem; color: var(--texto-soft); margin-bottom: 1rem; }

.cart-shipping-progress { padding: 0 1.5rem 1rem; }
.shipping-bar { height: 7px; border-radius: 50px; background: var(--superficie-suave); overflow: hidden; }
.shipping-bar-fill { height: 100%; border-radius: 50px; background: linear-gradient(90deg, var(--acento-claro), var(--acento)); transition: width 0.3s; }
.shipping-msg { font-size: 0.8rem; color: var(--texto-soft); margin-top: 0.5rem; }
.shipping-msg strong { color: var(--tinta); }
.shipping-msg-ok { color: var(--marca-oscuro); font-weight: 600; display: flex; align-items: center; gap: 0.35rem; }
.shipping-msg-ok svg { width: 15px; height: 15px; }

/* ===== 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; }

/* ===== Chat de compras IA (oculto hasta configurar ANTHROPIC_API_KEY en Supabase) ===== */
#chatToggle, #chatHeaderBtn, #bottomNavChat { display: none !important; }
.chat-float {
  position: fixed; bottom: 90px; right: 22px; z-index: 80; width: 56px; height: 56px; border-radius: 50%;
  background: var(--tinta); color: #fff; border: none; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(14,13,12,0.35); transition: transform 0.2s;
}
.chat-float:hover { transform: scale(1.08); }
.chat-float .ic svg { width: 26px; height: 26px; }

.chat-panel {
  position: fixed; bottom: 90px; right: 22px; z-index: 90; width: min(340px, calc(100vw - 32px));
  height: min(480px, calc(100vh - 140px)); background: #fff; border-radius: var(--radio);
  box-shadow: var(--sombra); display: flex; flex-direction: column; overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-panel-header {
  background: var(--tinta); color: #fff; padding: 1rem 1.1rem; display: flex; align-items: center; justify-content: space-between;
}
.chat-panel-header strong { display: block; font-family: 'Fraunces', serif; font-size: 1.05rem; }
.chat-panel-header span { font-size: 0.75rem; opacity: 0.75; }
.chat-close { background: none; border: none; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.chat-msg { max-width: 85%; padding: 0.6rem 0.9rem; border-radius: 14px; font-size: 0.88rem; line-height: 1.45; }
.chat-msg-bot { align-self: flex-start; background: var(--crema); color: var(--texto); border-bottom-left-radius: 4px; }
.chat-msg-user { align-self: flex-end; background: var(--tinta); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg-typing { align-self: flex-start; background: var(--crema); color: var(--texto-soft); font-style: italic; }
.chat-form { display: flex; gap: 0.5rem; padding: 0.8rem; border-top: 1px solid var(--superficie-suave); }
.chat-form input { flex: 1; min-width: 0; border: 1.5px solid var(--superficie-suave); border-radius: 50px; padding: 0.6rem 1rem; font-family: 'Poppins', sans-serif; font-size: 0.88rem; outline: none; }
.chat-form input:focus { border-color: var(--tinta); }
.chat-form button { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: none; background: var(--tinta); color: #fff; cursor: pointer; font-size: 1rem; }
@media (max-width: 480px) {
  .chat-panel, .chat-float { right: 16px; }
}

/* ===== Toast ===== */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(140%); background: var(--tinta); 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 { max-width: none; padding: 0.5rem 0.9rem; }
  .search input { min-width: 0; }
  .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 1fr; text-align: left; gap: 1.2rem; }
  .footer-brand { text-align: center; }
  .footer-desc { margin: 0 auto 1rem; }
  .socials { justify-content: center; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .cat-tile { min-height: 108px; padding: 0.75rem; }
  .cat-tile-icon svg { width: 24px; height: 24px; }
  .cat-tile-name { font-size: 0.92rem; }
  .cat-tile-cta { font-size: 0.7rem; }
  .pasos { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .paso { padding: 1.6rem 0.9rem 1.1rem; }
  .paso p { font-size: 0.82rem; }
  .como-funciona { padding: 2rem clamp(1rem, 5vw, 4rem); }
}
@media (max-width: 480px) {
  .header-main { gap: 0.6rem; }
  .logo-text { font-size: 1.15rem; }
  .header-actions .header-link { display: none; }
  .search { padding: 0.45rem 0.8rem; }
}

/* ===== Barra inferior (móvil, estilo Sephora) ===== */
.bottom-nav { display: none; }
@media (max-width: 820px) {
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 85;
    background: #fff; border-top: 1px solid var(--superficie-suave); box-shadow: 0 -6px 20px rgba(20,19,17,0.06);
    padding: 0.4rem 0.2rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
  }
  .bottom-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
    border: none; background: none; cursor: pointer; color: var(--texto-soft);
    font-family: 'Poppins', sans-serif; font-size: 0.66rem; font-weight: 500; padding: 0.3rem 0.2rem;
  }
  .bottom-nav-item .ic svg { width: 21px; height: 21px; }
  .bottom-nav-item:hover, .bottom-nav-item:focus-visible { color: var(--tinta); }
  body { padding-bottom: 62px; }
  .wa-float { bottom: 78px; }
  .chat-float { display: none; }
  .chat-panel { bottom: 78px; }
}
