/* ================================================================
   HDV STORE — Design System
   Brand: navy #1a2a6e · accent #2563eb
   Display: Bricolage Grotesque · Body: Archivo
================================================================ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --font-display: 'Bricolage Grotesque', system-ui, Arial, sans-serif;
  --font-body:    Archivo, system-ui, Arial, sans-serif;
  --ink:          #111827;
  --ink-mid:      #374151;
  --muted:        #6b7280;
  --line:         #dde5f0;
  --surface:      #ffffff;
  --surface-2:    #f4f8fd;
  --bg:           #edf2f9;
  --hero:         #0a1020;
  --hero-2:       #111830;
  --brand:        #2563eb;
  --brand-dark:   #1d4ed8;
  --brand-dim:    #1e3a8a;
  --brand-pale:   #dbeafe;
  --orange:       #f97316;
  --danger:       #ef4444;
  --shadow-xs:    0 1px 2px rgba(0,0,0,.06);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.08);
  --shadow-md:    0 8px 24px rgba(0,0,0,.10);
  --shadow-lg:    0 20px 56px rgba(0,0,0,.14);
  --r:            10px;
  --r-sm:         6px;
  --r-xs:         4px;
  --r-pill:       999px;
  --t:            160ms ease;
  /* z-index scale */
  --z-dropdown:   100;
  --z-sticky:     200;
  --z-mobile-nav: 190;
  --z-drawer:     400;
  --z-modal:      500;
  /* layout */
  --header-h:     68px;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; text-wrap: balance; }
/* Display font for major headings — UI context h3s inherit body font */
h1, h2 { font-family: var(--font-display); font-optical-sizing: auto; }
/* Keep body font for card/UI-context headings */
.product-card h3,
.how-card h3,
.hl-card h3,
.testi-card h3,
.pd-title { font-family: var(--font-body); }
p { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ── LAYOUT ──────────────────────────────────────────────────── */
.wrap {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.section { padding-block: 72px; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding-inline: 22px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
  transition: filter var(--t), background var(--t), color var(--t), border-color var(--t);
}
.btn-green  { background: var(--brand); color: #fff; }
.btn-green:hover { filter: brightness(.9); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-pale); }
.btn-ghost-dark { background: transparent; color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.18); }
.btn-ghost-dark:hover { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-lg { min-height: 56px; padding-inline: 32px; font-size: 1rem; }

/* ── HEADER ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: linear-gradient(180deg, #fff 0%, #f3f7ff 100%);
  border-top: 3px solid var(--brand);
  border-bottom: 1px solid rgba(37,99,235,.12);
  box-shadow: 0 2px 16px rgba(37,99,235,.09), 0 1px 4px rgba(0,0,0,.04);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-block: 11px;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* Brand */
.brand {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; margin-right: 4px;
  text-decoration: none;
}
.brand img {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  object-fit: contain; padding: 5px;
  background: var(--brand);
  border: none;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
.brand-text strong { display: block; font-size: .94rem; font-weight: 800; font-family: var(--font-display); color: var(--brand-dim); line-height: 1.2; letter-spacing: -.01em; }
.brand-text small  { font-size: .71rem; color: var(--muted); letter-spacing: .02em; }

/* Main nav links */
.main-nav {
  display: flex; align-items: center; gap: 2px;
  flex-shrink: 0;
}
.main-nav > a {
  padding: 6px 11px;
  border-radius: var(--r-sm);
  font-size: .84rem; font-weight: 600;
  color: var(--muted);
  transition: color var(--t), background var(--t);
}
.main-nav > a:hover { color: var(--ink); background: var(--surface-2); }

/* Category dropdown */
.cat-menu  { position: relative; }
.cat-trigger {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
  font-size: .84rem; font-weight: 700;
  transition: all var(--t);
}
.cat-trigger svg { flex-shrink: 0; transition: transform var(--t); }
.cat-trigger[aria-expanded="true"] {
  border-color: var(--brand); background: var(--brand-pale); color: var(--brand-dark);
}
.cat-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.cat-panel {
  position: absolute;
  top: calc(100% + 8px); left: 0;
  width: 300px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-6px) scale(.98);
  pointer-events: none;
  transition: opacity var(--t), transform var(--t);
  z-index: var(--z-dropdown);
}
.cat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.cat-panel a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 11px;
  border-radius: var(--r-xs);
  font-size: .82rem; font-weight: 600; color: var(--ink);
  transition: background var(--t), color var(--t);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cat-panel a:hover { background: var(--brand-pale); color: var(--brand-dark); }
.cat-panel a .cnt {
  flex-shrink: 0;
  background: var(--surface-2); color: var(--muted);
  border-radius: var(--r-pill);
  font-size: .68rem; font-weight: 700;
  padding: 1px 6px; margin-left: 6px;
}
.cat-panel a:hover .cnt { background: rgba(37,99,235,.15); color: var(--brand-dark); }

/* Topbar right */
.topbar-end { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }

.header-search { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 10px; pointer-events: none; color: var(--muted); }
.header-search input {
  width: clamp(150px, 16vw, 250px); height: 38px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--ink);
  font-size: .84rem; outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.header-search input:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.header-search input::placeholder { color: var(--muted); }

/* ── PROMO BANNER ────────────────────────────────────────────── */
.promo-banner {
  position: relative;
  height: 56px;
  overflow: hidden;
}
.pb-slides {
  display: flex;
  height: 100%;
  transition: transform 700ms cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.pb-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-inline: 24px;
}
/* Promo banner: unified brand palette — no more competing color schemes */
.pb-s1 { background: linear-gradient(90deg, #060c1e 0%, #0f1d4f 55%, #1a3478 100%); }
.pb-s2 { background: linear-gradient(90deg, #060c1e 0%, #12265e 50%, #1e3a8a 100%); }
.pb-s3 { background: linear-gradient(90deg, #070d22 0%, #0f1f54 45%, #1d3580 100%); }
.pb-tag {
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .1em;
  color: #fbbf24;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.pb-text {
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pb-btn {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.pb-btn:hover { background: rgba(255,255,255,.26); border-color: rgba(255,255,255,.55); }
@media (max-width: 600px) {
  .pb-text { display: none; }
  .pb-slide { gap: 12px; }
}

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  background: var(--hero);
  position: relative; overflow: hidden;
}
/* Animated glow orbs */
.hero::before {
  content: "";
  position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.22) 0%, transparent 68%);
  top: -280px; right: 15%;
  animation: hero-glow 11s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.18) 0%, transparent 70%);
  bottom: -160px; left: 5%;
  animation: hero-glow 14s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}
@keyframes hero-glow {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(55px, 35px) scale(1.18); }
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 400px;
  align-items: center; gap: 44px;
  padding-block: clamp(48px, 6vw, 80px);
  max-width: 1280px; margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
/* Logo como fondo traslúcido del hero */
.hero-text {
  position: relative;
}
.hero-text::before {
  content: "";
  position: absolute;
  inset: -20px -40px -20px -60px;
  background: url("logo-hdv-store.png.png") center / contain no-repeat;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
  filter: brightness(0) invert(1);
}
.hero-text > * { position: relative; z-index: 1; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(37,99,235,.3);
  border-radius: var(--r-pill);
  background: rgba(37,99,235,.1);
  color: var(--brand);
  font-size: .72rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: tag-blink 2s ease-in-out infinite; }
@keyframes tag-blink { 0%,100%{opacity:1} 50%{opacity:.35} }
.hero h1 {
  font-size: clamp(2.8rem, 5.8vw, 6rem);
  font-weight: 800; color: #fff;
  line-height: 1.0; letter-spacing: -.04em;
  margin-bottom: 22px;
}
.hero h1 .hi { color: var(--brand); }
.hero-sub {
  color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.5vw, 1.12rem);
  max-width: 500px; line-height: 1.72; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── HERO CAROUSEL ────────────────────────────────────────────── */
.hero-carousel {
  position: relative; z-index: 1;
  border-radius: 18px; overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(37,99,235,.12);
  height: 420px;
}
/* Track ocupa todo el carousel menos la barra de footer (50px) */
.hc-track {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 50px;
  display: flex;
  /* sin overflow:hidden — el carousel padre ya recorta */
  transition: transform 520ms cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.hc-slide {
  flex: 0 0 100%;
  height: 100%; position: relative;
  /* Fondo claro para que mix-blend-mode:multiply elimine el blanco de los JPGs.
     El blanco del producto → toma este color; los colores del producto se conservan */
  background: #d6e6f8;
}
.hc-link {
  display: block; width: 100%; height: 100%;
  text-decoration: none; position: relative;
}
.hc-link img {
  width: 100%; height: 100%;
  object-fit: contain; padding: 20px;
  mix-blend-mode: multiply;
  background: transparent;
}
.hc-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 18px 16px;
  background: linear-gradient(0deg, rgba(6,11,24,.97) 0%, rgba(6,11,24,.7) 55%, transparent 100%);
}
.hc-cat {
  display: block;
  font-size: .63rem; font-weight: 900; color: var(--brand);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 5px;
}
.hc-name {
  font-size: .94rem; font-weight: 700; color: #fff;
  line-height: 1.3; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hc-cta {
  font-size: .72rem; font-weight: 700;
  color: rgba(255,255,255,.72); letter-spacing: .03em;
}
/* Footer anclado al fondo */
.hc-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: 14px;
  background: rgba(6,11,24,.88);
  border-top: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
}
.hc-dots { display: flex; gap: 5px; align-items: center; }
.hc-dot {
  width: 22px; height: 6px; border-radius: 3px;
  /* Use clip-path to simulate width expansion without animating layout */
  clip-path: circle(3px at 3px center);
  background: rgba(255,255,255,.2); border: 0; padding: 0;
  cursor: pointer; flex-shrink: 0;
  transition: background var(--t), clip-path 280ms cubic-bezier(.4,0,.2,1);
}
.hc-dot.active {
  clip-path: inset(0 0 0 0 round 3px);
  background: var(--brand);
}
.hc-nav { display: flex; gap: 6px; }
.hc-btn {
  width: 34px; height: 34px; border-radius: var(--r-xs);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--t);
}
.hc-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── HERO TICKER ──────────────────────────────────────────────── */
.hero-ticker {
  position: relative; z-index: 1;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
  padding-block: 11px;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex; gap: 0;
  animation: ticker-scroll 38s linear infinite;
}
.ticker-track span {
  padding-inline: 22px;
  font-size: .76rem; font-weight: 700;
  color: rgba(255,255,255,.38); letter-spacing: .04em;
  border-right: 1px solid rgba(255,255,255,.08);
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── BRANDS TICKER ───────────────────────────────────────────── */
.brands-ticker {
  overflow: hidden; white-space: nowrap;
  background: #eff6ff;
  border-top: 1px solid #bfdbfe;
  border-bottom: 1px solid #bfdbfe;
  padding-block: 13px;
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.brands-track {
  display: inline-flex; gap: 0;
  width: max-content;
  animation: marquee var(--marquee-duration, 45s) linear infinite;
}
.brands-track.reverse {
  animation-direction: reverse;
}
.brands-ticker:hover .brands-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .brands-track { animation: none; }
}
.brands-track span {
  padding-inline: 20px;
  font-size: .78rem; font-weight: 700;
  color: var(--brand-dim);
  border-right: 1px solid #bfdbfe;
  letter-spacing: .02em;
  transition: color var(--t);
}
.brands-track span:hover { color: var(--brand); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ── CATEGORY SECTION ────────────────────────────────────────── */
.cat-section { background: var(--bg); }
.products-section { background: var(--surface); }
.section-head .btn-outline {
  background: var(--brand-pale);
  border-color: rgba(37,99,235,.22);
  color: var(--brand-dark);
}
.section-head .btn-outline:hover {
  background: rgba(37,99,235,.18);
  border-color: rgba(37,99,235,.38);
  color: var(--brand-dim);
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 32px; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 800; letter-spacing: -.03em; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 20px 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  cursor: pointer;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  text-align: center;
}
.cat-card:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 32px rgba(37,99,235,.18);
  transform: translateY(-5px);
}
.cat-card .cc-em {
  font-size: 1.9rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--brand-pale);
  transition: background var(--t), transform var(--t);
}
.cat-card:hover .cc-em { background: rgba(37,99,235,.18); transform: scale(1.08); }
.cat-card .cc-nm { font-size: .82rem; font-weight: 800; color: var(--ink); line-height: 1.25; }

/* ── ABOUT (QUIÉNES SOMOS) ───────────────────────────────────── */
.about-section { background: var(--surface); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.about-text h2 {
  font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 800;
  margin-bottom: 16px; line-height: 1.1; letter-spacing: -.03em;
}
.about-text p { color: var(--muted); line-height: 1.75; margin-bottom: 14px; }
.about-text .btn { margin-top: 12px; }
.hl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hl-card {
  padding: 18px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r);
}
.hl-icon { font-size: 1.4rem; margin-bottom: 8px; display: block; }
.hl-card h3 { font-size: .88rem; font-weight: 800; margin-bottom: 4px; }
.hl-card p  { font-size: .8rem; color: var(--muted); line-height: 1.55; }

/* ── EMPRENDIMIENTOS HDV ─────────────────────────────────────── */
.ventures-row {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.ventures-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.ventures-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.venture-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex: 1 1 240px;
  max-width: 300px;
  padding: 16px 20px;
  border-radius: var(--r);
  border: 1.5px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.venture-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}
.venture-logo {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0a1020;
}
.venture-logo--hojas { background: #234d35; }
.venture-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.venture-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.venture-name {
  font-size: .95rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.venture-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--brand);
}
.venture-cta svg {
  flex-shrink: 0;
  stroke-width: 2;
}
@media (max-width: 520px) {
  .venture-card { max-width: 100%; }
}

/* ── HOW IT WORKS ────────────────────────────────────────────── */
.how-section { background: var(--hero); }
.how-section .section-head h2 { color: #fff; }
.how-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.how-card {
  padding: 26px 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r);
  transition: border-color var(--t), background var(--t);
}
.how-card:hover {
  border-color: rgba(37,99,235,.35);
  background: rgba(37,99,235,.04);
}
/* Step indicator — redesigned as a circle chip so it reads "designed" not "scaffolded" */
.how-n {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(37,99,235,.45);
  background: rgba(37,99,235,.12);
  font-size: .88rem; font-weight: 800;
  font-family: var(--font-body);
  color: var(--brand);
  line-height: 1;
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.how-card h3 { color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.how-card p  { color: #9ca3af; font-size: .83rem; line-height: 1.65; }

/* ── PRODUCTS ─────────────────────────────────────────────────── */
.products-section { background: var(--bg); }
.cat-tabs-wrap {
  overflow-x: auto; scrollbar-width: none;
  margin-bottom: 24px; padding-bottom: 2px;
  /* Fade hint at right edge signals horizontal scroll on mobile */
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to right, black calc(100% - 40px), transparent 100%);
}
.cat-tabs-wrap::-webkit-scrollbar { display: none; }
.cat-tabs { display: flex; gap: 6px; min-width: max-content; }
.cat-tabs button {
  height: 34px; padding-inline: 14px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); color: var(--muted);
  font-size: .8rem; font-weight: 700;
  transition: all var(--t);
}
.cat-tabs button:hover   { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-pale); }
.cat-tabs button.active  { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Sub-filtros por marca / tipo */
.subcat-bar {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.subcat-bar[hidden] { display: none; }
.subcat-btn {
  height: 30px; padding-inline: 13px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--bg); color: var(--muted);
  font-size: .75rem; font-weight: 700;
  white-space: nowrap;
  transition: all var(--t); cursor: pointer;
}
.subcat-btn:hover  { border-color: var(--brand); color: var(--brand); background: var(--brand-pale); }
.subcat-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.product-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.product-card:hover {
  box-shadow: 0 20px 52px rgba(37,99,235,.16), 0 4px 12px rgba(0,0,0,.10);
  transform: translateY(-6px);
  border-color: rgba(37,99,235,.5);
}
.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; }

/* Product image — mix-blend-mode removes white bg from product JPGs */
.product-media {
  position: relative;
  background: #dce8fb;        /* blue-tinted — makes products float */
  aspect-ratio: 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
/* Watermark HDV Store */
.product-media::after {
  content: "";
  position: absolute;
  bottom: 8px; right: 8px;
  width: 54px; height: 22px;
  background: url("logo-hdv-store.png.png") center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
  filter: brightness(0) invert(0);   /* dark watermark on blue bg */
}
.product-media img {
  width: 100%; height: 100%; object-fit: contain; padding: 8px;
  mix-blend-mode: multiply;           /* eliminates white backgrounds on product JPGs */
  transition: transform 300ms ease;
}
.product-card:hover .product-media img { transform: scale(1.04); }
.product-badge {
  position: absolute; top: 9px; left: 9px;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--brand); color: #fff;
  font-size: .66rem; font-weight: 900; letter-spacing: .03em;
  z-index: 1;
  mix-blend-mode: normal;             /* badge stays crisp over blue bg */
}
.badge-outlet { background: var(--orange); }
.badge-nuevo  { background: #16a34a; }

.product-body { padding: 12px 14px 8px; flex: 1; }
.product-cat {
  display: block; font-size: .68rem; font-weight: 800;
  color: var(--brand); text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 5px;
}
.product-card h3 {
  font-size: .88rem; font-weight: 700; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Card footer — always visible action label */
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px 11px;
  border-top: 1px solid var(--line);
  font-size: .75rem; font-weight: 700;
  color: var(--muted);
  transition: color var(--t), border-color var(--t);
}
.card-footer svg { flex-shrink: 0; transition: transform var(--t); }
.card-price-tag {
  font-size: .66rem; font-weight: 500;
  color: var(--muted); opacity: .78;
  letter-spacing: .01em;
}
.card-cta-label {
  display: flex; align-items: center; gap: 4px;
  font-size: .75rem; font-weight: 700;
}
.product-card:hover .card-footer {
  color: var(--brand);
  border-color: rgba(37,99,235,.15);
}
.product-card:hover .card-price-tag { opacity: .6; }
.product-card:hover .card-footer svg { transform: translateX(3px); }

/* ── PRODUCT GRID META HEADING ───────────────────────────────── */
.prod-grid-meta {
  font-size: .8rem; font-weight: 600;
  color: var(--muted);
  margin: 0 0 14px;
  min-height: 1.2em;
}
.prod-grid-meta span {
  display: inline-block;
  background: var(--brand-pale);
  color: var(--brand);
  padding: 1px 9px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
}
.grid-empty {
  grid-column: 1/-1; padding: 52px;
  text-align: center; color: var(--muted); font-size: .9rem;
  border: 2px dashed var(--line); border-radius: var(--r);
}

/* ── PAGINACIÓN ───────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 36px;
  padding-bottom: 8px;
}
.pagination:empty { display: none; }
.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding-inline: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
  user-select: none;
}
.pg-btn:hover:not(:disabled):not(.active) {
  background: var(--surface-2, #1e2a42);
  border-color: var(--brand);
  color: var(--brand);
}
.pg-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 700;
  pointer-events: none;
}
.pg-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.pg-dots {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding-inline: 4px;
  color: var(--muted);
  font-size: .85rem;
  user-select: none;
}
.pg-info {
  width: 100%;
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  margin-top: 4px;
}
@media (max-width: 480px) {
  .pg-btn { min-width: 32px; height: 32px; font-size: .8rem; }
}

/* ── STOCK SHOWCASE / BENTO GALLERY ──────────────────────────── */
.bento-section { background: var(--bg); }

.stock-showcase {
  background:
    linear-gradient(180deg, rgba(239,246,255,.92) 0%, #fff 100%);
  border-top: 1px solid rgba(37,99,235,.08);
  border-bottom: 1px solid rgba(37,99,235,.08);
}

.stock-showcase-head {
  align-items: flex-end;
  gap: 20px;
}

.stock-showcase-head .stock-badge-live {
  margin-bottom: 12px;
}

.stock-showcase-head .btn {
  flex-shrink: 0;
}

.stock-bento-grid {
  margin-top: 30px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}

/* Size variants */
.bento-item.bento-lg   { grid-column: span 2; grid-row: span 2; }
.bento-item.bento-tall { grid-column: span 1; grid-row: span 2; }
.bento-item.bento-wide { grid-column: span 2; grid-row: span 1; }

/* Base card */
.bento-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);

  /* stagger entrance — starts invisible */
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition:
    opacity 480ms cubic-bezier(.16,1,.3,1),
    transform 480ms cubic-bezier(.16,1,.3,1),
    box-shadow 280ms ease;
}
.bento-item.bento-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.bento-item:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  z-index: 2;
}
.bento-item:hover .bento-img {
  transform: scale(1.06);
}
.bento-item:active { transform: scale(.98); }

.bento-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 600ms cubic-bezier(.16,1,.3,1);
  mix-blend-mode: multiply;
  background: #dce8fb;
}
.bento-item-wa .bento-img {
  mix-blend-mode: normal;
}

/* Overlay */
.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,16,32,.80) 0%,
    rgba(10,16,32,.30) 45%,
    transparent 75%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  gap: 4px;
}
.bento-overlay-dark {
  background: linear-gradient(
    to right,
    rgba(5,12,29,.88) 0%,
    rgba(5,12,29,.55) 50%,
    transparent 100%
  );
  justify-content: center;
}
.bento-cat-tag {
  display: inline-block;
  font-size: .82rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .01em;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.bento-tag-wa {
  font-size: .9rem;
  color: #4ade80;
}
.bento-sub {
  font-size: .72rem;
  color: rgba(255,255,255,.68);
  margin: 0;
  line-height: 1.4;
}

/* expand icon on lg card */
.bento-item.bento-lg .bento-overlay::after {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.5'%3E%3Cpath d='M10 2h4v4M6 14H2v-4M14 2l-5 5M2 14l5-5'/%3E%3C/svg%3E") center/16px no-repeat;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2);
  opacity: 0;
  transition: opacity 200ms ease;
}
.bento-item.bento-lg:hover .bento-overlay::after { opacity: 1; }

/* Responsive */
@media (max-width: 900px) {
  .stock-showcase-head { align-items: flex-start; }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .bento-item.bento-lg   { grid-column: span 2; grid-row: span 2; }
  .bento-item.bento-tall { grid-column: span 1; grid-row: span 2; }
  .bento-item.bento-wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .stock-showcase-head .btn { width: 100%; justify-content: center; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 8px; }
  .bento-item.bento-tall { grid-row: span 1; }
  .bento-item.bento-lg   { grid-column: span 2; grid-row: span 1; }
  .bento-item.bento-wide { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  .bento-item { opacity: 1; transform: none; transition: none; }
  .bento-img  { transition: none; }
}

/* ── TESTIMONIALS HOME ───────────────────────────────────────── */
.testi-home-section {
  background: var(--hero);
  padding-block: 80px 90px;
}
.testi-home-section .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.testi-home-section .section-head h2 {
  color: #fff;
  margin-bottom: 6px;
}
.thi-sub {
  font-size: .9rem;
  color: rgba(255,255,255,.5);
  margin: 0;
}
.btn-thi-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r);
  padding: 10px 20px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t);
  white-space: nowrap;
}
.btn-thi-outline:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.38);
  color: #fff;
}
.thi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.thi-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background var(--t), border-color var(--t);
}
.thi-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(37,99,235,.38);
}
.thi-header {
  display: flex;
  align-items: center;
  gap: 11px;
}
.thi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  letter-spacing: .04em;
}
.thi-info { flex: 1; min-width: 0; }
.thi-name {
  display: block;
  font-size: .86rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.thi-meta {
  display: block;
  font-size: .7rem;
  color: rgba(255,255,255,.42);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thi-stars {
  color: #fbbf24;
  font-size: .82rem;
  letter-spacing: -.5px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}
.thi-quote {
  font-size: .86rem;
  line-height: 1.68;
  color: rgba(255,255,255,.68);
  font-style: normal;
  quotes: none;
  margin: 0;
  flex: 1;
}

@media (max-width: 860px) {
  .thi-grid { grid-template-columns: 1fr 1fr; }
  .thi-card:last-child { display: none; }
}
@media (max-width: 560px) {
  .testi-home-section .section-head { flex-direction: column; align-items: flex-start; }
  .thi-grid { grid-template-columns: 1fr; }
  .thi-card:last-child { display: flex; }
  .thi-card:nth-child(2) { display: flex; }
}

/* ── CTA SECTION ─────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(160deg, #050c1d 0%, #1d4ed8 100%);
  padding-block: 100px;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,.18) 0%, transparent 65%);
  right: -160px; top: -220px;
  pointer-events: none;
}
.cta-section::after {
  content: "";
  position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.20) 0%, transparent 68%);
  left: 5%; bottom: -160px;
  pointer-events: none;
}
.cta-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 28px;
  max-width: 760px; margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  color: #fff; font-weight: 800; margin-bottom: 0;
  letter-spacing: -.04em; line-height: 1.08;
}
.cta-section p  { color: rgba(255,255,255,.76); font-size: clamp(1rem, 1.5vw, 1.12rem); max-width: 520px; }
.cta-section .btn-green {
  background: #fff; color: var(--brand-dark); flex-shrink: 0;
  min-height: 60px; padding-inline: 44px; font-size: 1.05rem;
  box-shadow: 0 6px 32px rgba(0,0,0,.32), 0 0 0 1px rgba(255,255,255,.22);
  transition: transform .16s ease, box-shadow .16s ease, background .16s;
}
.cta-section .btn-green:hover {
  filter: none; background: var(--brand-pale);
  box-shadow: 0 12px 44px rgba(0,0,0,.42);
  transform: translateY(-3px);
}
@media (max-width: 600px) {
  .cta-section { padding-block: 72px; }
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--hero);
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  display: grid; grid-template-columns: auto 1fr;
  align-items: center; gap: 28px;
  padding-block: 36px;
  max-width: 1280px; margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { width: 36px; height: 36px; border-radius: var(--r-sm); object-fit: cover; opacity: .75; }
.footer-brand strong { display: block; color: #fff; font-size: .86rem; }
.footer-brand small  { color: #8b9bb5; font-size: .72rem; }
.footer-geo { margin-top: 2px; }
.footer-links { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.footer-links a {
  padding: 5px 10px; border-radius: var(--r-sm);
  color: #8b9bb5; font-size: .8rem; font-weight: 600;
  transition: color var(--t), background var(--t);
}
.footer-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.footer-legal { color: #4b5563; font-size: .72rem; text-align: right; max-width: 200px; line-height: 1.55; }

/* ── PRODUCT DETAIL PAGE ──────────────────────────────────────── */
.pd-outer { background: var(--bg); min-height: 60vh; padding-bottom: 72px; }
.pd-crumb {
  padding-block: 14px;
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: .8rem; color: var(--muted);
}
.pd-crumb a { color: var(--brand); font-weight: 600; }
.pd-crumb a:hover { text-decoration: underline; }
.pd-crumb-sep { opacity: .4; }

.pd-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 44px; padding-top: 4px;
}
.pd-sticky { position: sticky; top: 90px; }
.pd-img-wrap {
  aspect-ratio: 1; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.pd-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }

.pd-cat-tag {
  display: inline-block; padding: 4px 12px;
  border-radius: var(--r-pill); background: var(--brand-pale);
  color: var(--brand-dark); font-size: .74rem; font-weight: 800;
  margin-bottom: 10px;
}
.pd-badge { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); background: var(--brand); color: #fff; font-size: .72rem; font-weight: 900; margin-bottom: 16px; }
.pd-badge.outlet { background: var(--orange); }

.pd-title {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 800; line-height: 1.2; margin-bottom: 22px;
}
.pd-price-box {
  padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px;
}
.pd-price-box strong { display: block; font-size: 1.25rem; color: var(--brand-dark); margin-bottom: 3px; }
.pd-price-box p { color: var(--muted); font-size: .82rem; }
.pd-wa-link {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; min-height: 52px;
  border: 0; border-radius: var(--r-sm);
  background: #25D366; color: #fff;
  font-size: .92rem; font-weight: 800;
  margin-bottom: 22px;
  box-shadow: 0 3px 14px rgba(37,211,102,.35);
  transition: filter var(--t), box-shadow var(--t); text-decoration: none;
}
.pd-wa-link:hover { filter: brightness(.93); box-shadow: 0 5px 20px rgba(37,211,102,.45); }
.pd-info {
  padding: 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); margin-top: 4px;
}
.pd-info h3 {
  font-size: .88rem; font-weight: 800; margin-bottom: 10px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.pd-info p, .pd-info li { font-size: .84rem; color: var(--muted); line-height: 1.7; }
.pd-info p { margin-bottom: 10px; }
.pd-info ul { padding-left: 16px; }

/* ── SPECS TABLE ──────────────────────────────────────────────── */
.pd-specs { margin-bottom: 16px; }
.pd-specs h3 {
  font-size: .88rem; font-weight: 800; margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.specs-list { display: flex; flex-direction: column; }
.spec-row {
  display: grid; grid-template-columns: 42% 1fr;
  gap: 8px; padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: .84rem;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--muted); font-weight: 600; line-height: 1.45; }
.spec-row dd { color: var(--ink); font-weight: 500; line-height: 1.45; word-break: break-word; }

.related-section { background: var(--bg); border-top: 1px solid var(--line); padding-block: 52px; }
.related-section h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .product-grid   { grid-template-columns: repeat(3, 1fr); }
  .how-grid       { grid-template-columns: repeat(2, 1fr); }
  .related-grid   { grid-template-columns: repeat(3, 1fr); }
}
/* ── MOBILE SEARCH BAR (shown below header on ≤960px) ─────────── */
.mobile-search-bar {
  display: none;
}
@media (max-width: 960px) {
  .mobile-search-bar {
    display: flex;
    align-items: center;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px;
    position: relative;
  }
  .mobile-search-bar .search-icon {
    position: absolute;
    left: 26px;
    pointer-events: none;
    color: var(--muted);
  }
  .mobile-search-bar input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 34px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    font-size: .9rem;
    outline: none;
    transition: border-color var(--t), box-shadow var(--t);
    font-family: inherit;
  }
  .mobile-search-bar input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  }
  .mobile-search-bar input::placeholder { color: var(--muted); }
}

@media (max-width: 960px) {
  .main-nav, .header-search, .header-search-wrap { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-carousel { height: 320px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .footer-legal { text-align: left; max-width: 100%; }
  .footer-links { justify-content: flex-start; }
  .pd-grid { grid-template-columns: 1fr; gap: 28px; }
  .pd-sticky { position: static; }
}
@media (max-width: 760px) {
  .product-grid  { grid-template-columns: repeat(2, 1fr); }
  .how-grid      { grid-template-columns: 1fr; }
  .hl-grid       { grid-template-columns: 1fr; }
  .cta-inner     { flex-direction: column; text-align: center; align-items: center; }
  .related-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {

  .hero h1       { letter-spacing: -.01em; }
  .hero-actions  { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-carousel { height: 260px; }
  .ticker-track span { padding-inline: 14px; }
}
/* ── WHATSAPP FLOATING BUTTON ─────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 26px;
  z-index: 950;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 22px rgba(37,211,102,.45);
  text-decoration: none;
  animation: wa-bob 2.8s ease-in-out infinite;
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-float:hover {
  animation-play-state: paused;
  transform: scale(1.12) !important;
  box-shadow: 0 6px 32px rgba(37,211,102,.65);
}
.wa-float svg {
  width: 32px; height: 32px; fill: #fff;
  position: relative; z-index: 1; flex-shrink: 0;
}
/* pulsing ring */
.wa-float-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2.5px solid #25D366;
  animation: wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
.wa-float-ring:nth-child(2) { animation-delay: .8s; }

@keyframes wa-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-9px); }
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .75; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ── TESTIMONIOS ──────────────────────────────────────────────── */
.testimonios-section { background: var(--surface); }
.section-sub { color: var(--muted); font-size: .88rem; margin-top: 6px; }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.testi-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.testi-stars { color: #f5a623; font-size: 1rem; letter-spacing: 2px; }
.testi-card blockquote {
  margin: 0; padding: 0;
  font-size: .88rem; line-height: 1.6; color: var(--ink);
  font-style: italic;
  flex: 1;
}
.testi-card blockquote::before { content: "\201C"; }
.testi-card blockquote::after  { content: "\201D"; }
.testi-author { display: flex; flex-direction: column; gap: 3px; }
.testi-author strong { font-size: .85rem; color: var(--ink); }
.testi-author span   { font-size: .78rem; color: var(--muted); }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-section { background: var(--bg); }
.faq-list { margin-top: 28px; display: flex; flex-direction: column; gap: 8px; max-width: 760px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
}
.faq-item summary {
  padding: 16px 20px;
  font-size: .92rem; font-weight: 600; color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  transition: background var(--t);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.2rem; color: var(--brand); font-weight: 700;
  transition: transform var(--t);
  flex-shrink: 0; margin-left: 12px;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { background: var(--bg); }
.faq-item p {
  padding: 0 20px 16px;
  font-size: .87rem; line-height: 1.65; color: var(--muted);
  margin: 0;
}
.faq-item p strong { color: var(--ink); }

/* ── FOOTER VENTURES ──────────────────────────────────────────── */
.footer-ventures {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  font-size: .78rem;
}
.footer-ventures-label { color: var(--muted); }
.footer-ventures a { color: var(--muted); text-decoration: none; transition: color var(--t); }
.footer-ventures a:hover { color: var(--ink); }

/* ── LOADING SKELETON (catálogo) ───────────────────────────────────────────── */
.grid-loading {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 64px 24px; color: var(--muted); font-size: .95rem;
}
.grid-loading-spinner {
  display: inline-block; width: 22px; height: 22px;
  border: 3px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .grid-loading-spinner { animation: none; opacity: .5; }
}

/* ── PRIVACY PAGE ─────────────────────────────────────────────── */
.privacy-content { max-width: 720px; margin: 48px auto; padding: 0 16px 64px; }
.privacy-content h1 { font-size: 1.8rem; margin-bottom: 8px; letter-spacing: -.02em; }
.privacy-content h2 { font-size: 1.1rem; margin: 28px 0 8px; color: var(--ink); font-family: var(--font-body); }
.privacy-content p, .privacy-content li { font-size: .9rem; line-height: 1.7; color: var(--muted); }
.privacy-content ul { padding-left: 20px; margin: 8px 0; }
.privacy-content a { color: var(--brand); }

/* ── SCROLL REVEAL ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 640ms cubic-bezier(.4,0,.2,1),
              transform 640ms cubic-bezier(.4,0,.2,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 100ms; }
.reveal[data-delay="2"] { transition-delay: 200ms; }
.reveal[data-delay="3"] { transition-delay: 300ms; }
.reveal[data-delay="4"] { transition-delay: 400ms; }
.reveal[data-delay="5"] { transition-delay: 480ms; }

/* ── HERO ENTRANCE ─────────────────────────────────────────────── */
@keyframes hero-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-text h1    { animation: hero-up 780ms cubic-bezier(.16,1,.3,1) 80ms both; }
.hero-sub        { animation: hero-up 720ms cubic-bezier(.16,1,.3,1) 220ms both; }
.hero-actions    { animation: hero-up 700ms cubic-bezier(.16,1,.3,1) 360ms both; }
.hero-carousel   { animation: hero-up 860ms cubic-bezier(.16,1,.3,1) 160ms both; }
.hero-guarantee  { animation: hero-up 620ms cubic-bezier(.16,1,.3,1) 500ms both; }
@media (prefers-reduced-motion: reduce) {
  .hero-text h1, .hero-sub, .hero-actions, .hero-carousel, .hero-guarantee { animation: none; }
}

/* ── CTA BUTTON ATTENTION PULSE ─────────────────────────────── */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,99,235,.2); }
  50%       { box-shadow: 0 4px 36px rgba(37,99,235,.48), 0 0 0 8px rgba(37,99,235,.07); }
}
.hero-actions .btn-green {
  animation: cta-pulse 3.2s ease-in-out 3.6s infinite;
}

/* ── BUTTON CLICK FEEDBACK ──────────────────────────────────── */
.btn {
  transition: filter var(--t), background var(--t), color var(--t),
              border-color var(--t), transform 60ms ease;
}
.btn:active { transform: scale(.97); }
.cat-card:active { transform: scale(.97); }
.card-link:active { opacity: .82; transition: opacity 50ms ease; }

/* ── PRODUCT CARD ENTER STAGGER ────────────────────────────────── */
@keyframes card-enter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-card              { animation: card-enter 480ms cubic-bezier(.4,0,.2,1) both; }
.product-card:nth-child(4n+1) { animation-delay:   0ms; }
.product-card:nth-child(4n+2) { animation-delay:  70ms; }
.product-card:nth-child(4n+3) { animation-delay: 140ms; }
.product-card:nth-child(4n)   { animation-delay: 210ms; }

/* ── CATEGORY CARD ENTER STAGGER ───────────────────────────────── */
@keyframes cat-enter {
  from { opacity: 0; transform: scale(.92) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cat-card { animation: cat-enter 420ms cubic-bezier(.4,0,.2,1) both; }
.cat-card:nth-child(1)  { animation-delay:   0ms; }
.cat-card:nth-child(2)  { animation-delay:  35ms; }
.cat-card:nth-child(3)  { animation-delay:  70ms; }
.cat-card:nth-child(4)  { animation-delay: 105ms; }
.cat-card:nth-child(5)  { animation-delay: 140ms; }
.cat-card:nth-child(6)  { animation-delay: 175ms; }
.cat-card:nth-child(7)  { animation-delay: 210ms; }
.cat-card:nth-child(8)  { animation-delay: 245ms; }
.cat-card:nth-child(9)  { animation-delay: 280ms; }
.cat-card:nth-child(10) { animation-delay: 315ms; }
.cat-card:nth-child(n+11) { animation-delay: 350ms; }

/* ── HOW-SECTION STEP TIMELINE ─────────────────────────────────── */
@media (min-width: 1101px) {
  .how-grid { position: relative; }
  /* Horizontal connector behind step chips */
  .how-grid::before {
    content: "";
    position: absolute;
    top: 19px; /* half of 38px chip = vertical center of circles */
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(37,99,235,.22) 8%,
      rgba(37,99,235,.22) 92%,
      transparent 100%);
    pointer-events: none;
    z-index: 0;
  }
  .how-card { position: relative; z-index: 1; }
}

/* ── SEARCH SUGGESTIONS ─────────────────────────────────────── */
.header-search-wrap { position: relative; display: flex; align-items: center; }
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: clamp(280px, 30vw, 380px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
  z-index: var(--z-dropdown);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform-origin: top center;
}
.search-suggestions-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  z-index: var(--z-dropdown);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform-origin: top center;
}
.ss-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  text-decoration: none;
  color: var(--ink);
  transition: background var(--t);
  border-bottom: 1px solid var(--line);
}
.ss-item:last-child { border-bottom: none; }
.ss-item:hover, .ss-item.active { background: var(--brand-pale); }
.ss-img {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  object-fit: contain;
  background: #dce8fb;
  flex-shrink: 0;
}
.ss-info { min-width: 0; }
.ss-name {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ss-name mark { background: transparent; color: var(--brand); font-weight: 700; }
.ss-cat { font-size: .7rem; color: var(--muted); }
.ss-empty {
  padding: 14px 16px;
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
}

/* ── SEARCH SUGGESTIONS ENTRANCE ────────────────────────────── */
@keyframes ss-drop {
  from { opacity: 0; transform: translateY(-8px) scaleY(.94); }
  to   { opacity: 1; transform: translateY(0) scaleY(1); }
}
.search-suggestions.ss-open,
.search-suggestions-mobile.ss-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  animation: ss-drop 200ms cubic-bezier(.16,1,.3,1) both;
}

/* ══════════════════════════════════════════════════════════════
   CART DRAWER
══════════════════════════════════════════════════════════════ */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.48);
  z-index: 8000;
  opacity: 0; pointer-events: none;
  transition: opacity 280ms ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--line);
  z-index: 8001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.16,1,.3,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.12);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.cart-drawer-header h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.cart-close {
  background: none; border: none;
  cursor: pointer; padding: 6px;
  color: var(--muted);
  border-radius: 8px;
  transition: background var(--t), color var(--t);
  display: flex; align-items: center;
}
.cart-close:hover { background: var(--bg); color: var(--ink); }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Cart items */
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item-img {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #dce8fb;
  mix-blend-mode: multiply;
}
.cart-item-info { min-width: 0; }
.cart-item-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-item-price {
  font-size: .78rem;
  color: var(--brand);
  font-weight: 700;
  margin: 0;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 4px;
}
.qty-btn {
  background: none; border: none;
  width: 24px; height: 24px;
  font-size: 1rem; font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t);
}
.qty-btn:hover { background: var(--line); }
.qty-val { font-size: .82rem; font-weight: 700; min-width: 18px; text-align: center; }
.cart-item-remove {
  background: none; border: none;
  font-size: 1.1rem; cursor: pointer;
  color: var(--muted);
  padding: 4px;
  border-radius: 6px;
  line-height: 1;
  transition: color var(--t), background var(--t);
}
.cart-item-remove:hover { color: #ef4444; background: #fef2f2; }

/* Empty state */
.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.cart-empty svg { opacity: .35; }
.cart-empty p { font-size: .9rem; margin: 0; }

/* Cart footer */
.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
}
.cart-subtotal span { color: var(--muted); font-weight: 600; }
.cart-subtotal strong { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.cart-footer-note {
  font-size: .72rem;
  color: var(--muted);
  text-align: center;
  margin: 0;
}

/* Cart trigger button in header */
.cart-trigger-btn {
  position: relative;
  background: none; border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
  border-radius: 10px;
  display: flex; align-items: center;
  transition: background var(--t);
}
.cart-trigger-btn:hover { background: var(--surface); }
.cart-count-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 18px; height: 18px;
  background: var(--brand);
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   STOCK PAGE
══════════════════════════════════════════════════════════════ */

/* Hero */
.stock-hero {
  background: linear-gradient(135deg, var(--hero) 0%, #1e3a8a 100%);
  padding: 64px 0 52px;
  text-align: center;
}
.stock-hero-content { max-width: 600px; margin: 0 auto; }
.stock-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(74,222,128,.15);
  color: #4ade80;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(74,222,128,.25);
  margin-bottom: 18px;
}
.stock-dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}
.stock-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 14px;
  text-wrap: balance;
}
.stock-hero p {
  font-size: .95rem;
  color: rgba(255,255,255,.62);
  margin: 0;
}

/* Main */
.stock-main { padding-block: 40px 80px; }
.stock-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.stock-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stock-filter {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.stock-filter:hover { color: var(--ink); border-color: var(--brand); }
.stock-filter.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.stock-count {
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}

/* Stock grid */
.stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* Stock card */
.stock-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
  animation: card-enter 480ms cubic-bezier(.4,0,.2,1) both;
}
.stock-card:nth-child(4n+1) { animation-delay:   0ms; }
.stock-card:nth-child(4n+2) { animation-delay:  70ms; }
.stock-card:nth-child(4n+3) { animation-delay: 140ms; }
.stock-card:nth-child(4n)   { animation-delay: 210ms; }
.stock-card:hover {
  box-shadow: 0 20px 52px rgba(37,99,235,.16), 0 4px 12px rgba(0,0,0,.10);
  transform: translateY(-6px);
  border-color: rgba(37,99,235,.5);
}
.stock-card-img-wrap {
  position: relative;
  background: #dce8fb;
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stock-card-img-wrap::before {
  content: "";
  position: absolute;
  bottom: 8px; right: 8px;
  width: 54px; height: 22px;
  background: url("logo-hdv-store.png.png") center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
  filter: brightness(0) invert(0);
  z-index: 1;
}
.stock-card-img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8px;
  mix-blend-mode: multiply;
  transition: transform 300ms ease;
}
.stock-card:hover .stock-card-img { transform: scale(1.04); }

.sp-stock-label {
  position: absolute;
  bottom: 8px; left: 8px;
  background: #ef4444;
  color: #fff;
  font-size: .64rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.stock-card.stock-low .stock-card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(239,68,68,.3);
  border-radius: inherit;
  pointer-events: none;
}

.stock-card-body {
  padding: 12px 14px 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 5px;
}
.stock-card-cat {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 2px;
}
.stock-card-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.stock-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px 11px;
  border-top: 1px solid var(--line);
  margin: 8px -14px -8px;
  transition: border-color var(--t);
}
.stock-card:hover .stock-card-footer { border-color: rgba(37,99,235,.15); }
.stock-card-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

/* Empty state */
.stock-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 80px 20px;
  color: var(--muted);
}
.stock-empty svg { opacity: .25; }
.stock-empty h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin: 0; }
.stock-empty p { font-size: .88rem; line-height: 1.6; margin: 0; }

/* ── nav active ────────────────────────────────────────────── */
.nav-active { color: var(--brand) !important; font-weight: 700; }

/* ── btn-primary ────────────────────────────────────────────── */
.btn-primary {
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
}
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }

/* ── btn-sm ─────────────────────────────────────────────────── */
.btn-sm {
  padding: 7px 12px;
  font-size: .75rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 600px) {
  .stock-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stock-card-body { padding: 10px 12px 6px; }
  .stock-card-footer { margin: 6px -12px -6px; padding: 8px 12px 10px; }
  .stock-card-price { font-size: .9rem; }
}

/* ── CONTAINER SCROLL ANIMATION ─────────────────────────────── */
.cs-section {
  height: 180vh;
  position: relative;
}
.cs-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 7vw, 100px);
  padding: 40px clamp(24px, 6vw, 80px);
  background: var(--bg);
}
.cs-header {
  text-align: left;
  max-width: 460px;
  flex: 1;
}
.cs-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 12px;
}
.cs-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
}
.cs-desc {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
.cs-perspective {
  perspective: 1200px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}
.cs-card {
  width: clamp(200px, 22vw, 300px);
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  border: 3px solid #27272a;
  background: #18181b;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 30px 60px rgba(0,0,0,.30),
    0 60px 120px rgba(0,0,0,.18);
  overflow: hidden;
  will-change: transform;
  transform: rotateX(20deg) scale(0.88);
  transform-origin: top center;
}
.cs-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .cs-section { height: 140vh; }
  .cs-sticky { flex-direction: column; gap: 24px; padding: 40px 20px; }
  .cs-header { text-align: center; max-width: 520px; }
  .cs-title { font-size: clamp(1.4rem, 6vw, 2rem); }
  .cs-card { width: clamp(180px, 55vw, 240px); transform: rotateX(15deg) scale(0.85); }
}
@media (prefers-reduced-motion: reduce) {
  .cs-section { height: auto; }
  .cs-sticky { position: relative; height: auto; padding: 60px 20px; }
  .cs-card { transform: none !important; }
  .cs-header { transform: none !important; opacity: 1 !important; }
}

/* ── STATS STRIP ─────────────────────────────────────────────── */
.stats-strip {
  background: var(--hero);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 48px 24px;
}
.stats-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 52px;
  gap: 6px;
}
.stats-item strong {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  font-family: var(--font-display);
  color: #fff;
  letter-spacing: -.04em;
  line-height: 1.0;
}
.stats-item span {
  font-size: .72rem;
  color: rgba(255,255,255,.52);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.stats-sep {
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,.14);
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .stats-strip { padding: 36px 16px; }
  .stats-item { padding: 10px 24px; }
  .stats-sep { display: none; }
}
@media (max-width: 480px) {
  .stats-strip-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .stats-item { padding: 16px 12px; }
}

/* ── HERO GUARANTEE NOTE ─────────────────────────────────────── */
.hero-guarantee {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  color: rgba(255,255,255,.78);
  margin-top: 16px;
}
.hero-guarantee svg { flex-shrink: 0; }

/* ── NUEVOS INGRESOS ─────────────────────────────────────────── */
.ni-section { background: #eff6ff; border-top: 1px solid #bfdbfe; border-bottom: 1px solid #bfdbfe; }
.ni-section .section-head h2 { color: var(--brand-dim); }
.ni-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.ni-stock-card .card-link {
  cursor: default;
}
.ni-stock-footer {
  align-items: center;
  gap: 10px;
}
.ni-stock-footer .card-price-tag {
  color: var(--ink);
  opacity: 1;
  font-size: .96rem;
  font-weight: 900;
  letter-spacing: 0;
}
.ni-add-cart {
  min-height: 38px;
  padding-inline: 16px;
  font-size: .78rem;
  flex-shrink: 0;
}
.ni-add-cart:disabled {
  opacity: .72;
  cursor: default;
}
@media (max-width: 960px) {
  .ni-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ni-grid::-webkit-scrollbar { display: none; }
  .ni-grid .product-card {
    flex: 0 0 clamp(180px, 68vw, 240px);
    scroll-snap-align: start;
  }
}

/* ── PRODUCT GUARANTEE NOTE ──────────────────────────────────── */
.pd-guarantee {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .84rem;
  font-weight: 600;
  color: #166534;
  margin-top: 14px;
  padding: 12px 16px;
  background: #dcfce7;
  border-radius: var(--r);
  border: 1.5px solid #86efac;
  line-height: 1.4;
  box-shadow: 0 1px 4px rgba(34,197,94,.10);
}
.pd-guarantee svg { flex-shrink: 0; }

/* ── PRODUCT SHARE BUTTONS ───────────────────────────────────── */
.pd-share {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.pd-share-wa, .pd-share-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  font-size: .79rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-mid);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.pd-share-wa:hover   { background: #dcfce7; border-color: #86efac; color: #15803d; }
.pd-share-copy:hover { background: var(--brand-pale); border-color: rgba(37,99,235,.3); color: var(--brand); }

/* ── NAV ACTIVO (aria-current) ───────────────────────────────── */
.main-nav > a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-pale);
}

/* ── DELIVERY BANNER ─────────────────────────────────────────── */
.delivery-banner {
  position: relative;
  width: 100%;
  height: clamp(240px, 36vw, 440px);
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: var(--hero);
}
.delivery-banner-video,
.delivery-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}
.delivery-banner-video {
  opacity: 1;
  transition: opacity 1.4s ease;
}
.delivery-banner-img {
  opacity: 0;
  transition: opacity 1.4s ease;
  object-position: 62% center;
}
.delivery-banner.show-img .delivery-banner-video {
  opacity: 0;
}
.delivery-banner.show-img .delivery-banner-img {
  opacity: 1;
}
.delivery-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(5, 12, 29, 0.90) 0%,
    rgba(5, 12, 29, 0.74) 40%,
    rgba(5, 12, 29, 0.22) 68%,
    transparent 100%
  );
  z-index: 1;
}
.delivery-banner-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(20px, 6vw, 80px);
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.db-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #60a5fa;
  margin: 0;
}
.db-heading {
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.db-sub {
  font-size: clamp(.78rem, 1.4vw, .92rem);
  color: rgba(255,255,255,.74);
  margin: 0 0 4px;
}
.delivery-banner-content .btn-green {
  align-self: flex-start;
  margin-top: 4px;
  animation: none;
}

@media (max-width: 560px) {
  .delivery-banner {
    height: clamp(280px, 72vw, 360px);
    align-items: flex-end;
    padding-bottom: 32px;
    background-position: center center;
  }
  .delivery-banner::before {
    background: linear-gradient(
      to top,
      rgba(5, 12, 29, 0.94) 0%,
      rgba(5, 12, 29, 0.65) 55%,
      rgba(5, 12, 29, 0.15) 100%
    );
  }
  .delivery-banner-content {
    padding: 0 20px;
    max-width: 100%;
  }
  .delivery-banner-content .btn-green {
    width: 100%;
    justify-content: center;
  }
}

/* ── TRUST BAR ───────────────────────────────────────────────── */
.trust-bar {
  background: var(--surface);
  border-top: 3px solid var(--brand);
  border-bottom: 1px solid var(--line);
  padding: 28px 24px;
}
.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(0px, 4vw, 40px);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 11px;
}
.trust-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
}
.trust-item strong {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.trust-item span {
  font-size: .72rem;
  color: var(--muted);
  display: block;
  margin-top: 1px;
}
@media (max-width: 760px) {
  .trust-items { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .trust-items { grid-template-columns: 1fr; gap: 14px; }
}

/* ── HAMBURGER + MOBILE NAV ──────────────────────────────────── */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
  transition: background var(--t);
}
.mobile-menu-btn:hover { background: var(--surface-2); }
.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 280ms cubic-bezier(.4,0,.2,1), opacity 200ms, width 200ms;
  transform-origin: center;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; width: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel — hidden at desktop */
.mobile-nav { display: none; }

@media (max-width: 960px) {
  .mobile-menu-btn { display: flex; }

  .mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-mobile-nav);
    background: var(--surface);
    border-bottom: 1px solid rgba(37,99,235,.14);
    box-shadow: 0 8px 32px rgba(0,0,0,.14);
    padding-top: var(--header-h);
    transform: translateY(-100%);
    transition: transform 300ms cubic-bezier(.4,0,.2,1);
  }
  .mobile-nav.open { transform: translateY(0); }

  .mobile-nav-inner {
    display: flex;
    flex-direction: column;
    padding: 10px 16px 18px;
    gap: 2px;
  }
  .mobile-nav-inner a {
    display: block;
    padding: 11px 14px;
    border-radius: var(--r-sm);
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: background var(--t), color var(--t);
  }
  .mobile-nav-inner a:hover,
  .mobile-nav-inner a[aria-current="page"] { color: var(--brand); background: var(--brand-pale); }
  .mobile-nav-divider {
    height: 1px;
    background: var(--line);
    margin: 6px 0;
  }
  .mobile-nav-wa {
    margin-top: 6px;
    background: #25D366 !important;
    color: #fff !important;
    text-align: center;
    border-radius: var(--r-sm);
    font-weight: 700 !important;
  }
  .mobile-nav-wa:hover { background: #1db954 !important; }

  body.nav-open { overflow: hidden; }
}

/* ── INNER PAGE HERO (páginas separadas) ─────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--hero) 0%, #0f1d4f 60%, #152868 100%);
  padding: clamp(52px, 9vw, 96px) 24px clamp(44px, 7vw, 80px);
  text-align: center;
}
.page-hero .wrap { max-width: 720px; margin: 0 auto; }
.page-hero .ph-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.page-hero p {
  color: rgba(255,255,255,.72);
  font-size: clamp(.95rem, 2vw, 1.1rem);
  margin: 0 auto;
  max-width: 540px;
  line-height: 1.65;
}
.page-hero .ph-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── STOCK NAV LINK ──────────────────────────────────────────── */
.stock-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  color: #16a34a;
  background: rgba(22,163,74,.10);
  border: 1px solid rgba(22,163,74,.25);
  border-radius: 20px;
  padding: 5px 11px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, border-color .18s;
}
.stock-nav-link:hover {
  background: rgba(22,163,74,.18);
  border-color: rgba(22,163,74,.45);
  color: #15803d;
}
.stock-nav-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: stock-pulse 1.8s ease-in-out infinite;
}
@keyframes stock-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .55; transform: scale(.75); }
}

/* ── PAYMENT TOAST ───────────────────────────────────────────── */
.payment-toast {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  padding: 14px 22px;
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 600;
  color: #fff;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  max-width: calc(100vw - 40px);
  text-align: center;
  white-space: nowrap;
}
.payment-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.payment-toast-success { background: #16a34a; }
.payment-toast-failure { background: #dc2626; }
.payment-toast-pending { background: #d97706; }
.auth-return-toast {
  position: fixed;
  left: 50%;
  top: 86px;
  z-index: 1200;
  max-width: min(520px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .18);
  color: #0f172a;
  font-weight: 800;
  line-height: 1.35;
  opacity: 0;
  transform: translate(-50%, -10px);
  transition: opacity .2s ease, transform .2s ease;
}
.auth-return-toast.show { opacity: 1; transform: translate(-50%, 0); }
.auth-return-toast-success { background: #dcfce7; border: 1px solid #86efac; }
.auth-return-toast-error { background: #fee2e2; border: 1px solid #fca5a5; }

/* ── CART TRIGGER BTN (index topbar) ─────────────────────────── */
.cart-trigger-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background .15s;
}
.cart-trigger-btn:hover { background: var(--bg); }

/* ── AUTH MODAL ──────────────────────────────────────────────── */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.auth-overlay.open { opacity: 1; pointer-events: all; }

.auth-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(.96);
  z-index: 1101;
  width: min(420px, 94vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  box-shadow: 0 24px 64px rgba(0,0,0,.32);
}
.auth-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.auth-modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
}
.auth-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s;
}
.auth-close:hover { color: var(--ink); }

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  border-radius: 7px;
  padding: 8px 12px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.auth-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.auth-field label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
}
.auth-field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: .9rem;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
.auth-field input:focus { border-color: var(--brand); }

.auth-error {
  font-size: .78rem;
  color: #ef4444;
  min-height: 18px;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-divider {
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
  margin: 2px 0;
}

/* ── USER MENU (header, logged-in state) ─────────────────────── */
.user-menu {
  display: none;
  align-items: center;
  gap: 8px;
}
.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
}
.user-avatar:hover { opacity: .85; }
.user-display-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
.user-display-name:hover { color: var(--brand); }
.user-logout-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.user-logout-btn:hover { background: var(--bg); color: var(--ink); }

/* auth trigger btn */
.auth-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 13px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.auth-trigger-btn:hover { background: var(--surface); border-color: var(--brand); }

@media (max-width: 600px) {
  .user-display-name { display: none; }
  .auth-trigger-btn span:not(.auth-trigger-icon) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .wa-float { animation: none; }
  .wa-float-ring { animation: none; }
  /* Kill all entrance animations in reduced motion */
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .product-card, .cat-card { animation: none !important; }
  .hero-text h1, .hero-sub, .hero-actions, .hero-carousel, .hero-guarantee { animation: none !important; }
  .hero-actions .btn-green { animation: none !important; }
  .search-suggestions.ss-open, .search-suggestions-mobile.ss-open { animation: none !important; }
  .btn:active, .cat-card:active, .card-link:active { transform: none; opacity: 1; }
}

/* ── MI CUENTA PAGE ──────────────────────────────────────────── */
.account-page {
  padding-block: 48px 80px;
  min-height: calc(100vh - 64px);
}
.account-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

/* sidebar */
.account-sidebar {
  position: sticky;
  top: 88px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.account-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--line);
}
.account-avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.account-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-email {
  font-size: .74rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-nav {
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 2px;
}
.account-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: .83rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s;
}
.account-nav-btn:hover,
.account-nav-btn.active {
  background: rgba(37,99,235,.08);
  color: var(--brand);
}
.account-nav-btn svg { flex-shrink: 0; }
.account-nav-danger { color: #ef4444 !important; }
.account-nav-danger:hover { background: rgba(239,68,68,.08) !important; color: #ef4444 !important; }

/* content area */
.account-content { min-width: 0; }
.account-section { display: none; }
.account-section.active { display: block; }
.account-section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}

/* cards */
.account-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.account-card-desc {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.account-card-danger { border-color: rgba(239,68,68,.3); }
.account-danger-title {
  font-size: .92rem;
  font-weight: 700;
  color: #ef4444;
  margin: 0;
}

/* fields */
.account-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.account-field label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.account-field input {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: .88rem;
  color: var(--ink);
  font-family: inherit;
  transition: border-color .15s;
}
.account-field input:focus { outline: none; border-color: var(--brand); }
.account-field input:disabled { opacity: .5; cursor: not-allowed; }
.account-field-hint { font-size: .74rem; color: var(--muted); margin: 0; }

.account-msg { font-size: .82rem; min-height: 1.2em; margin: 0; }
.account-btn { align-self: flex-start; }
.account-delete-btn { background: rgba(239,68,68,.1) !important; color: #ef4444 !important; border: 1px solid rgba(239,68,68,.3) !important; }
.account-delete-btn:hover { background: rgba(239,68,68,.2) !important; }

/* loading / empty */
.account-loading,
.account-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--muted);
  font-size: .88rem;
  text-align: center;
}

.account-error-state {
  gap: 10px;
}

.account-error-state small {
  display: block;
  color: #ef4444;
  font-weight: 700;
  line-height: 1.4;
}

/* order cards */
.order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.order-id { font-size: .82rem; font-weight: 700; color: var(--ink); margin: 0; }
.order-date { font-size: .76rem; color: var(--muted); margin: 2px 0 0; }
.order-status {
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-approved { background: rgba(34,197,94,.12); color: #16a34a; }
.status-pending  { background: rgba(234,179, 8,.12); color: #a16207; }
.status-rejected { background: rgba(239, 68,68,.12); color: #dc2626; }
.order-items {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.order-items li { font-size: .82rem; color: var(--muted); }
.order-items li::before { content: "· "; }
.order-total { font-size: .85rem; color: var(--muted); margin: 0; }
.order-total strong { color: var(--ink); }

/* responsive */
@media (max-width: 760px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-sidebar { position: static; }
  .account-nav { flex-direction: row; flex-wrap: wrap; padding: 6px; }
  .account-nav-btn { flex: 1 1 auto; justify-content: center; }
}

/* ── TESTIMONIOS HOME — estilo chat WhatsApp ─────────────────── */
.wat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.wat-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background: #1f2c34;
  box-shadow: 0 10px 32px rgba(0,0,0,.35);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex;
  flex-direction: column;
}
.wat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
  border-color: rgba(37,211,102,.35);
}
.wat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1f2c34;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.wat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--brand);
}
.wat-id { display: flex; flex-direction: column; min-width: 0; }
.wat-id strong {
  color: #e9edef;
  font-size: .84rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wat-id span { color: #8696a0; font-size: .68rem; }
.wat-wa-ic { margin-left: auto; color: #25d366; flex-shrink: 0; }
.wat-chat {
  background:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,.025) 0 2px, transparent 2px),
    #efeae2;
  background-size: 28px 28px, auto;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.wat-date {
  align-self: center;
  background: #fff;
  font-size: .62rem;
  font-weight: 600;
  color: #54656f;
  padding: 3px 11px;
  border-radius: 6px;
  box-shadow: 0 1px 1px rgba(0,0,0,.08);
  margin-bottom: 4px;
}
.wat-bubble {
  position: relative;
  background: #fff;
  border-radius: 8px;
  border-top-left-radius: 0;
  padding: 7px 9px 6px;
  max-width: 92%;
  align-self: flex-start;
  box-shadow: 0 1px 1px rgba(0,0,0,.1);
}
.wat-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  left: -6px;
  width: 0;
  height: 0;
  border-right: 6px solid #fff;
  border-bottom: 8px solid transparent;
}
.wat-bubble p {
  font-size: .8rem;
  color: #111b21;
  line-height: 1.5;
  margin: 0;
}
.wat-time {
  display: block;
  text-align: right;
  font-size: .6rem;
  color: #8696a0;
  margin-top: 3px;
}
.wat-footer {
  background: #1f2c34;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 9px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.wat-stars { color: #fbbf24; font-size: .74rem; letter-spacing: 1.5px; white-space: nowrap; }
.wat-product {
  color: #8696a0;
  font-size: .68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1100px) {
  .wat-grid { grid-template-columns: 1fr 1fr; }
  .wat-card:last-child { display: none; }
}
@media (max-width: 560px) {
  .wat-grid { grid-template-columns: 1fr; }
  .wat-card:last-child { display: flex; }
}

/* Admin panel */
.status-fulfillment { background: rgba(37,99,235,.1); color: var(--brand-dark); }
.admin-body { min-height: 100vh; background: #edf2f9; }
.admin-shell { min-height: 100vh; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-login-card { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow-md); }
.admin-login-logo { width: 54px; height: 54px; object-fit: contain; background: var(--brand); border-radius: 8px; padding: 7px; margin-bottom: 18px; }
.admin-login-card h1, .admin-toolbar h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.5rem); color: var(--ink); margin-bottom: 6px; }
.admin-login-card p, .admin-toolbar p { color: var(--muted); margin-bottom: 20px; }
.admin-login-card label { display: grid; gap: 6px; color: var(--ink-mid); font-weight: 700; font-size: .86rem; margin-bottom: 14px; }
.admin-login-card input { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink); padding: 12px 13px; cursor: text; }
.admin-error { min-height: 20px; color: var(--danger) !important; font-weight: 700; font-size: .84rem; }
.admin-panel { padding: 24px clamp(16px, 4vw, 48px) 64px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.admin-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 18px; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-filters button, .admin-status-actions button { border: 1px solid var(--line); background: #fff; color: var(--ink-mid); border-radius: 8px; padding: 8px 11px; font-weight: 800; font-size: .78rem; transition: background var(--t), color var(--t), border-color var(--t); }
.admin-filters button.active, .admin-status-actions button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.admin-alert { border-radius: 10px; padding: 12px 14px; font-weight: 800; margin-bottom: 16px; }
.admin-alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.admin-alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.admin-orders { display: grid; gap: 14px; }

.admin-shipping-box {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 10px;
  background: rgba(248, 250, 252, .08);
  color: inherit;
  line-height: 1.45;
}

.admin-shipping-box span {
  color: inherit;
  opacity: .82;
}

.order-shipping {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.4;
}

.order-shipping strong {
  color: var(--ink);
}

.checkout-details {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.checkout-details h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkout-field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 700;
}

.checkout-field input,
.checkout-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: 9px 10px;
}

.checkout-field input:focus,
.checkout-field select:focus {
  outline: 2px solid rgba(37, 99, 235, .18);
  border-color: var(--brand);
}

.checkout-shipping-fields[hidden] {
  display: none;
}

.checkout-totals {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.checkout-totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.checkout-totals strong {
  color: var(--ink);
}

.checkout-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}
.admin-order-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.admin-order-head, .admin-order-foot { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.admin-order-head h2 { font-family: var(--font-body); font-size: 1rem; margin-bottom: 4px; }
.admin-order-head p { color: var(--muted); font-size: .84rem; }
.admin-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.admin-badge { display: inline-flex; border-radius: 999px; padding: 5px 10px; font-size: .72rem; font-weight: 900; }
.pay-approved { background: rgba(34,197,94,.12); color: #15803d; }
.pay-pending { background: rgba(234,179,8,.14); color: #a16207; }
.pay-rejected, .pay-cancelled, .pay-error { background: rgba(239,68,68,.12); color: #dc2626; }
.fulfill-new { background: rgba(100,116,139,.12); color: #475569; }
.fulfill-preparing, .fulfill-ready, .fulfill-shipped { background: rgba(37,99,235,.12); color: var(--brand-dark); }
.fulfill-delivered { background: rgba(22,163,74,.12); color: #15803d; }
.fulfill-cancelled { background: rgba(239,68,68,.12); color: #dc2626; }
.admin-order-items { list-style: none; display: grid; gap: 6px; padding: 14px 0; margin: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.admin-order-items li { color: var(--ink-mid); font-size: .9rem; }
.admin-order-items span { color: var(--muted); font-weight: 800; }
.admin-order-foot strong { white-space: nowrap; }
.admin-status-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.admin-empty { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 36px; text-align: center; color: var(--muted); font-weight: 800; }
@media (max-width: 820px) {
  .admin-toolbar, .admin-order-head, .admin-order-foot { flex-direction: column; align-items: stretch; }
  .admin-badges, .admin-status-actions { justify-content: flex-start; }
}
