/* ===== EBTOOLS — DESIGN SYSTEM v2 ===== */
/* Clean. Industrial. No AI slop.         */

:root {
  --orange: #F47B20;
  --orange-dark: #D4610A;
  --orange-glow: rgba(244,123,32,0.18);
  --black: #0A0A0A;
  --gray-900: #141414;
  --gray-700: #3A3A3A;
  --gray-500: #737373;
  --gray-300: #D4D4D4;
  --gray-200: #E8E8E8;
  --gray-100: #F5F5F5;
  --gray-50:  #FAFAFA;
  --white: #FFFFFF;
  --wa: #25D366;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  /* Curvas custom — los easings nativos son demasiado suaves para sentir "intentional". */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t: background-color .18s var(--ease-out), color .18s var(--ease-out), border-color .18s var(--ease-out), box-shadow .18s var(--ease-out), transform .18s var(--ease-out), opacity .18s var(--ease-out);
}

/* ─── Press feedback global ─── */
/* Todo elemento "clickable" recibe un scale sutil al apretar — feedback instantáneo. */
.btn-primary, .btn-outline, .btn-wa-product, .btn-card-wa, .btn-back,
.btn-wa-big, .btn-wa-nav, .filter-pill, .subfilter-pill, .cat-card,
.carousel-arrow, .scroll-top, .wa-float, .modal-btn-wa, .modal-btn-page,
.hero-dot, .carousel-dot, .gallery-thumb, .related-card, .contact-link,
.product-card {
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:active, .btn-outline:active, .btn-wa-product:active,
.btn-card-wa:active, .btn-back:active, .btn-wa-big:active, .btn-wa-nav:active,
.filter-pill:active, .subfilter-pill:active, .carousel-arrow:active,
.scroll-top:active, .modal-btn-wa:active, .modal-btn-page:active {
  transform: scale(0.97);
  transition: transform 90ms var(--ease-out);
}
.wa-float:active { transform: scale(0.92); transition: transform 90ms var(--ease-out); }
.gallery-thumb:active, .carousel-dot:active, .hero-dot:active { transform: scale(0.92); }

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
/* Page fade-in: every page enters smoothly, regardless of how fast the browser renders */
@keyframes eb-page-in { from { opacity: 0; } to { opacity: 1; } }
body { font-family: var(--font); background: var(--white); color: var(--black); -webkit-font-smoothing: antialiased; animation: eb-page-in 220ms ease-out both; }
/* Page fade-out on navigation (triggered by JS adding .page-leaving) */
body.page-leaving { opacity: 0 !important; animation: none !important; transition: opacity 180ms ease !important; }

/* ===== Ambient sky — nubes grises muy sutiles que derivan lentamente ===== */
/* Dos capas de blobs radiales difuminados, opacidad muy baja, moviéndose en
   direcciones distintas para dar sensación de un cielo mirado desde abajo.
   Fixed + z-index:-1 → viven detrás de todo el contenido; las secciones con
   fondo blanco se hacen transparentes para dejarlas asomar. */
.sky-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--white); }
.sky-bg::before,
.sky-bg::after {
  content: ''; position: absolute;
  top: -25vh; left: -25vw; width: 150vw; height: 150vh;
  background-repeat: no-repeat;
  will-change: transform;
}
.sky-bg::before {
  background-image:
    radial-gradient(closest-side at 18% 28%, rgba(120,130,150,0.10), transparent 72%),
    radial-gradient(closest-side at 68% 18%, rgba(120,130,150,0.075), transparent 72%),
    radial-gradient(closest-side at 44% 62%, rgba(120,130,150,0.065), transparent 72%),
    radial-gradient(closest-side at 84% 72%, rgba(120,130,150,0.085), transparent 72%);
  background-size: 55% 46%, 46% 40%, 62% 52%, 42% 38%;
  filter: blur(22px);
  animation: eb-sky-drift-a 105s ease-in-out infinite alternate;
}
.sky-bg::after {
  background-image:
    radial-gradient(closest-side at 34% 14%, rgba(110,122,145,0.06), transparent 72%),
    radial-gradient(closest-side at 80% 46%, rgba(110,122,145,0.055), transparent 72%),
    radial-gradient(closest-side at 14% 82%, rgba(110,122,145,0.06), transparent 72%);
  background-size: 52% 46%, 56% 50%, 50% 44%;
  filter: blur(30px);
  animation: eb-sky-drift-b 140s ease-in-out infinite alternate;
}
@keyframes eb-sky-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4.5vw, 2.5vh, 0) scale(1.06); }
}
@keyframes eb-sky-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.04); }
  to   { transform: translate3d(-5vw, -3vh, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .sky-bg::before, .sky-bg::after { animation: none; }
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 2px; }

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 68px;
  /* Frosted white con un halo cálido apenas perceptible detrás del logo.
     Nada de degradé saturado full-width: solo una insinuación de la marca. */
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(244,123,32,0.07), transparent 42%),
    rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--t), box-shadow 0.3s ease;
}
/* Al scrollear: sombra suave + una fina línea naranja que se desvanece a los
   costados (transparent → naranja → transparent). Cálido pero discreto. */
.navbar.scrolled { box-shadow: 0 1px 22px rgba(0,0,0,0.05); }
.navbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244,123,32,0.45) 50%, transparent);
  opacity: 0; transition: opacity 0.35s ease; pointer-events: none;
}
.navbar.scrolled::after { opacity: 1; }

.nav-logo { display: flex; align-items: center; text-decoration: none; cursor: pointer; }
.nav-logo img { height: 52px; width: auto; display: block; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu a {
  text-decoration: none; color: var(--gray-700);
  font-size: 0.875rem; font-weight: 500;
  padding: 7px 13px; border-radius: 6px;
  transition: var(--t); letter-spacing: -0.01em;
}
.nav-menu a:hover { color: var(--black); background: var(--gray-100); }

.btn-wa-nav {
  display: flex; align-items: center; gap: 7px;
  background: var(--black); color: var(--white) !important;
  padding: 8px 18px !important; border-radius: 6px !important;
  font-weight: 600 !important; font-size: 0.82rem !important;
  transition: var(--t) !important;
}
.btn-wa-nav:hover { background: var(--orange) !important; color: var(--white) !important; }
.btn-wa-nav svg { width: 15px; height: 15px; flex-shrink: 0; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; cursor: pointer; background: none; border: none; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--black); border-radius: 1px; transition: var(--t); }

/* ===================== TICKER ===================== */
.ticker-wrap {
  background: var(--black); overflow: hidden;
  padding: 10px 0; border-top: 2px solid var(--orange);
  margin-top: 68px; /* navbar height */
}
.ticker-track {
  display: flex; gap: 0; white-space: nowrap;
  will-change: transform;
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 0 28px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.ticker-item span { color: var(--orange); font-size: 0.6rem; }

/* ===================== HERO ===================== */
.hero {
  min-height: calc(100vh - 108px); /* subtract navbar + ticker */
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 72px 5% 72px;
  gap: 60px;
  position: relative;
}

/* subtle dot pattern, no gradient */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--gray-300) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero-left { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 20px; height: 1.5px;
  background: var(--orange);
}

.hero-title {
  font-size: clamp(2.6rem, 4.2vw, 4.2rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -0.04em; color: var(--black);
  margin-bottom: 20px;
}

.hero-title .accent {
  color: var(--orange);
  display: inline-block;
  min-width: 220px;
}

.hero-sub {
  font-size: 1.02rem; color: var(--gray-500);
  max-width: 440px; line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: var(--white);
  font-size: 1rem; font-weight: 700;
  padding: 15px 32px; border-radius: 7px;
  text-decoration: none; border: none; cursor: pointer;
  transition: var(--t); font-family: var(--font);
  letter-spacing: -0.01em;
  box-shadow: 0 2px 8px rgba(244,123,32,0.3);
}
.btn-primary:hover { background: var(--orange-dark); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(244,123,32,0.4); }
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--black);
  font-size: 1rem; font-weight: 600;
  padding: 14px 32px; border-radius: 7px;
  text-decoration: none; border: 1.5px solid var(--gray-300); cursor: pointer;
  transition: var(--t); font-family: var(--font);
  letter-spacing: -0.01em;
}
.btn-outline:hover { border-color: var(--black); background: var(--black); color: var(--white); }

/* Hero right — rotating product */
.hero-right { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; }

.hero-stage {
  position: relative;
  width: min(480px, 44vw); height: min(480px, 44vw);
}

.hero-product-card {
  position: absolute; inset: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  /* Reserva el alto de la label (abajo, absolute) para que la imagen centrada
     nunca quede tapada/cortada por ella. */
  padding-bottom: 58px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04), 0 0 0 1px rgba(244,123,32,0.06);
  cursor: pointer;
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .hero-product-card:hover {
    box-shadow: 0 8px 48px rgba(244,123,32,0.2), 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(244,123,32,0.2);
    transform: translateY(-2px);
  }
}

.hero-product-card img {
  width: 78%; height: 78%; object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-product-card:hover img { transform: scale(1.04); }
.hero-product-card img.img-error { display: none; }
.hero-product-card::after {
  content: 'Imagen no disponible';
  display: none;
  font-size: 0.8rem; font-weight: 600; color: var(--gray-400);
}
.hero-product-card:has(img.img-error)::after { display: block; }

.hero-product-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--gray-100);
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.hero-product-label-name { font-size: 0.8rem; font-weight: 700; color: var(--black); }
.hero-product-label-cat { font-size: 0.7rem; color: var(--orange); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* Thin measurement line details */
.hero-mark {
  position: absolute; pointer-events: none;
  border-color: var(--orange); opacity: 0.4;
}
.hero-mark--tl { top: 14px; left: 14px; width: 24px; height: 24px; border-top: 1px solid; border-left: 1px solid; }
.hero-mark--br { bottom: 14px; right: 14px; width: 24px; height: 24px; border-bottom: 1px solid; border-right: 1px solid; }

/* Progress dots */
.hero-dots {
  position: absolute; bottom: -28px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gray-300); border: none; cursor: pointer;
  transition: var(--t); padding: 0;
}
.hero-dot.active { background: var(--orange); width: 20px; border-radius: 3px; }

/* Floating stat chips */
.hero-chip {
  position: absolute; z-index: 3;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 8px; padding: 10px 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex; align-items: center; gap: 10px;
  pointer-events: none;
}
.hero-chip--a { top: 20px; left: -24px; }
.hero-chip--b { bottom: 60px; right: -20px; }

.chip-num { font-size: 1.3rem; font-weight: 900; color: var(--black); line-height: 1; letter-spacing: -0.04em; }
.chip-label { font-size: 0.68rem; color: var(--gray-500); font-weight: 500; line-height: 1.3; max-width: 60px; }
.chip-icon { width: 32px; height: 32px; background: rgba(244,123,32,0.1); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.chip-icon svg { width: 16px; height: 16px; color: var(--orange); }

/* ===================== STATS ===================== */
.stats-bar {
  background: var(--gray-900);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stat-item {
  padding: 28px 24px;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; gap: 6px;
  transition: background 0.25s ease;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(244,123,32,0.06); }
.stat-num { font-size: 2.2rem; font-weight: 900; color: var(--orange); letter-spacing: -0.05em; line-height: 1; }
.stat-num.stat-text { font-size: 1.15rem; letter-spacing: 0.01em; }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.4); font-weight: 400; line-height: 1.3; }

/* ===================== WHY SECTION ===================== */
.why-section {
  padding: 80px 5%;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.why-header { margin-bottom: 40px; }
.why-header .section-sub { max-width: 480px; }

.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--gray-100); border-radius: var(--radius);
  overflow: hidden;
}
.why-card {
  padding: 36px 28px 32px;
  border-right: 1px solid var(--gray-100);
  transition: var(--t);
  position: relative; overflow: hidden;
}
.why-card:last-child { border-right: none; }
.why-card:hover { background: rgba(244,123,32,0.015); }
/* Número de fondo tipo watermark — sorprendente pero clara su función */
.why-card::before {
  position: absolute; bottom: -12px; right: 16px;
  font-size: 6rem; font-weight: 900; line-height: 1;
  color: var(--gray-100);
  pointer-events: none; user-select: none;
  letter-spacing: -0.06em; font-family: var(--font);
  transition: color 0.35s var(--ease-out);
}
.why-card:nth-child(1)::before { content: '01'; }
.why-card:nth-child(2)::before { content: '02'; }
.why-card:nth-child(3)::before { content: '03'; }
.why-card:nth-child(4)::before { content: '04'; }
.why-card:hover::before { color: rgba(244,123,32,0.1); }

.why-card-num {
  font-size: 0.62rem; font-weight: 900;
  color: var(--orange); letter-spacing: 0.14em;
  margin-bottom: 16px; display: block;
}
.why-card-icon {
  width: 40px; height: 40px;
  background: rgba(244,123,32,0.1); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.why-card-icon svg { width: 20px; height: 20px; color: var(--orange); }
.why-card-title {
  font-size: 0.95rem; font-weight: 800; color: var(--black);
  letter-spacing: -0.025em; line-height: 1.25; margin-bottom: 10px;
}
.why-card-text {
  font-size: 0.8rem; color: var(--gray-500); line-height: 1.65;
}

/* ── Hero trust strip ─────────────────────────────────────── */
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  margin-top: 18px;
}
.hero-trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: var(--gray-500); font-weight: 500;
}
.hero-trust-item svg { width: 13px; height: 13px; color: var(--orange); flex-shrink: 0; }

/* ===================== SECTIONS ===================== */
section { padding: 112px 5%; }

.section-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.69rem; font-weight: 800; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 12px;
}
.section-tag::before { content: ''; width: 16px; height: 2px; background: var(--orange); display: block; border-radius: 1px; }

.section-title {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 900; letter-spacing: -0.04em;
  color: var(--black); line-height: 1.08;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 1rem; color: var(--gray-500);
  max-width: 480px; line-height: 1.7;
}

/* ===================== CATEGORIES ===================== */
.categories-section { background: var(--gray-50); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }

.categories-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 44px; flex-wrap: wrap; gap: 20px;
}

.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.cat-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 32px 26px;
  cursor: pointer; transition: var(--t);
  position: relative; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.cat-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.cat-card.active { border-color: rgba(244,123,32,0.4); box-shadow: 0 8px 28px rgba(0,0,0,0.08); }
@media (hover: hover) and (pointer: fine) {
  .cat-card:hover {
    border-color: rgba(244,123,32,0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.1), 0 0 0 1px rgba(244,123,32,0.1);
    background: rgba(244,123,32,0.015);
  }
}
.cat-card:hover::after, .cat-card.active::after { transform: scaleX(1); }

.cat-icon {
  width: 56px; height: 56px; background: var(--gray-100);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.4rem; transition: var(--t);
}
.cat-icon svg { width: 28px; height: 28px; }
.cat-card:hover .cat-icon, .cat-card.active .cat-icon { background: rgba(244,123,32,0.12); color: var(--orange); }

.cat-name { font-size: 1.08rem; font-weight: 800; color: var(--black); margin-bottom: 4px; letter-spacing: -0.02em; }
.cat-count { font-size: 0.85rem; color: var(--gray-500); font-weight: 500; }

/* ===================== PRODUCTS ===================== */
.products-section { background: transparent; }

.products-header { margin-bottom: 40px; }
.products-controls {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-top: 20px;
}

/* Search */
.search-wrap {
  position: relative; flex: 1; min-width: 240px; max-width: 400px;
}
.search-input {
  width: 100%; padding: 11px 16px 11px 44px;
  border: 2px solid var(--gray-200); border-radius: 8px;
  font-size: 0.9rem; font-family: var(--font);
  color: var(--black); background: var(--white);
  transition: var(--t); outline: none;
}
.search-input::placeholder { color: var(--gray-400); }
.search-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,123,32,0.12); }
.search-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--gray-500); pointer-events: none; width: 20px; height: 20px;
}

/* Filter pills */
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  flex: none;
  padding: 10px 18px; border-radius: 100px;
  border: 1.5px solid var(--gray-300); background: var(--white);
  color: var(--gray-700); font-size: 0.88rem; font-weight: 700;
  cursor: pointer; transition: var(--t); font-family: var(--font);
  white-space: nowrap; letter-spacing: -0.01em;
}
.filter-pill:hover { border-color: var(--gray-700); color: var(--black); }
.filter-pill.active { background: var(--black); border-color: var(--black); color: var(--white); }

/* Subcategory pills (2do nivel) — siempre en el DOM, max-height para no saltar el layout */
.subfilter-pills {
  display: flex; gap: 8px; flex-wrap: wrap;
  max-height: 0; overflow: hidden;
  opacity: 0;
  transition: max-height .25s ease, opacity .2s ease, margin-top .2s ease, padding-top .2s ease;
}
.subfilter-pills.visible {
  max-height: 240px;
  opacity: 1;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--gray-300);
}
.subfilter-pill {
  padding: 8px 16px; border-radius: 100px;
  border: 1.5px solid var(--gray-300); background: var(--white);
  color: var(--gray-700); font-size: 0.82rem; font-weight: 700;
  cursor: pointer; transition: var(--t); font-family: var(--font);
  white-space: nowrap; letter-spacing: -0.01em;
}
.subfilter-pill:hover { border-color: var(--orange); color: var(--orange); }
.subfilter-pill.active { background: var(--orange); border-color: var(--orange); color: var(--white); }

/* Product count */
.products-count {
  font-size: 0.78rem; color: var(--gray-500);
  margin-top: 6px; font-weight: 500;
  min-height: 1.2em; /* prevent layout shift */
}

/* Products grid — cards individuales con aire, más premium que el newspaper grid */
.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}

.product-card {
  background: var(--white); cursor: pointer;
  transition: var(--t); position: relative;
  border: 1px solid var(--gray-100);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: flex; flex-direction: column;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    background: var(--white); z-index: 2;
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: rgba(244,123,32,0.3);
    transform: translateY(-3px);
  }
  .product-card:hover .product-name { color: var(--orange); }
}

/* ─── Product image skeleton shimmer ─── */
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.product-img-wrap {
  /* position: relative required so absolute children (tags, badges, chips,
     and the skeleton ::before) are all scoped to the image area. */
  position: relative;
  aspect-ratio: 1; overflow: hidden; background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}

/* Shimmer sweep — visible while image is loading, hidden once onload fires.
   The JS markLoadedImages() helper immediately adds .img-loaded for cached
   images (before GSAP fades the card in), so return visitors never see the
   shimmer. New visitors see it only while the image is truly downloading. */
.product-img-wrap::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    90deg,
    var(--gray-100)  0%,
    var(--gray-200) 50%,
    var(--gray-100) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s linear infinite;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.product-img-wrap.img-loaded::before { opacity: 0; animation: none; }

/* Broken image (e.g. dead legacy URL): stop the shimmer and show a
   placeholder instead of leaving an invisible blank box. */
.product-img-wrap.img-error::before { opacity: 0; animation: none; }
.product-img-wrap.img-error::after {
  content: 'Imagen no disponible';
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px;
  font-size: 0.72rem; font-weight: 600; color: var(--gray-400);
}
.product-img-wrap.img-error img { display: none; }

.product-img-wrap img {
  /* z-index: 2 places img above the skeleton ::before (z-index: 1). */
  position: relative; z-index: 2;
  width: 100%; height: 100%; object-fit: contain; padding: 14px 14px 12px;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

/* ─── Skeleton cards ───
   Shown while the catalog loads from Supabase. They hold the grid's height
   (no layout shift) and mean the bundled fallback data never has to flash. */
.product-card--skeleton { cursor: default; pointer-events: none; }
.product-card--skeleton .sk-line {
  height: 12px; border-radius: 6px; margin: 0 0 10px;
  background: linear-gradient(90deg, var(--gray-100) 0%, var(--gray-200) 50%, var(--gray-100) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s linear infinite;
}
.product-card--skeleton .sk-line--title { width: 82%; height: 15px; margin-top: 2px; }
.product-card--skeleton .sk-line--text  { width: 56%; }
.product-card--skeleton .sk-line--btn   { width: 100%; height: 42px; border-radius: 8px; margin-top: 16px; }
@media (prefers-reduced-motion: reduce) {
  .product-card--skeleton .sk-line { animation: none; }
}

.product-cat-tags {
  position: absolute; top: 10px; left: 10px; right: 10px;
  z-index: 3; /* above img (z-index: 2) */
  display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none;
}
.product-cat-tag {
  background: rgba(255,255,255,0.88); border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 0.62rem; font-weight: 700; color: var(--gray-700);
  padding: 2px 7px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.05em;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.product-body {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column;
  flex: 1; /* ocupa todo el alto disponible debajo de la imagen */
  min-height: 0;
}
.product-name {
  font-size: 1rem; font-weight: 800; color: var(--black);
  margin-bottom: 6px; line-height: 1.3;
  letter-spacing: -0.02em; transition: color 0.2s;
  /* Clamp a 2 líneas para que cards con títulos largos no rompan la fila. */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: calc(1rem * 1.3 * 2);
}
.product-short {
  font-size: 0.82rem; color: var(--gray-500);
  line-height: 1.55; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1; /* empuja el botón hacia abajo */
}
.btn-card-wa { margin-top: auto; } /* baseline igual en toda la fila */
.btn-card-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 14px; border-radius: 8px;
  background: var(--orange); color: var(--white);
  font-size: 0.88rem; font-weight: 800;
  text-decoration: none; border: none; cursor: pointer;
  transition: var(--t); font-family: var(--font);
  letter-spacing: -0.01em;
  box-shadow: 0 1px 3px rgba(244,123,32,0.25);
}
.btn-card-wa:hover { background: var(--orange-dark); }
@media (hover: hover) and (pointer: fine) {
  .btn-card-wa:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(244,123,32,0.4); }
}
.btn-card-wa svg { width: 16px; height: 16px; }

.no-results {
  grid-column: 1 / -1; padding: 60px; text-align: center;
  color: var(--gray-500); font-size: 0.9rem; font-weight: 500;
}

/* Load more */
.products-footer {
  margin-top: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
#load-more-btn {
  /* Padding más generoso que btn-outline estándar — este es un CTA de descubrimiento,
     no un botón secundario. El tamaño comunica "hay más contenido aquí". */
  padding: 20px 56px;
  min-width: 240px;
  font-size: 1.05rem;
  border: 2px solid rgba(0,0,0,0.13);
  transition: border-color 180ms, background 180ms, color 180ms, transform 160ms cubic-bezier(0.23,1,0.32,1);
}
#load-more-btn svg {
  transition: transform 240ms cubic-bezier(0.23,1,0.32,1);
  flex-shrink: 0;
}
@media (hover: hover) and (pointer: fine) {
  #load-more-btn:hover svg { transform: translateY(3px); }
}

/* ===================== ABOUT ===================== */
.about-section {
  background: var(--black); color: var(--white);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}

.about-section .section-title { color: var(--white); }
.about-section .section-sub { color: rgba(255,255,255,0.45); max-width: 420px; }

.about-list { margin-top: 36px; display: flex; flex-direction: column; gap: 0; }
.about-list-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.about-list-item:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
.about-list-num { font-size: 0.68rem; font-weight: 800; color: var(--orange); font-feature-settings: 'tnum'; letter-spacing: 0.05em; padding-top: 2px; flex-shrink: 0; width: 24px; }
.about-list-title { font-size: 0.88rem; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.about-list-text { font-size: 0.78rem; color: rgba(255,255,255,0.4); line-height: 1.55; }

.about-right { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.about-stat {
  background: var(--gray-900); padding: 32px 24px;
  transition: var(--t);
}
.about-stat:hover { background: rgba(244,123,32,0.08); }
.about-stat-num { font-size: 3.6rem; font-weight: 900; color: var(--orange); letter-spacing: -0.05em; line-height: 1; margin-bottom: 8px; }
.about-stat-num.about-stat-text { font-size: 1.45rem; letter-spacing: -0.02em; }
.about-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.4); line-height: 1.4; }

/* ===================== CONTACT ===================== */
.contact-section { background: transparent; }
.contact-section .section-sub { margin-bottom: 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

.contact-cta-text { font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.08; color: var(--black); margin: 14px 0 28px; }

.contact-links { display: flex; flex-direction: column; gap: 8px; }
.contact-link {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--black);
  padding: 12px 16px; border-radius: 6px;
  border: 1px solid var(--gray-100); transition: var(--t);
}
.contact-link:hover { border-color: var(--orange); background: rgba(244,123,32,0.03); }
.contact-link-icon { width: 36px; height: 36px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-link-icon--ml { width: 52px; }
.contact-link-icon--ml img { width: 44px; height: auto; display: block; }
.contact-logo { height: 56px; width: auto; display: block; margin-bottom: 22px; }
.contact-link-label { font-size: 0.7rem; color: var(--gray-500); font-weight: 500; }
.contact-link-val { font-size: 0.85rem; font-weight: 700; color: var(--black); }

.btn-wa-big {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: var(--white);
  font-size: 1rem; font-weight: 800;
  padding: 16px 32px; border-radius: 8px;
  text-decoration: none; transition: var(--t);
  letter-spacing: -0.01em; margin-top: 28px;
}
.btn-wa-big:hover { background: #1ebe5d; }
@media (hover: hover) and (pointer: fine) {
  .btn-wa-big:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,0.35); }
}
.btn-wa-big svg { width: 20px; height: 20px; }

/* ===================== FOOTER ===================== */
footer { background: var(--gray-900); padding: 48px 5% 28px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 24px; }
.footer-logo img { height: 44px; opacity: 0.7; filter: brightness(0) invert(1); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 34px; height: 34px; border-radius: 6px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); text-decoration: none; transition: var(--t); }
.footer-social a:hover { background: var(--orange); color: var(--white); }
.footer-social svg { width: 15px; height: 15px; }
.footer-bottom { display: flex; justify-content: space-between; font-size: 0.75rem; color: rgba(255,255,255,0.25); flex-wrap: wrap; gap: 8px; }

/* ===================== SCROLL TO TOP ===================== */
.scroll-top {
  position: fixed; bottom: 24px; right: 88px; z-index: 999;
  width: 40px; height: 40px;
  background: var(--white); border: 1.5px solid var(--gray-300);
  border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, border-color 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { border-color: var(--black); color: var(--black); transform: translateY(-2px); }
.scroll-top svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ===================== FLOATING WA ===================== */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 52px; height: 52px;
  background: var(--wa); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  transition: var(--t);
}
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,0.55); }
}
.wa-float svg { width: 26px; height: 26px; color: var(--white); }
.wa-float-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa);
  animation: wa-ring 2.5s cubic-bezier(0.2, 0.8, 0.3, 1) infinite;
}
@keyframes wa-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white); border-radius: 12px;
  width: 100%; max-width: 800px;
  max-height: 90vh; overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34,1.2,0.64,1), opacity 0.25s ease;
}
.modal-overlay.open .modal { transform: none; }

.modal-img-side {
  background: var(--gray-50); border-radius: 12px 0 0 12px;
  display: flex; align-items: center; justify-content: center;
  padding: 40px; position: relative;
}
.modal-img-side img { width: 100%; height: 280px; object-fit: contain; transition: opacity 0.18s ease; }

.modal-info-side { padding: 32px; display: flex; flex-direction: column; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 32px; height: 32px; border-radius: 6px;
  background: var(--gray-100); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-700); font-size: 1.1rem; transition: var(--t);
  font-family: var(--font);
}
.modal-close:hover { background: var(--black); color: var(--white); }
.modal-tag { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.modal-name { font-size: 1.3rem; font-weight: 900; letter-spacing: -0.03em; color: var(--black); margin-bottom: 12px; line-height: 1.15; }
/* El modal es una preview. La descripción se clampea para que los botones
   siempre sean visibles — el gradiente señala que hay más contenido, y
   "Ver página completa" es el CTA natural para leer todo. */
.modal-desc {
  font-size: 0.85rem; color: var(--gray-500); line-height: 1.65;
  position: relative;
  max-height: 128px; overflow: hidden;
}
.modal-desc::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 52px;
  background: linear-gradient(to bottom, transparent, var(--white));
  pointer-events: none;
}
.modal-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.modal-btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--orange); color: var(--white);
  padding: 13px; border-radius: 7px;
  font-size: 0.9rem; font-weight: 700;
  text-decoration: none; transition: var(--t);
}
.modal-btn-wa:hover { background: var(--orange-dark); }
.modal-btn-wa svg { width: 18px; height: 18px; }
.modal-btn-page {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gray-100); color: var(--black);
  padding: 11px; border-radius: 7px;
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none; transition: var(--t);
}
.modal-btn-page:hover { background: var(--black); color: var(--white); }

/* ===================== PRODUCT PAGE ===================== */
.product-page { padding-top: 68px; }

.breadcrumb {
  padding: 14px 5%; background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--gray-500);
}
.breadcrumb a { color: var(--gray-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { color: var(--gray-300); font-size: 0.7rem; }
.breadcrumb-current { color: var(--black); font-weight: 600; }

.product-hero {
  display: grid; grid-template-columns: 54% 46%;
  gap: 0; align-items: start;
}
.product-hero-img {
  background: var(--gray-50); border-right: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  padding: 36px;
  /* Sticky: la imagen acompaña mientras el usuario lee la descripción. */
  position: sticky; top: 68px;
}
.product-hero-img img { width: 100%; max-height: 480px; object-fit: contain; }

.product-hero-info {
  padding: 60px 5% 60px 60px;
  display: flex; flex-direction: column; justify-content: flex-start;
}

.product-hero-cat { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.product-hero-name { font-size: clamp(1.9rem, 3vw, 2.9rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.08; color: var(--black); margin-bottom: 22px; }
.product-hero-desc {
  font-size: 0.97rem; color: var(--gray-500); line-height: 1.72;
  max-width: 460px; margin-bottom: 36px; white-space: pre-line;
  border-left: 3px solid rgba(244,123,32,0.35);
  padding-left: 20px;
}

.product-hero-cta {
  display: flex; flex-direction: column; gap: 10px; max-width: 320px;
}
.btn-wa-product {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--orange); color: var(--white);
  padding: 15px 28px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 800;
  text-decoration: none; transition: var(--t);
  letter-spacing: -0.01em;
}
.btn-wa-product:hover { background: var(--orange-dark); }
@media (hover: hover) and (pointer: fine) {
  .btn-wa-product:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(244,123,32,0.35); }
}
.btn-wa-product svg { width: 20px; height: 20px; }
.btn-back {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--white); color: var(--black);
  font-size: 0.95rem; font-weight: 700;
  text-decoration: none; transition: var(--t);
  padding: 14px 24px; border-radius: 8px;
  border: 1.5px solid var(--gray-300);
  letter-spacing: -0.01em;
}
.btn-back:hover {
  background: var(--black); color: var(--white);
  border-color: var(--black);
}
@media (hover: hover) and (pointer: fine) {
  .btn-back:hover {
    transform: translateX(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  }
  .btn-back:hover svg { transform: translateX(-2px); }
}
.btn-back svg { transition: transform 0.2s var(--ease-out); }

.related-section { background: var(--gray-50); border-top: 1px solid var(--gray-100); }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 36px; }
.related-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: var(--t); text-decoration: none; color: inherit; display: block; }
.related-card:hover { border-color: rgba(244,123,32,0.3); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.related-card img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 16px; background: var(--gray-50); border-bottom: 1px solid var(--gray-100); }
.related-card-body { padding: 12px 14px; }
.related-card-name { font-size: 0.82rem; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.related-card-cat { font-size: 0.7rem; color: var(--orange); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* ===================== RESPONSIVE ===================== */

/* --- Tablet ancho: 1024-1280px --- */
@media (max-width: 1280px) {
  .hero { gap: 48px; padding: 64px 5% 64px; }
  .hero-stage { width: min(420px, 42vw); height: min(420px, 42vw); }
  .hero-chip--a { left: -16px; }
  .hero-chip--b { right: -16px; }
}

/* --- Tablet: 768-1024px --- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 36px; padding: 56px 5% 56px; }
  .hero-title { font-size: clamp(2rem, 4vw, 3rem); }
  .hero-stage { width: min(360px, 42vw); height: min(360px, 42vw); }
  .hero-chip--a { left: -8px; top: 12px; }
  .hero-chip--b { right: -8px; bottom: 48px; }
  .chip-num { font-size: 1.1rem; }
  .chip-label { font-size: 0.62rem; max-width: 52px; }
  .hero-chip { padding: 8px 10px; gap: 7px; }
  .chip-icon { width: 28px; height: 28px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-card { border-bottom: 1px solid var(--gray-100); }
  .why-card:nth-child(2n) { border-right: none; }
  .why-card:nth-last-child(-n+2) { border-bottom: none; }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Tablet portrait + phablet: 600-768px --- */
@media (max-width: 768px) {
  /* Navbar: hamburger */
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column;
    padding: 10px; gap: 2px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 14px 16px; font-size: 1rem; } /* tap target ≥44px */
  .nav-toggle { display: flex; padding: 10px; }

  /* Hero: stack vertically, producto arriba */
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 5% 52px;
    gap: 36px;
    text-align: center;
    min-height: unset;
  }
  .hero-right { order: -1; }
  .hero-stage { width: 280px; height: 280px; margin: 0 auto; }
  .hero-chip { display: none; }
  .hero-dots { bottom: -22px; }
  .hero-title { font-size: clamp(2rem, 7vw, 2.8rem); }
  .hero-title .accent { min-width: 0; }
  .hero-eyebrow { justify-content: center; }
  .hero-sub { margin: 0 auto 28px; max-width: 480px; }
  .hero-btns { justify-content: center; }

  /* Why section: stay 2col, just less padding */
  .why-section { padding: 56px 5%; }
  .why-card { padding: 24px 18px; }
  /* Hero trust: hide on mobile (hero already simplified) */
  .hero-trust { display: none; }

  /* Ticker: oculto en mobile */
  .ticker-wrap { display: none; }
  /* Hero toma el espacio del ticker que ya no existe */
  .hero { margin-top: 68px; }

  /* Stats: 2 columnas, compact */
  .stats-bar { grid-template-columns: repeat(2, 1fr); }

  /* Categories: 2 col más espaciado */
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card { padding: 24px 18px; }
  .cat-icon { width: 48px; height: 48px; margin-bottom: 14px; }
  .cat-icon svg { width: 24px; height: 24px; }
  .cat-name { font-size: 1rem; }
  .cat-count { font-size: 0.8rem; }
  .categories-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .categories-header .btn-outline { display: none; } /* innecesario en mobile */

  /* Products */
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .products-controls { flex-direction: column; align-items: stretch; }
  .search-wrap { max-width: 100%; }
  .filter-pill { padding: 8px 13px; font-size: 0.8rem; }
  .subfilter-pill { padding: 7px 12px; font-size: 0.76rem; }

  /* Category chips: wrap so TODAS las categorías y subcategorías quedan
     visibles a la vez (nada de scroll horizontal que las esconda). Pills
     compactas para que la grilla se mantenga prolija. */
  .filter-pills, .subfilter-pills {
    flex-wrap: wrap;
    max-width: 100%;
  }
  .subfilter-pills.visible { max-height: none; padding-top: 12px; }
  .product-name { font-size: 0.92rem; }
  .product-short { font-size: 0.78rem; -webkit-line-clamp: 2; }
  .btn-card-wa { padding: 12px; font-size: 0.88rem; }

  /* About */
  .about-section { grid-template-columns: 1fr; gap: 40px; padding: 64px 5%; }
  .about-right { grid-template-columns: repeat(2, 1fr); }

  /* Contact */
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }

  /* Modal */
  .modal { grid-template-columns: 1fr; max-width: 100%; border-radius: 12px 12px 0 0; position: fixed; bottom: 0; left: 0; right: 0; max-height: 90vh; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-img-side { border-radius: 12px 12px 0 0; min-height: 200px; }
  .modal-img-side img { height: 180px; }
  .modal-info-side { padding: 20px; }
  .modal-close { top: 12px; right: 12px; }

  /* Related */
  .related-grid { grid-template-columns: repeat(2, 1fr); }

  /* Product page */
  .product-hero { grid-template-columns: 1fr; }
  .product-hero-img { padding: 18px 18px 0; border-right: none; border-bottom: 1px solid var(--gray-100); position: static; top: unset; }
  .product-hero-info { padding: 32px 5% 40px; }
  .product-hero-cta { max-width: 100%; }
  .carousel-slide { padding: 24px; }
  .carousel-arrow { width: 40px; height: 40px; opacity: 1 !important; pointer-events: auto !important; }
  .carousel-arrow--prev { left: 8px; }
  .carousel-arrow--next { right: 8px; }
  .gallery-thumb { width: 60px; height: 60px; }
}

/* --- Mobile puro: < 480px --- */
@media (max-width: 480px) {
  .scroll-top { display: none; } /* WA float suffices on small screens */
  section { padding: 52px 4%; }
  .hero { padding: 32px 4% 44px; gap: 28px; }
  .hero-stage { width: 240px; height: 240px; }
  .hero-title { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }
  .hero-sub { font-size: 0.92rem; }
  .btn-primary, .btn-outline { padding: 14px 22px; font-size: 0.95rem; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 22px 16px; }
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: 0.72rem; }

  .filter-pills, .subfilter-pills.visible { gap: 6px; }
  .filter-pill { padding: 9px 14px; font-size: 0.82rem; }

  .about-section { padding: 52px 4%; }
  .about-stat-num { font-size: 2.2rem; }

  .contact-section { padding: 52px 4%; }
  .contact-cta-text { font-size: 1.5rem; }
  .btn-wa-big { padding: 15px 22px; font-size: 0.95rem; width: 100%; justify-content: center; }

  footer { padding: 36px 4% 24px; }
  .footer-top { flex-direction: column; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 12px 20px; }

  .product-hero-img { padding: 12px 12px 0; min-height: unset; }
  .product-hero-info { padding: 28px 4% 36px; }
  .product-hero-name { font-size: 1.6rem; }
  .carousel-slide { padding: 18px; }
  .carousel-counter { font-size: 0.66rem; bottom: 8px; right: 8px; padding: 3px 8px; }
  .gallery-thumb { width: 56px; height: 56px; }

  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .modal-info-side { padding: 16px; }
  .modal-name { font-size: 1.1rem; }

  /* WhatsApp float más arriba para no chocar con barra de navegación mobile */
  .wa-float { bottom: 18px; right: 18px; }
}

/* ===================== PRODUCT BADGE ===================== */
.product-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 0.6rem; font-weight: 800;
  color: var(--white); letter-spacing: 0.07em;
  text-transform: uppercase; padding: 3px 9px;
  border-radius: 5px; pointer-events: none; z-index: 3; /* above img */
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.hero-product-badge {
  position: absolute; top: 14px; left: 14px;
  font-size: 0.6rem; font-weight: 800;
  color: var(--white); letter-spacing: 0.07em;
  text-transform: uppercase; padding: 4px 10px;
  border-radius: 5px; z-index: 4; line-height: 1.5;
}

/* ===================== IMAGE GALLERY / CAROUSEL ===================== */
.product-hero-img {
  flex-direction: column; gap: 0; align-items: stretch;
  padding: 24px 24px 0;
}

.carousel {
  display: flex; flex-direction: column;
  width: 100%; gap: 14px;
}
.carousel-stage {
  position: relative; overflow: hidden;
  border-radius: 14px; background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.carousel-track {
  display: flex; width: 100%;
  transition: transform 0.28s var(--ease-out);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 28px;
  background: var(--white);
}
.carousel-slide img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.carousel-slide--error { position: relative; }
.carousel-slide--error img { display: none; }
.carousel-slide--error::after {
  content: 'Imagen no disponible';
  font-size: 0.85rem; font-weight: 600; color: var(--gray-400);
}

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--black); cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: var(--t); opacity: 0; pointer-events: none;
  z-index: 2;
}
.carousel:hover .carousel-arrow,
.carousel.has-multiple .carousel-arrow:focus-visible {
  opacity: 1; pointer-events: auto;
}
.carousel.has-multiple .carousel-arrow { /* siempre visibles cuando hay >1 */
  opacity: 1; pointer-events: auto;
}
.carousel:not(.has-multiple) .carousel-arrow,
.carousel:not(.has-multiple) .carousel-dots,
.carousel:not(.has-multiple) .gallery-thumbs,
.carousel:not(.has-multiple) .carousel-counter {
  display: none !important;
}
.carousel-arrow:hover {
  background: var(--orange); color: var(--white);
  border-color: var(--orange);
}
@media (hover: hover) and (pointer: fine) {
  .carousel-arrow:hover { transform: translateY(-50%) scale(1.06); }
}
.carousel-arrow:active { transform: translateY(-50%) scale(0.94) !important; }
.carousel-arrow--prev { left: 14px; }
.carousel-arrow--next { right: 14px; }

.carousel-counter {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(15,15,15,0.78); color: var(--white);
  font-size: 0.7rem; font-weight: 700;
  padding: 4px 10px; border-radius: 100px;
  letter-spacing: 0.05em;
  pointer-events: none; z-index: 2;
}

.carousel-dots {
  display: flex; justify-content: center; gap: 6px;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gray-300); border: none; cursor: pointer;
  transition: var(--t); padding: 0;
}
.carousel-dot:hover { background: var(--gray-500); }
.carousel-dot.active {
  background: var(--orange); width: 24px; border-radius: 4px;
}

.gallery-thumbs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: thin; scrollbar-color: var(--gray-300) transparent;
}
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 2px; }
.gallery-thumbs:empty { display: none; }

.gallery-thumb {
  flex-shrink: 0; width: 68px; height: 68px;
  border: 2px solid var(--gray-200); border-radius: 8px;
  background: var(--white); padding: 4px; cursor: pointer;
  transition: var(--t);
  overflow: hidden;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-thumb.active { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,123,32,0.18); transform: translateY(-1px); }
.gallery-thumb:hover:not(.active) { border-color: var(--gray-500); }

/* ===================== VIDEOS SECTION ===================== */
.videos-section {
  padding: 56px 5%; background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}
.videos-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 8px;
}

/* Thumbnail clickeable: poster del video con play overlay encima.
   El embed real se carga al apretar (lazy). */
.video-thumb {
  position: relative;
  display: block; width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--gray-900);
  border: none; padding: 0; margin: 0;
  border-radius: 12px; overflow: hidden;
  cursor: pointer; text-decoration: none; color: inherit;
  font-family: inherit;
  transition: var(--t);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
@media (hover: hover) and (pointer: fine) {
  .video-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  }
}

.video-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .video-thumb:hover .video-poster { transform: scale(1.06); }
}

/* Velo oscuro suave para que el botón de play resalte sobre cualquier poster */
.video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 100%);
  pointer-events: none; transition: opacity 0.2s var(--ease-out);
}
.video-thumb:hover .video-overlay { opacity: 0.7; }

.video-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.96);
  color: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.25s var(--ease-out), background 0.2s var(--ease-out), color 0.2s var(--ease-out);
  pointer-events: none;
}
.video-play svg { margin-left: 4px; } /* triángulo se ve más centrado con offset */
@media (hover: hover) and (pointer: fine) {
  .video-thumb:hover .video-play {
    background: var(--orange); color: var(--white);
    transform: translate(-50%, -50%) scale(1.08);
  }
}
.video-thumb:active .video-play {
  transform: translate(-50%, -50%) scale(0.94);
}

.video-badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,0.78); color: var(--white);
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 5px 10px; border-radius: 5px; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.video-badge svg { color: #FF0000; }

/* Variante video externo (no YouTube): fondo claro con play centrado */
.video-thumb--ext {
  background: var(--white);
  border: 1.5px dashed var(--gray-300);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  text-align: center;
}
.video-thumb--ext .video-play {
  position: static; transform: none;
  background: var(--orange); color: var(--white);
}
.video-thumb--ext .video-ext-label-title {
  display: block; font-size: 1rem; font-weight: 800;
  color: var(--black); letter-spacing: -0.01em;
}
.video-thumb--ext .video-ext-label-sub {
  display: block; font-size: 0.78rem; color: var(--gray-500);
  margin-top: 2px;
}
.video-thumb--ext:hover { border-color: var(--orange); border-style: solid; }
@media (hover: hover) and (pointer: fine) {
  .video-thumb--ext:hover .video-play { transform: scale(1.08); }
}

/* Embed real (post-click) */
.video-embed-wrap {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 12px; overflow: hidden; background: var(--black);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}
.video-embed-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* ===================== CAROUSEL VIDEO SLIDES ===================== */
/* YouTube slide: poster + play overlay, click → iframe */
.carousel-slide--yt {
  position: relative; cursor: pointer; background: var(--black); padding: 0 !important;
  overflow: hidden;
}
.carousel-slide--yt img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.8;
  transition: opacity 200ms ease, transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .carousel-slide--yt:hover img { opacity: 0.65; transform: scale(1.03); }
  .carousel-slide--yt:hover .slide-play-btn { transform: translate(-50%,-50%) scale(1.1); }
}
.slide-play-overlay {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.slide-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  transition: transform 180ms var(--ease-out), background 150ms;
  pointer-events: none;
}
.slide-play-btn svg { margin-left: 4px; color: var(--black); }
.slide-yt-badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(4px);
  color: #fff; font-size: 0.67rem; font-weight: 700;
  letter-spacing: 0.04em; padding: 4px 8px; border-radius: 4px;
  pointer-events: none;
}
.slide-yt-badge svg { color: #FF0000; }
/* Iframe once user clicks play */
.carousel-slide--yt.playing { padding: 0 !important; }
.carousel-slide--yt.playing iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
/* Direct video file slide */
.carousel-slide--vid {
  padding: 0 !important; background: var(--black); overflow: hidden;
  position: relative; cursor: pointer;
}
.carousel-slide--vid.playing { cursor: default; }
.carousel-slide--vid video {
  width: 100%; height: 100%; max-height: 100%; object-fit: contain;
  display: block;
}
@media (hover: hover) and (pointer: fine) {
  .carousel-slide--vid:not(.playing):hover .slide-play-btn { transform: translate(-50%,-50%) scale(1.1); }
}
/* Thumbnail with play indicator */
.gallery-thumb--yt,
.gallery-thumb--vid {
  position: relative; background: var(--black);
}
.gallery-thumb--yt img { object-fit: cover; opacity: 0.8; }
.gallery-thumb--vid { display: flex; align-items: center; justify-content: center; }
.thumb-play-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.35); border-radius: 6px;
  pointer-events: none;
}
.thumb-play-icon svg { color: #fff; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5)); }

/* ===================== BACK BUTTON (mobile) ===================== */
@media (max-width: 600px) {
  .btn-back {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
  }
  .search-wrap { max-width: 100%; }
  .videos-grid { grid-template-columns: 1fr; }
  .gallery-thumb { width: 64px; height: 64px; }
}

/* ===================== RELATED GRID (more columns) ===================== */
.related-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .related-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===================== PREFERS REDUCED MOTION ===================== */
/* Sin movimiento de posición/escala para gente con sensibilidad al movimiento. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .wa-float-pulse { display: none; }
  .ticker-track { animation: none !important; }
}

/* ===================== SITE BANNER ===================== */
/* Sits between the ticker and the hero in normal document flow.
   No z-index wars with the fixed navbar — it just pushes content down. */
.site-banner {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 52px 12px 16px;
  background: var(--orange); color: var(--white);
  font-size: 0.85rem; font-weight: 600;
  text-align: center; line-height: 1.4;
  letter-spacing: -0.01em;
  overflow: hidden; /* required for height-collapse dismiss animation */
}
.site-banner-text { flex: 1; text-align: center; }
.site-banner-close {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  padding: 5px 8px; border-radius: 5px;
  transition: color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.site-banner-close:hover { color: var(--white); background: rgba(0,0,0,0.18); }
.site-banner-close:active { transform: translateY(-50%) scale(0.85); }

/* ===================== AVAILABILITY ===================== */
/* Chip at bottom of product card image — only rendered for out_of_stock / on_request. */
.avail-chip {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 5px 10px;
  font-size: 0.68rem; font-weight: 800;
  text-align: center; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--white); pointer-events: none; z-index: 3; /* above img */
}
.avail-chip--out_of_stock { background: rgba(239,68,68,0.88); }
.avail-chip--on_request   { background: rgba(245,158,11,0.9);  }

/* Dot + label in the product modal */
.modal-avail {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; margin-bottom: 4px;
}
.avail-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
