/* ══════════════════════════════════════════════════════════════
   CREACIONES DANNA · styles.css — REFINADO v3 (CORREGIDO)
   Senior UX/UI · Mobile-first · Production-ready
   ══════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────
   1. RESET + VARIABLES
   ────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {

  /* ===== BRAND COLORS ===== */

  --morado:         #B39ACF;
  --morado-light:   #E9DDF7;
  --morado-soft:    #D4BDEB;
  --morado-dark:    #7E5FA8;
  --morado-deep:    #5D3D84;

  --azul:           #89D4CF;
  --azul-light:     #D8F4F2;
  --azul-soft:      #B7ECE8;
  --azul-dark:      #4FAEAA;
  --azul-deep:      #2E8B87;

  /* Alias aqua */
  --aqua:           var(--azul);
  --aqua-light:     var(--azul-light);
  --aqua-dark:      var(--azul-dark);
  --aqua-deep:      var(--azul-deep);

  /* ===== BASE ===== */

  --crema:          #F5F3F6;
  --crema-dark:     #EFEAF4;

  --fondo:          #F5F3F6;
  --fondo-alt:      #EFEAF4;

  --blanco:         #FFFFFF;

  /* ===== TEXT ===== */

  --texto:          #1E1A24;
  --texto-muted:    #6F657D;
  --texto-light:    #9389A3;

  /* ===== BORDERS ===== */

  --border:         rgba(179, 154, 207, 0.20);
  --border-strong:  rgba(126, 95, 168, 0.35);

  /* ===== SHADOWS ===== */

  --sombra:         rgba(93, 61, 132, 0.08);
  --sombra-sm:      rgba(93, 61, 132, 0.08);
  --sombra-md:      rgba(93, 61, 132, 0.15);
  --sombra-lg:      rgba(93, 61, 132, 0.25);

  /* ===== EXTRA ===== */

  --rosa-pastel:    #F3C7DD;
  --durazno:        #FFD9C7;
  --menta:          #D9F4E8;

  --wsp:            #25D366;

  /* ===== RADIOS ===== */

  --radio-sm:       10px;
  --radio:          14px;
  --radio-lg:       22px;
  --radio-xl:       30px;

  /* ===== Z INDEX ===== */

  --z-base:               1;
  --z-header:             100;
  --z-mobile-nav:         1100;
  --z-mobile-nav-overlay: 1050;
  --z-overlay:            900;
  --z-drawer:             950;
  --z-modal:              1000;
  --z-toast:              1100;
  --z-back-btn:           200;

  /* ===== MOTION ===== */

  --ease-out:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);

}
/* ──────────────────────────────────────────────────────────────
   2. BASE / BODY
   ────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  background:
linear-gradient(
  180deg,
  #ceb8e4 35%,
  #e3d2f5 65%
);
  color: var(--texto);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 12% 10%, rgba(185, 165, 245, 0.16) 0%, transparent 52%),
    radial-gradient(ellipse at 88% 82%, rgba(130, 175, 240, 0.13) 0%, transparent 52%),
    radial-gradient(ellipse at 50% 50%, rgba(200, 180, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ──────────────────────────────────────────────────────────────
   3. HEADER + NAV
   ────────────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(225, 217, 245, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px var(--sombra);
}

/* Logo con enlace (clase original mantenida) */
.logo-container {
  position: absolute;
  top: 2px;
  left: 80px;
  z-index: calc(var(--z-header) + 10);
  width: 220px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 18px;
  text-decoration: none;
}

.logo-img {
  width: 120%;
  height: auto;
  object-fit: contain;
}

.nav-inner {
  max-width: 1280px;
  margin: auto;
  padding: 0 2rem 0 280px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

nav {
  display: flex;
  gap: 0.15rem;
  align-items: center;
}

nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--texto-muted);
  text-decoration: none;
  padding: 7px 15px;
  border-radius: 22px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

nav a:hover {
  background: var(--morado-light);
  color: var(--morado-deep);
}

.nav-cta {
  background: var(--morado-light) !important;
  color: var(--morado-deep) !important;
  border: 1px solid rgba(140, 100, 210, 0.2);
}

.nav-cta:hover {
  background: var(--morado) !important;
  color: white !important;
}

.cart-btn {
  position: relative;
  background: var(--azul-light) !important;
  border: 1px solid rgba(80, 130, 200, 0.22);
  color: var(--azul-deep) !important;
  padding: 7px 17px !important;
  cursor: pointer;
  font-weight: 600 !important;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s !important;
}

.cart-btn:hover {
  background: var(--azul) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(74, 125, 181, 0.22) !important;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  background: var(--morado-dark);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  pointer-events: none;
}

/* Mobile topbar — oculto en desktop */
.mobile-topbar {
  display: none;
  align-items: center;
  gap: 12px;
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--texto);
  font-size: 1.3rem;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  touch-action: manipulation;
}

.mobile-menu-toggle:hover {
  transform: scale(1.04);
}

.mobile-menu-toggle.active {
  background: var(--morado-dark);
  color: #fff;
}

.mobile-cart-btn {
  display: none;
}

/* ──────────────────────────────────────────────────────────────
   4. HERO
   ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: var(--z-base);
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.13;
  color: var(--texto);
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--morado-dark);
  background: linear-gradient(135deg, var(--morado-dark), var(--azul-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1rem;
  color: var(--texto-muted);
  line-height: 1.72;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--morado-dark) 0%, var(--azul-dark) 100%);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 30px;
  border: none;
  border-radius: var(--radio-xl);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  box-shadow: 0 6px 22px rgba(107, 74, 184, 0.32);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(107, 74, 184, 0.42);
}

.btn-ghost {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--texto-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s;
  padding: 8px 4px;
}

.btn-ghost:hover { color: var(--morado-dark); }

/* Hero visual cards */
.hero-visual {
  position: relative;
  height: 380px;
}

.hero-card {
  position: absolute;
  background: white;
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: 0 10px 36px var(--sombra);
  transition: transform 0.3s var(--ease-out);
}

.hero-card:hover { transform: translateY(-4px); }

.hero-card.card-a {
  top: 0; left: 0; right: 60px;
  background: linear-gradient(145deg, #ede6ff, #d4eaff);
}

.hero-card.card-b {
  bottom: 0; right: 0; left: 40px;
  background: white;
}

.hero-card.card-c {
  top: 50%; right: 10px;
  transform: translateY(-50%);
  width: 120px;
  background: linear-gradient(145deg, var(--morado-light), var(--azul-light));
  text-align: center;
  padding: 1rem;
}

.hero-card.card-c:hover { transform: translateY(calc(-50% - 4px)); }

.hero-emoji { font-size: 3rem; display: block; margin-bottom: 0.5rem; }
.hero-card-label { font-size: 0.7rem; font-weight: 600; color: var(--morado-deep); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-card-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--texto); margin: 6px 0 4px; line-height: 1.25; }
.hero-card-price { font-size: 1rem; font-weight: 600; color: var(--morado-dark); }
.stars { color: #f0b429; font-size: 0.78rem; letter-spacing: 2px; margin-top: 6px; }

/* ──────────────────────────────────────────────────────────────
   5. STATS BAR
   ────────────────────────────────────────────────────────────── */
.stats-bar {
  position: relative;
  z-index: var(--z-base);
  background: linear-gradient(135deg, var(--aqua-dark) 0%, var(--aqua) 50%, #12b8b4 100%);
  padding: 1.6rem 2rem;
  box-shadow: 0 4px 18px rgba(14, 165, 160, 0.3);
}

.stats-inner {
  max-width: 1280px;
  margin: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 1.9rem; display: block; color: white; letter-spacing: -0.02em; line-height: 1.1; }
.stat-label { font-size: 0.78rem; color: rgba(255, 255, 255, 0.82); font-weight: 500; letter-spacing: 0.04em; margin-top: 2px; display: block; }
.stat-divider { width: 1px; height: 44px; background: rgba(255, 255, 255, 0.28); flex-shrink: 0; }

/* ──────────────────────────────────────────────────────────────
   6. SECCIONES GENÉRICAS
   ────────────────────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: var(--z-base);
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  color: var(--texto);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-title span { color: var(--morado-dark); }

/* ──────────────────────────────────────────────────────────────
   7. FILTROS + FILTER-BTN
   ────────────────────────────────────────────────────────────── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--texto-muted);
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 6px 16px;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--morado);
  color: var(--morado-deep);
  background: var(--morado-light);
}

.filter-btn.active {
  background: var(--morado-deep);
  color: white;
  border-color: var(--morado-deep);
  box-shadow: 0 3px 12px rgba(61, 33, 117, 0.25);
}

/* ──────────────────────────────────────────────────────────────
   8. PRODUCT CARDS
   ────────────────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
}

.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radio-lg);
  overflow: hidden;
  transition: transform 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out), border-color 0.24s;
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 44px var(--sombra-md);
  border-color: var(--border-strong);
}

.card-img-wrap {
  position: relative;
  background: linear-gradient(145deg, var(--morado-light), var(--azul-light));
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s var(--ease-out);
}

.product-card:hover .card-img-wrap img { transform: scale(1.05); }

.card-emoji { font-size: 3.5rem; }

.badge-new,
.badge-offer {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: 0.05em;
  z-index: 1;
  text-transform: uppercase;
}

.badge-new   { background: var(--azul-deep); color: white; }
.badge-offer { background: #d94f4f; color: white; }

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease-spring);
  z-index: 1;
}

.wishlist-btn:hover   { transform: scale(1.18); }
.wishlist-btn.active  { background: #fce8e8; }

.card-body {
  padding: 1.1rem 1.2rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--texto-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.02rem;
  color: var(--texto);
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 0.81rem;
  color: var(--texto-muted);
  line-height: 1.55;
  margin-bottom: 12px;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.card-price { display: flex; flex-direction: column; gap: 1px; }
.price-old { font-size: 0.75rem; color: #aaa0c0; text-decoration: line-through; line-height: 1; }
.price-main { font-size: 1.15rem; font-weight: 700; color: var(--morado-deep); letter-spacing: -0.01em; }

.btn-wsp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--wsp);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 13px;
  border: none;
  border-radius: 22px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(37, 211, 102, 0.28);
}

.btn-wsp:hover {
  background: #1eb659;
  transform: scale(1.04);
  box-shadow: 0 5px 18px rgba(37, 211, 102, 0.42);
}

.btn-wsp svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-carrito {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--morado-light);
  color: var(--morado-deep);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 13px;
  border: 1.5px solid rgba(140, 100, 210, 0.3);
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}

.btn-carrito:hover {
  background: var(--morado-dark);
  color: white;
  border-color: var(--morado-dark);
  box-shadow: 0 3px 14px rgba(107, 74, 184, 0.28);
}

/* ──────────────────────────────────────────────────────────────
   9. CATEGORÍA HEADER / VER MÁS
   ────────────────────────────────────────────────────────────── */
.categoria-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  margin-top: 2.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1.5px solid var(--border);
  gap: 1rem;
}

.categoria-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--texto);
  letter-spacing: -0.01em;
}

.ver-mas-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--morado-dark);
  text-decoration: none;
  padding: 5px 14px;
  border-radius: 18px;
  border: 1.5px solid rgba(140, 100, 210, 0.3);
  transition: all 0.18s;
  white-space: nowrap;
  flex-shrink: 0;
}

.ver-mas-link:hover {
  background: var(--morado-deep);
  color: white;
  border-color: var(--morado-deep);
}

/* ──────────────────────────────────────────────────────────────
   10. CATEGORIES GRID
   ────────────────────────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.cat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radio-lg);
  padding: 1.35rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s, border-color 0.22s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px var(--sombra);
  border-color: var(--morado);
}

.cat-emoji  { font-size: 2.2rem; display: block; }
.cat-name   { font-size: 0.875rem; font-weight: 600; color: var(--texto); }
.cat-count  { font-size: 0.73rem; color: var(--texto-muted); margin-top: -2px; }

/* ──────────────────────────────────────────────────────────────
   11. PROMO BANNER
   ────────────────────────────────────────────────────────────── */
.promo-banner {
  position: relative;
  z-index: var(--z-base);
  border-radius: var(--radio-lg);
  background: linear-gradient(135deg, var(--morado-deep) 0%, var(--azul-deep) 100%);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  max-width: 1280px;
  margin: 0 auto 3rem;
  box-shadow: 0 12px 40px rgba(61, 33, 117, 0.28);
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.promo-banner::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 30%;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.promo-text {
  color: white;
  position: relative;
  z-index: 1;
}

.promo-label {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.16);
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  margin-bottom: 0.6rem;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.promo-sub {
  font-size: 0.9rem;
  opacity: 0.78;
  max-width: 360px;
  line-height: 1.55;
}

.promo-action {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.promo-emoji { font-size: 4rem; }

.btn-promo {
  background: white;
  color: var(--morado-deep);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 11px 26px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.btn-promo:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* ──────────────────────────────────────────────────────────────
   12. NEWSLETTER / SOCIAL / FOOTER
   ────────────────────────────────────────────────────────────── */
.newsletter {
  position: relative;
  z-index: var(--z-base);
  background: linear-gradient(180deg, var(--morado-light) 0%, rgba(220, 210, 255, 0.5) 100%);
  border-top: 1px solid rgba(180, 150, 230, 0.22);
  padding: 3.5rem 2rem 3rem;
  text-align: center;
}

.newsletter h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  margin-bottom: 1.6rem;
  color: var(--texto);
  letter-spacing: -0.01em;
}

.newsletter p {
  color: var(--texto-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  max-width: 440px;
  margin: auto;
}

.newsletter-form input {
  flex: 1;
  padding: 11px 18px;
  border: 1.5px solid var(--border);
  border-radius: 25px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--texto);
  background: white;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-form input:focus {
  border-color: var(--morado-dark);
  box-shadow: 0 0 0 3px rgba(107, 74, 184, 0.12);
}

.social-container {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.media_img {
  display: flex;
  align-items: center;
  gap: 8px;
}

.media_img img,
.social-container img {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  border-radius: 50%;
  padding: 4px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  object-fit: contain;
  flex-shrink: 0;
}

.media {
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  color: var(--texto-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.18s;
}

.media:hover { color: var(--morado-dark); }

.address-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  justify-content: center;
}

.address_img { width: 20px; height: 20px; }

.address {
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  color: var(--texto-muted);
  font-size: 0.85rem;
  transition: color 0.18s;
}

.address:hover { color: var(--morado-dark); }

/* Divisor */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 2rem;
}

footer {
  position: relative;
  z-index: var(--z-base);
  background: var(--texto);
  color: rgba(255, 255, 255, 0.6);
  padding: 2rem;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

footer a {
  color: var(--morado);
  text-decoration: none;
  transition: color 0.18s;
}

footer a:hover { color: var(--azul-light); }

/* ──────────────────────────────────────────────────────────────
   13. TOAST
   ────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--morado-deep);
  color: white;
  padding: 13px 20px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: var(--z-toast);
  transform: translateY(120px);
  opacity: 0;
  transition: transform 0.38s var(--ease-spring), opacity 0.3s;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  pointer-events: none;
  max-width: calc(100vw - 3rem);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════════
   14. BÚSQUEDA + CATALOG TOOLBAR
   ══════════════════════════════════════════════════════════════ */
.search-bar-wrap {
  position: relative;
  max-width: 560px;
  width: 100%;
}

.search-bar-wrap input {
  width: 100%;
  padding: 12px 46px 12px 20px;
  border: 1.5px solid var(--border);
  border-radius: 30px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--texto);
  background: white;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar-wrap input:focus {
  border-color: var(--morado-dark);
  box-shadow: 0 0 0 3px rgba(107, 74, 184, 0.12);
}

.search-bar-wrap .search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--texto-muted);
  font-size: 1rem;
  pointer-events: none;
}

.catalog-toolbar {
  position: relative;
  z-index: 2;
  background: rgba(250, 248, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}

.catalog-toolbar-inner {
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   15. CATALOG LAYOUT + SIDEBAR
   ══════════════════════════════════════════════════════════════ */
.catalog-layout {
  position: relative;
  z-index: var(--z-base);
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}

.filters-sidebar {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radio-lg);
  padding: 1.35rem;
  position: sticky;
  top: 110px;
  box-shadow: 0 4px 18px var(--sombra);
}

.sidebar-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--texto);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-group { margin-bottom: 1.3rem; }
.sidebar-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texto-muted);
  margin-bottom: 0.6rem;
  display: block;
}

.sidebar-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--texto-muted);
  transition: background 0.15s, color 0.15s;
  margin-bottom: 2px;
}

.sidebar-btn:hover {
  background: var(--morado-light);
  color: var(--morado-deep);
}

.sidebar-btn.active {
  background: var(--morado-deep);
  color: white;
  font-weight: 600;
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.catalog-count { font-size: 0.85rem; color: var(--texto-muted); }
.catalog-count strong { color: var(--texto); }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.15rem;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--texto-muted);
}

.empty-state .empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}

.empty-state h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--texto);
}

/* ══════════════════════════════════════════════════════════════
   16. SKELETON LOADERS
   ══════════════════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, #ede9f6 25%, #e1daf2 50%, #ede9f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radio);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  border-radius: var(--radio-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
}

.skeleton-img   { height: 200px; }
.skeleton-body  { padding: 1rem; }

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.skeleton-line.w-90 { width: 90%; }
.skeleton-line.w-70 { width: 70%; }
.skeleton-line.w-50 { width: 50%; }

/* ══════════════════════════════════════════════════════════════
   17. DETALLE DE PRODUCTO + GALERÍA
   ══════════════════════════════════════════════════════════════ */
.detalle-layout {
  position: relative;
  z-index: var(--z-base);
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.galeria-wrap {
  position: sticky;
  top: 110px;
}

.galeria-principal {
  border-radius: var(--radio-lg);
  overflow: hidden;
  background: linear-gradient(145deg, var(--morado-light), var(--azul-light));
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  position: relative;
}

.galeria-principal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.galeria-principal .emoji-fallback { font-size: 6rem; }

.galeria-thumbs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.galeria-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
  background: var(--morado-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.galeria-thumb:hover,
.galeria-thumb.activo { border-color: var(--morado-dark); }

.galeria-thumb img { width: 100%; height: 100%; object-fit: cover; }

.detalle-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detalle-breadcrumb {
  font-size: 0.8rem;
  color: var(--texto-muted);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.detalle-breadcrumb a {
  color: var(--morado-dark);
  text-decoration: none;
  transition: text-decoration 0.15s;
}

.detalle-breadcrumb a:hover { text-decoration: underline; }

.detalle-categoria {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--morado-dark);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.detalle-nombre {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
  color: var(--texto);
  letter-spacing: -0.02em;
}

.detalle-codigo {
  font-size: 0.75rem;
  color: var(--texto-muted);
}

.detalle-precio-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.detalle-precio-actual {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--morado-deep);
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.02em;
}

.detalle-precio-old {
  font-size: 1.1rem;
  color: #b0a0c0;
  text-decoration: line-through;
}

.detalle-descuento {
  background: #d94f4f;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.detalle-desc {
  font-size: 0.9rem;
  color: var(--texto-muted);
  line-height: 1.78;
}

.cantidad-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cantidad-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--texto);
}

.cantidad-ctrl {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
}

.cantidad-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px 15px;
  font-size: 1.1rem;
  color: var(--texto-muted);
  transition: background 0.15s, color 0.15s;
  font-family: 'DM Sans', sans-serif;
  touch-action: manipulation;
  min-width: 42px;
  text-align: center;
}

.cantidad-btn:hover {
  background: var(--morado-light);
  color: var(--morado-deep);
}

.cantidad-num {
  min-width: 38px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--texto);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 7px 4px;
}

.detalle-acciones {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-agregar-carrito {
  width: 100%;
  padding: 15px;
  background: var(--morado-deep);
  color: white;
  border: none;
  border-radius: var(--radio-xl);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 22px rgba(61, 33, 117, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  touch-action: manipulation;
}

.btn-agregar-carrito:hover {
  background: var(--morado-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(61, 33, 117, 0.4);
}

.btn-wsp-detalle {
  width: 100%;
  padding: 14px;
  background: var(--wsp);
  color: white;
  border: none;
  border-radius: var(--radio-xl);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.32);
  touch-action: manipulation;
}

.btn-wsp-detalle:hover {
  background: #1eb659;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.btn-cotizar-detalle {
  width: 100%;
  padding: 13px;
  background: transparent;
  color: var(--morado-deep);
  border: 1.5px solid rgba(140, 100, 210, 0.35);
  border-radius: var(--radio-xl);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  touch-action: manipulation;
}

.btn-cotizar-detalle:hover {
  background: var(--morado-light);
  border-color: var(--morado);
}

.relacionados-section {
  position: relative;
  z-index: var(--z-base);
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

/* ──────────────────────────────────────────────────────────────
   BOTÓN FLOTANTE «REGRESAR» (producto.html)
   Visible siempre, elegante, premium
   ────────────────────────────────────────────────────────────── */
.back-btn {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: var(--z-back-btn);
  border: none;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 1.2rem;
  border-radius: 20px;
  font-weight: 700;
  color: var(--texto);
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

/* ══════════════════════════════════════════════════════════════
   18. MOBILE NAV DRAWER
   ══════════════════════════════════════════════════════════════ */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 35, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: var(--z-mobile-nav-overlay);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;

  width: 82%;
  max-width: 320px;
  height: 100vh;

  background: rgba(252, 250, 255, 0.98);

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  transform: translateX(-105%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);

  z-index: var(--z-mobile-nav);

  display: flex;
  flex-direction: column;

  padding:
    max(1.5rem, env(safe-area-inset-top))
    1.25rem
    max(1.5rem, env(safe-area-inset-bottom));

  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.18);

  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-logo {
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--texto);
}

.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--texto-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
  flex-shrink: 0;
  touch-action: manipulation;
}

.mobile-nav-close:hover {
  background: var(--morado-light);
  color: var(--morado-deep);
  transform: scale(1.05);
}

.mobile-nav a {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;

  padding: 1rem 1.1rem;

  border-radius: 16px;

  text-decoration: none;

  font-size: 1rem;
  font-weight: 600;

  color: var(--texto);

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease;

  margin-bottom: 0.35rem;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--morado-light);
  color: var(--morado-deep);
  transform: translateX(4px);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;

  margin-top: 1rem;
}

.mobile-nav-cart {
  margin-top: auto !important;
  background: var(--azul-light) !important;
  color: var(--azul-deep) !important;
  border-radius: 14px !important;
  font-weight: 600 !important;
}

/* ══════════════════════════════════════════════════════════════
   19. CARRITO LATERAL (DRAWER)
   ══════════════════════════════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 22, 48, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 400px;
  max-width: 100vw;
  background: white;
  z-index: var(--z-drawer);
  transform: translateX(105%);
  transition: transform 0.36s var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.14);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.cart-drawer.open { transform: translateX(0); }

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}

.cart-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--texto);
}

.cart-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--texto-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
  touch-action: manipulation;
}

.cart-close-btn:hover {
  background: var(--morado-light);
  color: var(--morado-deep);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radio);
  margin-bottom: 0.75rem;
  align-items: flex-start;
  transition: border-color 0.15s;
}

.cart-item:hover { border-color: var(--border-strong); }

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--morado-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-emoji { font-size: 2rem; }

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  color: var(--texto);
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 0.88rem;
  color: var(--morado-deep);
  font-weight: 700;
}

.cart-item-ctrl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 8px;
}

.ci-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--texto-muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  touch-action: manipulation;
}

.ci-btn:hover {
  background: var(--morado-light);
  color: var(--morado-deep);
  border-color: var(--morado);
}

.ci-num {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #c0a0a0;
  font-size: 1.1rem;
  transition: color 0.2s;
  padding: 4px;
  align-self: flex-start;
  flex-shrink: 0;
  touch-action: manipulation;
}

.cart-item-remove:hover { color: #d94f4f; }

.cart-empty {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--texto-muted);
}

.cart-empty .empty-icon {
  font-size: 3.2rem;
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.cart-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--crema);
  flex-shrink: 0;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.cart-subtotal-label { font-size: 0.85rem; color: var(--texto-muted); }

.cart-subtotal-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--morado-deep);
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.01em;
}

.cart-footer-btns {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.btn-checkout-wsp {
  width: 100%;
  padding: 14px;
  background: var(--wsp);
  color: white;
  border: none;
  border-radius: var(--radio-xl);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
  touch-action: manipulation;
}

.btn-checkout-wsp:hover {
  background: #1eb659;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.42);
}

.btn-checkout-email {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: var(--morado-deep);
  border: 1.5px solid rgba(140, 100, 210, 0.32);
  border-radius: var(--radio-xl);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.18s, border-color 0.18s;
  touch-action: manipulation;
}

.btn-checkout-email:hover {
  background: var(--morado-light);
  border-color: var(--morado);
}

/* ══════════════════════════════════════════════════════════════
   20. MODAL COTIZACIÓN
   ══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 22, 48, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: white;
  border-radius: var(--radio-lg);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.32s var(--ease-spring);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
}

.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.35rem;
  gap: 1rem;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--texto);
  letter-spacing: -0.01em;
}

.modal-sub {
  font-size: 0.82rem;
  color: var(--texto-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--texto-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
  flex-shrink: 0;
  touch-action: manipulation;
}

.modal-close:hover {
  background: var(--morado-light);
  color: var(--morado-deep);
}

.modal-resumen {
  background: var(--crema);
  border: 1px solid var(--border);
  border-radius: var(--radio);
  padding: 1rem;
  margin-bottom: 1.35rem;
}

.modal-resumen-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  color: var(--texto-muted);
  gap: 1rem;
}

.modal-resumen-item:last-child { border-bottom: none; }
.modal-resumen-item strong { color: var(--texto); }

.modal-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1.5px solid var(--border);
  color: var(--morado-deep);
}

.form-field { margin-bottom: 0.9rem; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--texto);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--morado-dark);
  box-shadow: 0 0 0 3px rgba(107, 74, 184, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.55;
}

.btn-enviar-cotizacion {
  width: 100%;
  padding: 14px;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--morado-deep), var(--azul-deep));
  color: white;
  border: none;
  border-radius: var(--radio-xl);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 22px rgba(61, 33, 117, 0.3);
  touch-action: manipulation;
}

.btn-enviar-cotizacion:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(61, 33, 117, 0.42);
}

.btn-enviar-cotizacion:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ══════════════════════════════════════════════════════════════
   21. RESPONSIVE — Mobile-first profesional
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .nav-inner {
    padding: 0 1.5rem 0 240px;
  }

  .logo-container {
    left: 60px;
    width: 180px;
    height: 80px;
  }

  .hero {
    gap: 2.5rem;
    padding: 4rem 1.5rem 3rem;
  }
}

@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .filters-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 1rem;
    box-shadow: none;
  }

  .sidebar-group { margin-bottom: 0; }
  .sidebar-title { display: none; }
  .sidebar-btn { width: auto; }

  .detalle-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin: 1.5rem auto;
  }

  .galeria-wrap { position: static; }
  .galeria-principal { height: 320px; }
}

@media (max-width: 768px) {
  header {
    height: 68px;
    position: sticky;
    top: 0;
    z-index: var(--z-header);
  }

  .nav-inner {
    height: 68px;
    padding: 0 1rem;
    padding-right: 60px;
    justify-content: center;
    position: relative;
  }

  nav { display: none; }

  .logo-container {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo-img { width: 140px; }

  .mobile-topbar {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 2;
  }

  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--texto);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    touch-action: manipulation;
    transition: background 0.18s;
  }

  .mobile-menu-toggle:active {
    background: var(--morado-light);
  }

  .mobile-cart-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--azul-light);
    border: 1px solid rgba(80, 130, 200, 0.22);
    color: var(--azul-deep);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 22px;
    cursor: pointer;
    touch-action: manipulation;
    text-decoration: none;
    white-space: nowrap;
    z-index: 2;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 2rem 1rem 1.75rem;
  }

  .hero-visual { display: none; }

  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.1;
  }

  .hero p {
    font-size: 0.93rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .btn-primary { width: 100%; justify-content: center; text-align: center; }
  .btn-ghost   { width: 100%; justify-content: center; }

  .stats-inner {
    gap: 1rem;
    justify-content: space-around;
  }

  .stat-divider { display: none; }
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: 0.72rem; }

  .section { padding: 2rem 1rem; }
  .section-header { margin-bottom: 1.5rem; }

  .products-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .product-card {
    border-radius: 18px;
  }

  .product-card:active {
    transform: scale(0.98);
    transition: transform 0.12s;
  }

  .card-img-wrap { height: 165px; }
  .card-body { padding: 0.85rem; }

  .card-title {
    font-size: 0.9rem;
    line-height: 1.3;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-desc { display: none; }

  .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .btn-carrito,
  .btn-wsp {
    width: 100%;
    justify-content: center;
    min-height: 40px;
    font-size: 0.76rem;
    padding: 8px 10px;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
  }

  .promo-banner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    margin: 0 1rem 2rem;
    border-radius: 18px;
  }

  .promo-sub { margin: 0 auto; }

  .catalog-toolbar { padding: 0.85rem 1rem; }
  .catalog-toolbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .search-bar-wrap { max-width: 100%; }

  .cart-drawer {
    width: 100vw;
    border-radius: 0;
  }

  .cart-header { padding: 1.25rem 1rem; }
  .cart-items  { padding: 1rem; }
  .cart-footer { padding: 1rem; }

  .modal-overlay {
    padding: 0.75rem;
    align-items: flex-end;
  }

  .modal-box {
    width: 100%;
    max-width: 100%;
    border-radius: 22px 22px 16px 16px;
    padding: 1.5rem 1.25rem;
    max-height: 90vh;
    transform: translateY(40px) scale(1);
  }

  .modal-overlay.open .modal-box {
    transform: translateY(0) scale(1);
  }

  .newsletter-form { flex-direction: column; }
  .newsletter { padding: 2.5rem 1rem; }

  .detalle-layout { padding: 0 1rem; }
  .galeria-principal { height: auto; max-height: 360px; aspect-ratio: 1/1; }
  .galeria-thumbs {
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .btn-agregar-carrito,
  .btn-wsp-detalle,
  .btn-cotizar-detalle {
    padding: 13px;
    font-size: 0.9rem;
  }

  .footer-divider { margin: 0 1rem; }
  footer { padding: 1.75rem 1rem; }

  .toast {
    bottom: 1.25rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .section { padding: 1.75rem 0.85rem; }
  .promo-banner { margin: 0 0.75rem 1.75rem; padding: 1.75rem 1.25rem; }
  .modal-box { padding: 1.35rem 1rem; }
  .cart-footer { padding: 0.9rem; }
  .products-grid,
  .catalog-grid { gap: 0.7rem; }
  .card-img-wrap { height: 145px; }
  .card-body { padding: 0.75rem; }
  .price-main { font-size: 1rem; }
}

/* ── Fix: cero overflow horizontal global ── */
html, body { max-width: 100%; }
* { min-width: 0; }