/* =========================================================
   PAPELERÍA GAMACOLOR — STYLES
   Paleta: Azul cobalto + Amarillo cálido (logo-driven)
   ========================================================= */

/* ============ 1. RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
input, button, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ============ 2. CSS VARIABLES ============ */
:root {
  /* Brand — Blues */
  --blue-900: #070e2b;
  --blue-800: #12286b;   /* Primary brand blue (like logo text) */
  --blue-700: #183ebb;
  --blue-600: #2563EB;   /* Bright accent */
  --blue-500: #3B82F6;
  --blue-100: #DBEAFE;
  --blue-50:  #EFF6FF;

  /* Brand — Yellows */
  --yellow-500: #f5b002;  /* Primary warm yellow */
  --yellow-400: #FCD34D;
  --yellow-300: #FDE68A;
  --yellow-100: #FEF3C7;
  --yellow-50:  #FFFBEB;

  /* Accents from logo */
  --orange:    #F97316;
  --red:       #EF4444;
  --green:     #22C55E;
  --pink:      #EC4899;

  /* Neutrals */
  --ink:       #020617;
  --ink-soft:  #334155;
  --muted:     #64748B;
  --line:      #E2E8F0;
  --line-soft: #F1F5F9;
  --cream:     #FAFAFA;
  --white:     #FFFFFF;

  /* Semantic */
  --bg:        #FFFDF5; /* Amarillo súper suave para toda la página */
  --text:      var(--ink);
  --primary:   var(--blue-800);
  --accent:    var(--yellow-500);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 27, 71, 0.06);
  --shadow:    0 8px 28px rgba(15, 27, 71, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 27, 71, 0.14);
  --shadow-yellow: 0 12px 36px rgba(251, 191, 36, 0.35);
  --shadow-blue:   0 12px 36px rgba(37, 99, 235, 0.30);

  /* Transitions */
  --t-fast: 0.15s ease;
  --t:      0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ 3. TYPOGRAPHY ============ */
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.kicker-light {
  color: var(--yellow-300);
  background: rgba(253, 230, 138, 0.15);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-title-light { color: var(--white); }

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}
.section-sub-light { color: rgba(255, 255, 255, 0.75); }

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

/* ============ 4. BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform var(--t), box-shadow var(--t), background var(--t);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-800);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-900);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(30, 58, 138, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--blue-800);
  border: 2px solid var(--blue-800);
}
.btn-ghost:hover {
  background: var(--blue-800);
  color: var(--white);
}
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ============ 5. MARQUEE BAR ============ */
.marquee-bar {
  background: var(--blue-900);
  color: var(--yellow-300);
  overflow: hidden;
  padding: 10px 0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.marquee-track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
}
.marquee-track span { flex-shrink: 0; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ 6. HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: box-shadow var(--t), background var(--t);
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.95);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 56px;
  width: auto;
  transition: transform var(--t);
}
.logo-link:hover .logo-img {
  transform: scale(1.04) rotate(-2deg);
}

/* Desktop nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.header-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 10px 16px;
  border-radius: 999px;
  transition: all var(--t);
  white-space: nowrap;
}
.header-nav a:hover {
  color: var(--blue-800);
  background: var(--blue-50);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.action-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-800);
  border: 1.5px solid var(--line);
  transition: all var(--t);
}
.action-btn svg { width: 20px; height: 20px; }
.action-btn:hover {
  background: var(--blue-800);
  color: var(--white);
  border-color: var(--blue-800);
  transform: translateY(-2px);
}
.action-wa:hover { background: #25D366; border-color: #25D366; }

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  background: var(--yellow-500);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--white);
}

/* Search bar (expandible) */
.search-bar {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t), border-top-color var(--t);
  border-top: 1px solid transparent;
  background: var(--white);
}
.search-bar.open {
  max-height: 90px;
  border-top-color: var(--line);
}
.search-bar-inner {
  position: relative;
  display: flex;
  align-items: center;
  padding: 14px 24px;
}
.search-bar-inner .search-icon {
  position: absolute;
  left: 40px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}
#searchInput {
  width: 100%;
  padding: 12px 56px 12px 50px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  font-size: 0.95rem;
}
#searchInput:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px var(--blue-50);
}
.search-close {
  position: absolute;
  right: 36px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--ink-soft);
  background: var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
}
.search-close:hover {
  background: var(--blue-800);
  color: var(--white);
}

/* Hamburger button */
.hamburger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-800);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t);
}
.hamburger:hover { background: var(--blue-900); }
.hamburger span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger.open { background: var(--yellow-500); }
.hamburger.open span { background: var(--blue-900); }
.hamburger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scale(0); }
.hamburger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 27, 71, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t);
}
.mobile-overlay.open { opacity: 1; visibility: visible; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 90vw);
  height: 100vh;
  background: var(--cream);
  z-index: 210;
  transform: translateX(100%);
  transition: transform var(--t);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.18);
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.mobile-logo {
  height: 50px;
  width: auto;
}
.mobile-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--ink-soft);
  background: var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
}
.mobile-close:hover {
  background: var(--blue-800);
  color: var(--white);
}

.mobile-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  transition: all var(--t);
}
.mobile-nav a .m-icon {
  font-size: 1.3rem;
  width: 32px;
  display: inline-flex;
  justify-content: center;
}
.mobile-nav a:hover,
.mobile-nav a:active {
  background: var(--blue-50);
  color: var(--blue-800);
  padding-left: 36px;
}
.mobile-nav a:last-child { border-bottom: none; }

.mobile-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============ 7. HERO ============ */
.hero {
  position: relative;
  padding: 80px 0 120px;
  overflow: hidden;
  background: linear-gradient(180deg, #F8FAFC 0%, var(--bg) 100%);
  background-image: radial-gradient(rgba(18, 40, 107, 0.04) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -15%; right: -5%;
  width: 50%; height: 50%;
  background: radial-gradient(circle, rgba(245, 176, 2, 0.12) 0%, rgba(252, 211, 77, 0.05) 50%, transparent 80%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  animation: floatGlow 20s ease-in-out infinite alternate;
}
.hero-glow {
  position: absolute;
  top: -25%; left: -10%;
  width: 60%; height: 70%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 80%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  animation: floatGlow 15s ease-in-out infinite alternate-reverse;
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-logo-inline {
  width: 220px;
  margin-bottom: 24px;
  filter: drop-shadow(0 10px 20px rgba(30, 58, 138, 0.15));
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-text {
  max-width: 540px;
  animation: fadeUp 0.8s var(--t-slow) backwards;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.8vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 24px;
}
.highlight-yellow {
  position: relative;
  display: inline-block;
  font-style: italic;
  color: var(--ink);
}
.highlight-yellow::before {
  content: '';
  position: absolute;
  inset: 5% -4% -2% -4%;
  background: var(--yellow-400);
  z-index: -1;
  border-radius: 8px;
  transform: rotate(-1.5deg);
}
.highlight-blue {
  color: var(--blue-700);
  font-style: italic;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.65;
}
.hero-sub strong { color: var(--blue-800); font-weight: 700; }

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-top: 40px;
  box-shadow: 0 10px 30px rgba(18, 40, 107, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  max-width: 540px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.hero-stats:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(18, 40, 107, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: rgba(37, 99, 235, 0.15);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-lbl {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 1s var(--t-slow) 0.2s backwards;
  min-height: 500px;
  width: 100%;
}
.hero-bento-side {
  animation: fadeUp 1s var(--t-slow) 0.2s backwards;
  width: 100%;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.1); }
  100% { transform: translate(-15px, 15px) scale(0.95); }
}

/* ============ 8. DISTRIBUTORS ============ */
.distributors {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.distributors::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--yellow-500) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}
.brands-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 16px;
}
.brand-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform var(--t), background var(--t);
}
.brand-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.brand-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}
.brand-featured {
  background: linear-gradient(135deg, var(--yellow-500) 0%, var(--yellow-400) 100%);
  border: none;
  position: relative;
  overflow: hidden;
}
.brand-featured::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -30%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.05) 10px, rgba(255, 255, 255, 0.05) 20px);
}
.brand-featured .brand-name { color: var(--blue-900); font-size: 1.85rem; }
.brand-featured .brand-desc { color: var(--blue-900); opacity: 0.85; font-weight: 500; }
.brand-badge {
  display: inline-block;
  background: var(--blue-900);
  color: var(--yellow-300);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

/* ============ 9. CATEGORIES ============ */
.categories {
  padding: 100px 0;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  display: block;
  padding: 36px 28px 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
  border: 1.5px solid var(--line);
  background: var(--white);
}
.cat-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  opacity: 0.15;
  transition: transform var(--t-slow);
}
.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.cat-card:hover::before { transform: scale(1.4); }
.cat-arte::before     { background: var(--yellow-500); }
.cat-escolar::before  { background: var(--blue-600); }
.cat-oficina::before  { background: var(--orange); }
.cat-pinateria::before{ background: var(--pink); }

.cat-icon {
  font-size: 3rem;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.cat-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.cat-desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.cat-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue-800);
  color: var(--white);
  font-size: 1.1rem;
  transition: transform var(--t);
  position: relative;
  z-index: 1;
}
.cat-card:hover .cat-arrow { transform: translateX(6px) rotate(-15deg); }

/* ============ 10. PRODUCTS ============ */
.products {
  padding: 100px 0;
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.tab {
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--line-soft);
  color: var(--ink-soft);
  transition: all var(--t);
}
.tab:hover { background: var(--blue-50); color: var(--blue-700); }
.tab.active {
  background: var(--blue-800);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--blue-100);
}
.product-img {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: var(--line-soft);
  overflow: hidden;
}
.product-img::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.65;
}
.product-img > * { position: relative; z-index: 1; }
.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-800);
}
.tag-new { background: var(--yellow-500); color: var(--blue-900); }
.tag-pop { background: var(--blue-800); color: var(--yellow-300); }
.tag-uni { background: var(--orange); color: var(--white); }

.product-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-brand {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}
.product-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
  flex: 1;
}
.btn-add {
  background: var(--blue-50);
  color: var(--blue-800);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 16px;
  border-radius: 10px;
  transition: all var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-add:hover {
  background: var(--blue-800);
  color: var(--white);
}
.btn-add.added {
  background: var(--green);
  color: var(--white);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state p { color: var(--muted); margin-bottom: 20px; }

/* ============ 11. COLOR GUIDE ============ */
.color-guide {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--yellow-50) 100%);
}
.guide-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
  padding: 8px;
  background: var(--white);
  border-radius: 999px;
  max-width: max-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-sm);
}
.gtab {
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: all var(--t);
}
.gtab:hover { color: var(--blue-700); }
.gtab.active {
  background: var(--blue-800);
  color: var(--white);
}

.guide-panel { display: none; }
.guide-panel.active { display: block; animation: fadeUp 0.4s; }
.guide-subtitle {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue-800);
  margin: 32px 0 16px;
  text-align: center;
}
.guide-subtitle:first-child { margin-top: 0; }

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.swatch {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t);
  /* Textura de pintura aplicada — sombras internas + brillo superior */
  box-shadow:
    inset 0 -10px 28px rgba(0, 0, 0, 0.22),
    inset 0 4px 12px rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15),
    0 4px 14px rgba(15, 27, 71, 0.10);
}
/* Capa de textura tipo pincelada */
.swatch::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(255, 255, 255, 0.30), transparent 60%),
    radial-gradient(ellipse 70% 50% at 75% 85%, rgba(0, 0, 0, 0.18), transparent 60%);
  pointer-events: none;
}
.swatch:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    inset 0 -10px 28px rgba(0, 0, 0, 0.22),
    inset 0 4px 12px rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15),
    0 16px 36px rgba(15, 27, 71, 0.20);
  z-index: 2;
}

/* Código del color — visible siempre, arriba a la izquierda */
.swatch-code {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  background: rgba(15, 27, 71, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Nombre del color — barra inferior, visible siempre */
.swatch-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 24px 10px 10px;
  background: linear-gradient(to top, rgba(15, 27, 71, 0.92) 0%, rgba(15, 27, 71, 0.55) 60%, transparent 100%);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* Variantes especiales */
.swatch.fluo {
  box-shadow:
    inset 0 -10px 28px rgba(0, 0, 0, 0.18),
    inset 0 4px 12px rgba(255, 255, 255, 0.40),
    0 0 24px currentColor,
    0 4px 14px rgba(15, 27, 71, 0.10);
}
.swatch.fluo:hover {
  box-shadow:
    inset 0 -10px 28px rgba(0, 0, 0, 0.18),
    inset 0 4px 12px rgba(255, 255, 255, 0.40),
    0 0 36px currentColor,
    0 16px 36px rgba(15, 27, 71, 0.20);
}

.swatch.metal::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.12) 28%,
      transparent 45%,
      rgba(0, 0, 0, 0.18) 75%,
      rgba(0, 0, 0, 0.32) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Para colores muy claros (blanco, crema): el código y nombre necesitan contraste extra */
.swatch.light .swatch-code,
.swatch.light .swatch-name {
  background: rgba(15, 27, 71, 0.85);
}

/* ============ 12. WHY US ============ */
.why-us {
  padding: 100px 0;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1.5px solid var(--line);
  transition: transform var(--t), box-shadow var(--t);
}
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.why-card-feature {
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-900) 100%);
  border: none;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.why-card-feature::after {
  content: '⭐';
  position: absolute;
  top: -20px;
  right: -10px;
  font-size: 8rem;
  opacity: 0.06;
  pointer-events: none;
}
.why-card-feature p { color: rgba(255, 255, 255, 0.85); }
.why-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.why-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* ============ 13. LOCATION ============ */
.location {
  padding: 100px 0;
  background: var(--white);
}
.location-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 460px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--line);
}
.contact-card {
  background: linear-gradient(135deg, var(--yellow-500) 0%, var(--yellow-400) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  color: var(--blue-900);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.2;
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
}
.contact-list { position: relative; }
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 27, 71, 0.15);
  font-size: 0.95rem;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list strong { font-weight: 700; }
.contact-list a { font-weight: 600; transition: opacity var(--t); }
.contact-list a:hover { opacity: 0.7; }

.hours-card {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(15, 27, 71, 0.1);
  border-radius: var(--radius);
  position: relative;
}
.hours-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.hours-card p { font-size: 0.88rem; line-height: 1.7; }

/* ============ 14. FAQ ============ */
.faq { padding: 100px 0; }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: border-color var(--t);
}
.faq-item[open] { border-color: var(--blue-600); }
.faq-item summary {
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--t);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--blue-700);
  transition: transform var(--t);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--blue-700); }
.faq-item p {
  padding: 0 24px 22px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* ============ 15. FOOTER ============ */
.site-footer {
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo {
  height: 70px;
  width: auto;
  margin-bottom: 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 6px;
  object-fit: contain;
}
.footer-col p { font-size: 0.92rem; line-height: 1.6; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--yellow-300);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li { font-size: 0.92rem; }
.footer-col a { transition: color var(--t); }
.footer-col a:hover { color: var(--yellow-300); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ============ 16. FLOATING WHATSAPP ============ */
.float-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  z-index: 80;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
  transition: transform var(--t);
}
.float-wa:hover { transform: scale(1.1); }
.float-wa svg { width: 30px; height: 30px; }
.float-wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: pulse 2s ease-out infinite;
  z-index: -1;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ============ 17. CART DRAWER ============ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 27, 71, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t);
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: var(--white);
  z-index: 210;
  transform: translateX(100%);
  transition: transform var(--t);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.15);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-head h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
}
.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--ink-soft);
  background: var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
}
.cart-close:hover { background: var(--blue-800); color: var(--white); }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.cart-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 20px;
  font-size: 0.95rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--line-soft);
}
.cart-item-info { min-width: 0; }
.cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-brand {
  font-size: 0.78rem;
  color: var(--muted);
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--line-soft);
  font-weight: 700;
  color: var(--ink);
  transition: all var(--t);
}
.qty-btn:hover { background: var(--blue-800); color: var(--white); }
.qty-val {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.cart-item-remove {
  margin-left: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--red);
  font-size: 0.85rem;
  transition: background var(--t);
}
.cart-item-remove:hover { background: rgba(239, 68, 68, 0.1); }

.cart-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.cart-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* ============ 18. RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-bento-side { order: 2; margin-top: 20px; }
  .hero-text { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
  .hero-logo-inline { max-width: 200px; margin: 0 auto 24px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); text-align: left; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-featured { grid-column: 1 / -1; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Activar hamburguesa cuando el nav inline ya no entra cómodo */
@media (max-width: 960px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .header-wrap { gap: 8px; padding-top: 12px; padding-bottom: 12px; }
  .logo-img { height: 44px; }
  .action-btn { width: 40px; height: 40px; }
  .action-btn svg { width: 18px; height: 18px; }
  .hamburger { width: 40px; height: 40px; }
  .hamburger span { width: 18px; left: 11px; }
  .hamburger span:nth-child(1) { top: 13px; }
  .hamburger span:nth-child(2) { top: 19px; }
  .hamburger span:nth-child(3) { top: 25px; }
  .hamburger.open span:nth-child(1),
  .hamburger.open span:nth-child(3) { top: 19px; }

  .search-bar-inner { padding: 12px 18px; }
  .search-bar-inner .search-icon { left: 34px; }
  .search-close { right: 30px; }

  .hero { padding: 50px 0 70px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .btn { padding: 12px 22px; font-size: 0.95rem; }

  .section-head { margin-bottom: 36px; }
  .categories, .products, .color-guide, .why-us, .location, .faq { padding: 60px 0; }
  .distributors { padding: 50px 0; }

  .categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .product-img { font-size: 2.6rem; }
  .swatches { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
  .swatch-code { font-size: 0.7rem; padding: 3px 8px; top: 8px; left: 8px; }
  .swatch-name { font-size: 0.72rem; padding: 18px 8px 8px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .float-wa { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .float-wa svg { width: 26px; height: 26px; }

  .contact-list li { grid-template-columns: 90px 1fr; gap: 10px; font-size: 0.88rem; }
}

/* ============ 19. SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--t-slow), transform 0.7s var(--t-slow);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 20. UTILITIES ============ */
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ 21. CATEGORY BAR (HOME) ============ */
.category-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  overflow: hidden;
}
.category-bar-inner {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 24px;
  scroll-snap-type: x mandatory;
  /* Centrar cuando todas las pills caben en el viewport */
  justify-content: center;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto;
}
.category-bar-inner::-webkit-scrollbar { display: none; }

/* En pantallas estrechas dejar que se desplace horizontalmente sin centrar */
@media (max-width: 900px) {
  .category-bar-inner {
    justify-content: flex-start;
  }
}

.cat-pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1.5px solid var(--line);
  text-align: center;
  transition: all var(--t);
  scroll-snap-align: start;
  cursor: pointer;
}
.cat-pill:hover {
  transform: translateY(-4px);
  border-color: var(--blue-600);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.cat-pill.active {
  background: var(--blue-800);
  border-color: var(--blue-800);
  color: var(--white);
}
.cat-pill.active .cat-pill-name {
  color: var(--white);
}
.cat-pill-icon {
  font-size: 1.8rem;
  margin-bottom: 4px;
  transition: transform var(--t);
}
.cat-pill:hover .cat-pill-icon {
  transform: scale(1.15) rotate(-5deg);
}
.cat-pill-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* ============ 22. PRODUCTS PAGE ============ */
.page-hero {
  padding: 50px 0 40px;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--yellow-50) 100%);
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  margin-bottom: 12px;
}
.page-hero p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

.products-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 40px 0 80px;
  align-items: start;
}

/* Sidebar de filtros */
.filters-sidebar {
  position: sticky;
  top: 90px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.filters-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.filters-head h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}
.filters-clear {
  font-size: 0.85rem;
  color: var(--blue-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.filters-clear:hover { color: var(--blue-900); }
.filter-group { margin-bottom: 24px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: transparent;
  font-size: 0.92rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all var(--t);
  text-align: left;
  font-weight: 500;
}
.filter-chip:hover {
  background: var(--blue-50);
  color: var(--blue-800);
}
.filter-chip.active {
  background: var(--blue-800);
  color: var(--white);
  font-weight: 600;
}
.filter-chip .count {
  margin-left: auto;
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
}
.filter-chip.active .count {
  background: rgba(255, 255, 255, 0.2);
}

/* Filter checkboxes */
.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--ink-soft);
  user-select: none;
}
.filter-check input { display: none; }
.filter-check .checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: all var(--t);
  flex-shrink: 0;
}
.filter-check input:checked + .checkbox {
  background: var(--blue-800);
  border-color: var(--blue-800);
}
.filter-check input:checked + .checkbox::after {
  content: '✓';
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
}
.filter-check:hover .checkbox { border-color: var(--blue-600); }

/* Filter color swatches */
.filter-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-color {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2.5px solid var(--white);
  box-shadow: 0 0 0 1.5px var(--line);
  transition: all var(--t);
  position: relative;
}
.filter-color:hover { transform: scale(1.12); }
.filter-color.active { box-shadow: 0 0 0 2.5px var(--blue-800); transform: scale(1.1); }

/* Products toolbar (sort + view) */
.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.toolbar-info {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.toolbar-info strong { color: var(--blue-800); }

/* Active filter chips (top) */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.active-filters:empty { display: none; }
.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--blue-50);
  color: var(--blue-800);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}
.active-chip .x {
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
}
.active-chip .x:hover { opacity: 1; }

/* Mobile filter button */
.filter-mobile-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--blue-800);
  color: var(--white);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}
.filter-mobile-btn:hover { background: var(--blue-900); }

/* ============ 23. PRODUCT CARD WITH IMAGE ============ */
.product-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.product-card .product-img.has-image {
  background: var(--white);
}
.product-card .product-img.has-image::before {
  display: none;
}
.product-variants-hint {
  font-size: 0.78rem;
  color: var(--blue-700);
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============ 24. VARIANT MODAL ============ */
.variant-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t);
}
.variant-modal.open {
  opacity: 1;
  visibility: visible;
}
.vm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 71, 0.65);
  backdrop-filter: blur(6px);
}
.vm-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform var(--t);
  box-shadow: var(--shadow-lg);
}
.variant-modal.open .vm-content { transform: scale(1); }

.vm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  background: var(--line-soft);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
  z-index: 2;
}
.vm-close:hover { background: var(--ink); color: var(--white); }

.vm-header {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.vm-image {
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vm-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vm-brand {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.vm-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.2;
}
.vm-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Helper que indica al usuario qué hacer */
.vm-helper {
  background: var(--yellow-50, #FEF3C7);
  color: #78350F;
  border: 1.5px solid var(--yellow-300, #FDE68A);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 22px;
  text-align: center;
  transition: all var(--t);
}
.vm-helper.done {
  background: #D1FAE5;
  color: #065F46;
  border-color: #6EE7B7;
}
.vm-helper strong { font-weight: 700; }

.vm-variants {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 28px;
}
.vm-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.vm-label .req { color: var(--red); }

.vm-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vm-opt {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all var(--t);
  cursor: pointer;
}
.vm-opt:hover {
  border-color: var(--blue-600);
  color: var(--blue-700);
  transform: translateY(-1px);
}
.vm-opt.active {
  background: var(--blue-800);
  border-color: var(--blue-800);
  color: var(--white);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

/* Variantes de tipo COLOR — con swatch visible */
.vm-options-color {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.vm-opt-color {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  text-align: left;
  border-radius: 12px;
  font-size: 0.85rem;
}
.vm-opt-color .vm-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.vm-opt-color.active .vm-swatch {
  border-color: var(--white);
  box-shadow: 0 0 0 2px var(--white), inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Botón Agregar — disabled muy visible */
.vm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  position: sticky;
  bottom: -32px;
  background: var(--white);
  padding-top: 16px;
  margin: 0 -32px -32px;
  padding-left: 32px;
  padding-right: 32px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
}
.vm-add {
  flex: 1;
  max-width: 280px;
}
.vm-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--line-soft);
  color: var(--muted);
  border-color: transparent;
}
.vm-add:not(:disabled) {
  background: linear-gradient(135deg, #16A34A 0%, #059669 100%);
  border-color: transparent;
  color: var(--white);
  animation: pulse-ready 2s ease infinite;
}
@keyframes pulse-ready {
  0%, 100% { box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3); }
  50% { box-shadow: 0 8px 20px rgba(22, 163, 74, 0.5); }
}

/* ============ 25. TOAST ============ */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t);
  box-shadow: var(--shadow-lg);
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ============ 26. CART ITEM IMAGE ============ */
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.cart-item-variants {
  font-size: 0.74rem;
  color: var(--blue-700);
  margin-top: 2px;
  font-weight: 500;
}

/* ============ 27. RESPONSIVE PRODUCTS PAGE ============ */
@media (max-width: 960px) {
  .products-layout { grid-template-columns: 1fr; }
  .filters-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 90vw);
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform var(--t);
    z-index: 220;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.18);
  }
  .filters-sidebar.open { transform: translateX(0); }
  .filter-mobile-btn { display: inline-flex; }
}

@media (max-width: 720px) {
  .vm-content { padding: 24px 20px; }
  .vm-header { grid-template-columns: 80px 1fr; gap: 14px; }
  .vm-image { width: 80px; height: 80px; }
  .vm-name { font-size: 1.15rem; }
  .vm-actions { flex-direction: column-reverse; }
  .vm-actions .btn { width: 100%; }

  .cat-pill { min-width: 92px; padding: 12px 14px; }
  .cat-pill-icon { font-size: 1.5rem; }
  .cat-pill-name { font-size: 0.82rem; }
}

/* ============ 28. COLOR GUIDE SUBPAGES ============ */
.color-guide-hero {
  position: relative;
  padding: 60px 0 50px;
  background: linear-gradient(135deg, var(--blue-50) 0%, #FCE7F3 50%, var(--yellow-50) 100%);
  overflow: hidden;
  text-align: center;
}
.color-guide-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--yellow-300) 0%, transparent 70%);
  opacity: 0.5;
  filter: blur(80px);
}
.color-guide-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, #FCA5A5 0%, transparent 70%);
  opacity: 0.4;
  filter: blur(80px);
}
.color-guide-hero-inner {
  position: relative;
  z-index: 1;
}
.color-guide-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 18px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.color-guide-hero .breadcrumb a { color: var(--blue-700); font-weight: 500; }
.color-guide-hero .breadcrumb a:hover { color: var(--blue-900); }
.color-guide-hero .breadcrumb span.sep { opacity: 0.4; }

.color-guide-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.05;
}
.color-guide-hero p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.6;
}
.color-counter {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: var(--white);
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
}
.color-counter strong {
  color: var(--blue-800);
  font-size: 1.1rem;
  font-family: var(--font-display);
}

/* Sections */
.color-guide-content {
  padding: 60px 0 40px;
}
.color-section {
  margin-bottom: 50px;
}
.color-section:last-child { margin-bottom: 0; }
.color-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.color-section-title .section-count {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 4px 12px;
  border-radius: 999px;
}

/* Swatch nuevo: con código arriba y nombre debajo */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.swatch {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--t);
  border: 1.5px solid var(--line);
}
.swatch:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--swatch-color);
}
.swatch-inner {
  position: relative;
  height: 110px;
  background: var(--swatch-color);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 10px;
  overflow: hidden;
}
.swatch-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.swatch-code {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--swatch-text);
  background: rgba(255, 255, 255, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.swatch-name {
  display: block;
  padding: 12px 12px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  background: var(--white);
  line-height: 1.3;
}

/* Fluorescentes */
.fluo-section .swatch-inner {
  box-shadow: 0 0 30px var(--swatch-color), inset 0 0 20px rgba(255, 255, 255, 0.4);
}
.fluo-section .swatch-inner::after {
  content: '✨';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Metalizados */
.metal-section .swatch-inner {
  background: linear-gradient(
    135deg,
    var(--swatch-color) 0%,
    color-mix(in srgb, var(--swatch-color) 70%, white) 30%,
    var(--swatch-color) 50%,
    color-mix(in srgb, var(--swatch-color) 60%, white) 70%,
    var(--swatch-color) 100%
  );
  background-size: 200% 200%;
  animation: shimmer 4s ease infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.metal-section .swatch-inner::after {
  content: '🌟';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Botones de navegación entre páginas de colores */
.guide-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.nav-btn {
  display: flex;
  flex-direction: column;
  padding: 18px 22px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: all var(--t);
  text-align: left;
}
.nav-btn:hover {
  border-color: var(--blue-600);
  background: var(--blue-50);
  transform: translateY(-2px);
}
.nav-btn .nav-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.nav-btn .nav-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.nav-prev { text-align: left; }
.nav-next { text-align: right; }
.nav-hub {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  border-color: var(--blue-800);
  color: var(--white);
  text-align: center;
  align-items: center;
  justify-content: center;
}
.nav-hub:hover {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  transform: translateY(-2px);
}
.nav-hub .nav-label, .nav-hub .nav-name { color: var(--white); }
.nav-hub .nav-label { opacity: 0.85; }

/* Sección de productos relacionados al final */
.related-products {
  padding: 60px 0;
  background: var(--cream);
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .swatches { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
  .swatch-inner { height: 90px; }
  .swatch-code { font-size: 0.72rem; padding: 3px 8px; }
  .swatch-name { font-size: 0.76rem; padding: 10px 8px 12px; }
  .color-section-title { font-size: 1.3rem; }
  .guide-nav { grid-template-columns: 1fr; }
  .nav-prev, .nav-next { text-align: center; }
}

/* ============ 28.5 COLOR GUIDE HUB ============ */
.color-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin: 60px 0;
}
.color-hub-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform var(--t), box-shadow var(--t);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.color-hub-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}
.color-hub-icon {
  font-size: 3.5rem;
  margin-bottom: 24px;
  transition: transform var(--t);
}
.color-hub-card:hover .color-hub-icon {
  transform: scale(1.15) rotate(5deg);
}
.color-hub-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.color-hub-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}
.color-hub-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-800);
  background: var(--blue-50);
  padding: 6px 14px;
  border-radius: 999px;
}