/* ================================================================
   PERNOSTOCK — Design System v2.0
   Enterprise B2B Industrial · Plus Jakarta Sans · Crimson Brand
   ================================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ── Design Tokens ── */
:root {
  /* Brand */
  --brand:        #960014;
  --brand-dark:   #700010;
  --brand-light:  #C0001C;
  --brand-rgb:    150, 0, 20;

  /* Neutrals */
  --dark:         #0F172A;
  --charcoal:     #1E293B;
  --text:         #0F172A;
  --text-muted:   #64748B;
  --text-subtle:  #94A3B8;
  --white:        #FFFFFF;

  /* Surfaces */
  --bg:           #FFFFFF;
  --bg-subtle:    #F8FAFC;
  --bg-muted:     #F1F5F9;
  --border:       #E2E8F0;
  --border-dark:  #CBD5E1;

  /* Typography */
  --font:         'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Spacing (8px base) */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s7: 32px; --s8: 40px;
  --s9: 48px; --s10: 64px; --s11: 80px; --s12: 96px;

  /* Radii */
  --r1: 4px; --r2: 8px; --r3: 12px; --r4: 16px; --r5: 24px; --r-full: 9999px;

  /* Shadows */
  --sh-xs:  0 1px 2px rgba(15,23,42,0.06);
  --sh-sm:  0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.04);
  --sh-md:  0 4px 6px rgba(15,23,42,0.07), 0 2px 4px rgba(15,23,42,0.04);
  --sh-lg:  0 10px 15px rgba(15,23,42,0.08), 0 4px 6px rgba(15,23,42,0.04);
  --sh-xl:  0 20px 25px rgba(15,23,42,0.10), 0 8px 10px rgba(15,23,42,0.04);
  --sh-2xl: 0 25px 50px rgba(15,23,42,0.20);
  --sh-brand: 0 8px 24px rgba(150,0,20,0.25);

  /* Transitions */
  --t-fast:   150ms cubic-bezier(0.4,0,0.2,1);
  --t-normal: 250ms cubic-bezier(0.4,0,0.2,1);
  --t-slow:   400ms cubic-bezier(0.4,0,0.2,1);
  --t-spring: 350ms cubic-bezier(0.34,1.56,0.64,1);

  /* Layout */
  --max-w:  1280px;
  --nav-h:  72px;
  --top-h:  40px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* Page fade-in */
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageFadeIn 0.35s ease both; }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s7);
}
@media (max-width: 768px) { .container { padding: 0 var(--s4); } }

/* ── Sections ── */
.section       { padding: var(--s11) 0; }
.section--sm   { padding: var(--s9) 0; }
.section--gray { background: var(--bg-subtle); }
.section--dark { background: var(--dark); color: var(--white); }
.section--brand{ background: var(--brand); color: var(--white); }

/* Section headers */
.section-head {
  text-align: center;
  margin-bottom: var(--s9);
}
.section-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(var(--brand-rgb), 0.07);
  border: 1px solid rgba(var(--brand-rgb), 0.15);
  padding: var(--s1) var(--s3);
  border-radius: var(--r-full);
  margin-bottom: var(--s4);
}
.section-head__eyebrow--white {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
}
.section-head__title {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: var(--s3);
}
.section-head__title--white { color: var(--white); }
.section-head__title span { color: var(--brand); }
.section-head__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}
.section-head__sub--white { color: rgba(255,255,255,0.75); }

/* ================================================================
   TOP BAR
   ================================================================ */
.topbar {
  background: var(--dark);
  height: var(--top-h);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1001;
}
.topbar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.topbar__links {
  display: flex;
  gap: var(--s6);
  align-items: center;
}
.topbar__link {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color var(--t-fast);
}
.topbar__link:hover { color: var(--white); }
.topbar__link svg { width: 13px; height: 13px; fill: var(--brand); flex-shrink: 0; }
.topbar__hours {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.73rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}
.topbar__hours svg { width: 12px; height: 12px; fill: rgba(255,255,255,0.4); }
.topbar__hours span { color: rgba(255,255,255,0.65); }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  border-bottom-color: var(--border);
  transition: box-shadow var(--t-normal), height var(--t-normal), border-color var(--t-slow),
              margin var(--t-slow), border-radius var(--t-slow), background var(--t-normal);
}
.navbar--scrolled {
  margin: 10px var(--s7);
  border-radius: 14px;
  border-color: rgba(226,232,240,0.65);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 24px rgba(15,23,42,0.10), 0 1px 0 rgba(226,232,240,0.6);
  height: 60px;
}
.navbar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s7);
  width: 100%;
}
.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.navbar__logo img {
  height: 44px;
  width: auto;
  transition: height var(--t-normal);
  /* Invert white logo to show on white navbar */
  filter: brightness(0);
}
.navbar--scrolled .navbar__logo img { height: 38px; }
.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--s1);
}
.navbar__menu a {
  padding: var(--s2) var(--s4);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: var(--r2);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.navbar__menu a:hover { color: var(--brand); background: rgba(var(--brand-rgb), 0.05); }
.navbar__menu a.active { color: var(--brand); font-weight: 600; }
.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-shrink: 0;
}
.navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 0.55rem 1.25rem;
  background: var(--brand);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--r2);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.navbar__cta:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: var(--sh-brand);
}
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 2px 0;
}
.navbar__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform var(--t-normal), opacity var(--t-fast), width var(--t-normal);
}
.navbar__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; width: 0; }
.navbar__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--t-normal);
  backdrop-filter: blur(2px);
}
.nav-overlay.open { opacity: 1; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 0.7rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--r2);
  transition: all var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
  text-align: center;
}
.btn--primary {
  background: var(--brand);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: var(--sh-brand);
}
.btn--outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn--outline:hover {
  background: var(--brand);
  color: var(--white);
  transform: translateY(-2px);
}
.btn--white {
  background: var(--white);
  color: var(--brand);
}
.btn--white:hover {
  background: var(--bg-subtle);
  transform: translateY(-2px);
  box-shadow: var(--sh-lg);
}
.btn--ghost-white {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}
.btn--ghost-white:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.7);
}
.btn--lg { padding: 0.875rem 2.25rem; font-size: 1rem; }
.btn--sm { padding: 0.5rem 1.1rem; font-size: 0.8rem; }
.btn--full { width: 100%; justify-content: center; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ================================================================
   HERO — Full-screen slider with animated gradient mesh
   ================================================================ */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Animated gradient mesh overlay (21st.dev inspired) */
.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero__mesh::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(150,0,20,0.18) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: meshFloat1 12s ease-in-out infinite;
}
.hero__mesh::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,41,59,0.6) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: meshFloat2 14s ease-in-out infinite reverse;
}
@keyframes meshFloat1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(-60px, 40px) scale(1.1); }
  66%       { transform: translate(40px, -30px) scale(0.95); }
}
@keyframes meshFloat2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%       { transform: translate(50px, -40px) scale(1.08); }
}

/* Grid pattern overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.4) 70%, transparent 100%);
}

/* Decorative vertical border lines (21st.dev) */
.hero__lines {
  position: absolute;
  inset: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  pointer-events: none;
  z-index: 2;
  display: none;
}
@media (min-width: 1080px) { .hero__lines { display: block; } }
.hero__lines::before,
.hero__lines::after {
  content: '';
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(255,255,255,0.09);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 18%, rgba(0,0,0,0.7) 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 18%, rgba(0,0,0,0.7) 82%, transparent 100%);
}
.hero__lines::before { left: 0; }
.hero__lines::after  { right: 0; }

/* Eyebrow dot pulse */
@keyframes eyebrowPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.55; }
}
.hero__slide.is-active .hero__eyebrow::before {
  animation: eyebrowPulse 2.2s ease-in-out infinite;
}

/* Slider track */
.hero__track {
  display: flex;
  width: 100%;
  flex: 1;
  transition: transform 0.75s cubic-bezier(0.25,0.46,0.45,0.94);
  position: relative;
  z-index: 2;
}
.hero__slide {
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--top-h));
}
.hero__slide-bg {
  position: absolute;
  inset: 0;
}
.hero__slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transition: transform 8s ease;
}
.hero__slide.is-active .hero__slide-bg img {
  transform: scale(1.04);
}
.hero__slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15,23,42,0.85) 0%,
    rgba(15,23,42,0.60) 50%,
    rgba(15,23,42,0.30) 100%
  );
}

/* Hero content */
.hero__content-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s12) var(--s7) var(--s11);
}
.hero__content {
  max-width: 720px;
}

/* Hero enter animations */
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__slide.is-active .hero__eyebrow {
  animation: heroSlideUp 0.55s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}
.hero__slide.is-active .hero__h1 {
  animation: heroSlideUp 0.6s cubic-bezier(0.22,1,0.36,1) 0.22s both;
}
.hero__slide.is-active .hero__p {
  animation: heroSlideUp 0.6s cubic-bezier(0.22,1,0.36,1) 0.34s both;
}
.hero__slide.is-active .hero__cta-row {
  animation: heroSlideUp 0.6s cubic-bezier(0.22,1,0.36,1) 0.46s both;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(150,0,20,0.35);
  border: 1px solid rgba(150,0,20,0.6);
  padding: var(--s1) var(--s4);
  border-radius: var(--r-full);
  margin-bottom: var(--s5);
}
.hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-light);
  flex-shrink: 0;
}
.hero__h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--s5);
}
.hero__h1 em {
  font-style: normal;
  color: var(--brand-light);
  position: relative;
}
.hero__p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  margin-bottom: var(--s7);
  max-width: 560px;
}
.hero__cta-row {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--s6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(0.6) translateY(8px); }
}

/* Hero controls */
.hero__nav {
  position: absolute;
  bottom: var(--s7);
  right: var(--s7);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.5);
  transition: background var(--t-fast), transform var(--t-spring), width var(--t-normal);
  cursor: pointer;
}
.hero__dot.active {
  background: var(--white);
  width: 24px;
  border-radius: var(--r-full);
}
.hero__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
  font-size: 1.1rem;
  backdrop-filter: blur(4px);
}
.hero__arrow:hover { background: rgba(255,255,255,0.2); transform: scale(1.08); }

/* ================================================================
   STATS BAR
   ================================================================ */
.stats-bar {
  background: var(--brand);
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 1;
}
.stat-item {
  padding: var(--s7) var(--s6);
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-item__num {
  display: block;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  transition: transform 0.3s var(--t-spring);
}
.stat-item.counting .stat-item__num {
  animation: statPop 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}
.stat-item:nth-child(2).counting .stat-item__num { animation-delay: 0.08s; }
.stat-item:nth-child(3).counting .stat-item__num { animation-delay: 0.16s; }
.stat-item:nth-child(4).counting .stat-item__num { animation-delay: 0.24s; }
@keyframes statPop {
  0%   { transform: scale(0.6); opacity: 0; }
  70%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}
.stat-item__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-top: var(--s2);
}

/* ================================================================
   VALUE PROPS
   ================================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}
.value-card {
  padding: var(--s7) var(--s6);
  background: var(--bg);
  border-radius: var(--r3);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-normal);
  border-radius: var(--r-full);
  z-index: 1;
}
/* Spotlight overlay — follows mouse via --x / --y set in JS */
.value-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--x, 50%) var(--y, 50%),
    rgba(var(--brand-rgb), 0.08) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--t-normal);
  pointer-events: none;
  z-index: 0;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: rgba(var(--brand-rgb), 0.2); }
.value-card:hover::before { transform: scaleX(1); }
.value-card:hover::after  { opacity: 1; }
.value-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(var(--brand-rgb), 0.07);
  border-radius: var(--r2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s4);
  position: relative;
  z-index: 1;
}
.value-card__icon svg { width: 24px; height: 24px; color: var(--brand); }
.value-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--s2);
  position: relative;
  z-index: 1;
}
.value-card__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ================================================================
   PRODUCT CATEGORY CARDS
   ================================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
}
.cat-card {
  background: var(--bg);
  border-radius: var(--r3);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-normal), box-shadow var(--t-normal);
  cursor: pointer;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--sh-xl); }
.cat-card__img-wrap {
  overflow: hidden;
  background: var(--bg-muted);
  aspect-ratio: 4/3;
}
.cat-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.cat-card:hover .cat-card__img { transform: scale(1.07); }
.cat-card__body { padding: var(--s4) var(--s5); }
.cat-card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s2);
}
.cat-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--s1);
}
.cat-card__count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--s3);
}
.cat-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  transition: gap var(--t-fast);
}
.cat-card:hover .cat-card__link { gap: var(--s3); }

/* ================================================================
   INDUSTRIES GRID
   ================================================================ */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
.industry-card {
  position: relative;
  border-radius: var(--r3);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: default;
}
.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.industry-card:hover img { transform: scale(1.08); }
.industry-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15,23,42,0.85) 0%,
    rgba(15,23,42,0.3) 55%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s5);
  transition: background var(--t-normal);
}
.industry-card:hover .industry-card__overlay {
  background: linear-gradient(
    to top,
    rgba(150,0,20,0.75) 0%,
    rgba(15,23,42,0.4) 60%,
    transparent 100%
  );
}
.industry-card__name {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.industry-card__desc {
  color: rgba(255,255,255,0.72);
  font-size: 0.78rem;
  margin-top: var(--s1);
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-normal), transform var(--t-normal);
}
.industry-card:hover .industry-card__desc {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   BRANDS MARQUEE
   ================================================================ */
.brands-section { overflow: hidden; }
.brands-marquee {
  display: flex;
  gap: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%,
    rgba(0,0,0,0.3) 4%,
    black 11%,
    black 89%,
    rgba(0,0,0,0.3) 96%,
    transparent 100%
  );
  mask-image: linear-gradient(to right,
    transparent 0%,
    rgba(0,0,0,0.3) 4%,
    black 11%,
    black 89%,
    rgba(0,0,0,0.3) 96%,
    transparent 100%
  );
}
.brands-track {
  display: flex;
  gap: var(--s6);
  align-items: center;
  animation: marquee 28s linear infinite;
  flex-shrink: 0;
  padding: var(--s4) 0;
}
.brands-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s4) var(--s6);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  flex-shrink: 0;
  transition: border-color var(--t-normal), box-shadow var(--t-normal);
  min-width: 120px;
}
.brand-logo img {
  max-height: 48px;
  width: auto;
  max-width: 100px;
  filter: grayscale(100%) opacity(0.55);
  transition: filter var(--t-normal), opacity var(--t-normal);
}
.brand-logo:hover { border-color: rgba(var(--brand-rgb), 0.3); box-shadow: var(--sh-md); }
.brand-logo:hover img { filter: grayscale(0%) opacity(1); }

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
  text-align: center;
  padding: var(--s11) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 50%, var(--brand-light) 100%);
}
.cta-banner__inner {
  position: relative;
  z-index: 1;
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: var(--s3);
}
.cta-banner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin: 0 auto var(--s7);
  line-height: 1.65;
}
.cta-banner__actions { display: flex; gap: var(--s3); justify-content: center; flex-wrap: wrap; }

/* ================================================================
   PAGE HERO (inner pages)
   ================================================================ */
.page-hero {
  background: var(--dark);
  padding: var(--s10) 0 var(--s9);
  position: relative;
  overflow: hidden;
}
.page-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 50%, rgba(150,0,20,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 20% 80%, rgba(30,41,59,0.8) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: var(--s3);
}
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s3);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.breadcrumb a { transition: color var(--t-fast); }
.breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.breadcrumb__sep { color: rgba(255,255,255,0.25); }

/* ================================================================
   PRODUCT CARDS (products page)
   ================================================================ */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s8);
}
.filter-tab {
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--t-fast);
}
.filter-tab:hover { border-color: var(--brand); color: var(--brand); }
.filter-tab.active {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
}
.product-card {
  background: var(--bg);
  border-radius: var(--r3);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-normal), box-shadow var(--t-normal);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.product-card.hidden { display: none; }
.product-card__img-wrap {
  overflow: hidden;
  background: var(--bg-muted);
}
.product-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.product-card:hover .product-card__img { transform: scale(1.06); }
.product-card__body { padding: var(--s4) var(--s5); }
.product-card__cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s2);
}
.product-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--s1);
}
.product-card__count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--s3);
}
.product-card__action {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  border: 1.5px solid rgba(var(--brand-rgb), 0.3);
  border-radius: var(--r2);
  transition: all var(--t-fast);
}
.product-card__action:hover {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

/* ================================================================
   ABOUT PAGE
   ================================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s11);
  align-items: center;
}
.about-intro__text h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: var(--s5);
  line-height: 1.2;
}
.about-intro__text h2 span { color: var(--brand); }
.about-intro__text p {
  color: var(--text-muted);
  margin-bottom: var(--s4);
  line-height: 1.75;
}
.about-intro__img {
  border-radius: var(--r4);
  overflow: hidden;
  box-shadow: var(--sh-2xl);
}
.about-intro__img img { width: 100%; height: 100%; object-fit: cover; }

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}
.mission-card {
  text-align: center;
  padding: var(--s8) var(--s6);
  background: var(--bg);
  border-radius: var(--r3);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand);
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.mission-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--x, 50%) var(--y, 50%),
    rgba(var(--brand-rgb), 0.07) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--t-normal);
  pointer-events: none;
  z-index: 0;
}
.mission-card:hover { transform: translateY(-6px); box-shadow: var(--sh-xl); border-color: rgba(var(--brand-rgb), 0.25); }
.mission-card:hover::after { opacity: 1; }
.mission-card__icon,
.mission-card__title,
.mission-card__text { position: relative; z-index: 1; }
.mission-card__icon {
  width: 60px; height: 60px;
  background: rgba(var(--brand-rgb), 0.08);
  border-radius: var(--r3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s5);
}
.mission-card__icon svg { width: 26px; height: 26px; color: var(--brand); }
.mission-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: var(--s3);
}
.mission-card__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}
.service-card {
  border-radius: var(--r3);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
  transition: transform var(--t-normal), box-shadow var(--t-normal);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.service-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-card__body { padding: var(--s6); }
.service-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--s2);
}
.service-card__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.certs-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s6);
  flex-wrap: wrap;
}
.cert-card {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--r3);
  padding: var(--s5) var(--s7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.cert-card:hover {
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.cert-card img { max-height: 72px; width: auto; filter: none; opacity: 0.9; }
.cert-card:hover img { opacity: 1; }

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--s11);
  align-items: start;
}
.contact-form-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: var(--s2);
}
.contact-form-sub {
  color: var(--text-muted);
  margin-bottom: var(--s7);
  font-size: 0.9rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}
.form-group { margin-bottom: var(--s5); }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.83rem;
  margin-bottom: var(--s2);
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.72rem var(--s4);
  border: 1.5px solid var(--border);
  border-radius: var(--r2);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.1);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group__error {
  color: #DC2626;
  font-size: 0.78rem;
  margin-top: var(--s1);
  display: none;
}
.form-group.has-error input,
.form-group.has-error textarea { border-color: #DC2626; }
.form-group.has-error .form-group__error { display: block; }
.form-success {
  display: none;
  text-align: center;
  padding: var(--s9) var(--s7);
  background: var(--bg-subtle);
  border-radius: var(--r3);
  border: 1px solid var(--border);
}
.form-success.visible { display: block; }
.form-success svg { color: var(--brand); width: 52px; height: 52px; margin: 0 auto var(--s4); }
.form-success h3 { font-size: 1.4rem; font-weight: 800; color: var(--brand); margin-bottom: var(--s2); }
.form-success p { color: var(--text-muted); }

.contact-sidebar { display: flex; flex-direction: column; gap: var(--s5); }
.contact-info-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: var(--s6);
}
.contact-info-item {
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info-item:first-child { padding-top: 0; }
.contact-info-icon {
  width: 40px; height: 40px;
  background: rgba(var(--brand-rgb), 0.08);
  border-radius: var(--r2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 18px; height: 18px; color: var(--brand); }
.contact-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--s1);
}
.contact-info-value { font-size: 0.875rem; color: var(--text); font-weight: 500; }
.contact-info-value a { color: var(--brand); }
.contact-info-value a:hover { text-decoration: underline; }

.map-wrapper {
  border-radius: var(--r3);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  border: 1px solid var(--border);
}
.map-wrapper iframe { display: block; }
.map-actions {
  display: flex;
  gap: var(--s3);
  margin-top: var(--s4);
  flex-wrap: wrap;
}
.map-container { }

/* ── Contact quick-info cards ── */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  margin-bottom: var(--s2);
}
.contact-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r3);
  padding: var(--s5);
  display: flex;
  align-items: center;
  gap: var(--s4);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.contact-card:hover {
  border-color: rgba(var(--brand-rgb), 0.4);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.contact-card__icon {
  width: 46px; height: 46px;
  background: rgba(var(--brand-rgb), 0.08);
  border-radius: var(--r2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--brand);
}
.contact-card--wa .contact-card__icon {
  background: #dcfce7;
  color: #16a34a;
}
.contact-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  margin-bottom: 2px;
}
.contact-card__value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
a.contact-card__value { color: var(--brand); }
a.contact-card__value:hover { text-decoration: underline; }
.contact-card--wa a.contact-card__value { color: #16a34a; }

/* ── Contact form column ── */
.contact-form-col { }
.contact-form-header { margin-bottom: var(--s7); }
.contact-form-header h2 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--s3);
}
.contact-form-header p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* New form element classes (contacto.html uses .form-label / .form-control) */
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.83rem;
  margin-bottom: var(--s2);
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 0.72rem var(--s4);
  border: 1.5px solid var(--border);
  border-radius: var(--r2);
  font-size: 0.9rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.1);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-error {
  display: none;
  color: #DC2626;
  font-size: 0.78rem;
  margin-top: var(--s1);
}
.form-group.has-error .form-control { border-color: #DC2626; }
.form-group.has-error .form-error { display: block; }

/* ── Form success (contact page variant) ── */
.form-success__icon {
  width: 64px; height: 64px;
  background: rgba(var(--brand-rgb), 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s5);
  color: var(--brand);
}

/* ── Contact sidebar ── */
.contact-sidebar-card {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--r3);
  padding: var(--s6);
}
.contact-sidebar-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s5);
  color: var(--text);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--border);
}

/* Hours table */
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.hours-table td { padding: var(--s3) 0; border-bottom: 1px solid var(--border); color: var(--text); }
.hours-table td:last-child { text-align: right; font-weight: 500; }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table__closed td { color: var(--text-subtle); }

/* Contact sidebar list */
.contact-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact-sidebar-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--border);
}
.contact-sidebar-list li:last-child { border-bottom: none; padding-bottom: 0; }
.contact-sidebar-list li:first-child { padding-top: 0; }
.contact-sidebar-list__icon {
  width: 36px; height: 36px;
  background: rgba(var(--brand-rgb), 0.07);
  border-radius: var(--r2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--brand);
}
.contact-sidebar-list__icon--wa { background: #dcfce7; color: #16a34a; }
.contact-sidebar-list__icon svg { width: 16px; height: 16px; }
.contact-sidebar-list__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  margin-bottom: 2px;
}
.contact-sidebar-list__value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
}
a.contact-sidebar-list__value { color: var(--brand); }
a.contact-sidebar-list__value:hover { text-decoration: underline; }

/* ── WhatsApp sidebar CTA ── */
.wa-sidebar-cta {
  display: flex;
  align-items: center;
  gap: var(--s4);
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #fff;
  border-radius: var(--r3);
  padding: var(--s5) var(--s6);
  text-decoration: none;
  transition: opacity var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.3);
}
.wa-sidebar-cta:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(22, 163, 74, 0.4);
}
.wa-sidebar-cta__icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wa-sidebar-cta__text { display: flex; flex-direction: column; gap: 2px; }
.wa-sidebar-cta__text strong { font-size: 0.95rem; font-weight: 700; }
.wa-sidebar-cta__text span { font-size: 0.8rem; opacity: 0.85; }

/* ── Waze button ── */
.btn--waze {
  background: #05c8f7;
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(5,200,247,0.35);
}
.btn--waze:hover {
  background: #00b0d8;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5,200,247,0.4);
}

/* ── Responsive for new contact components ── */
@media (max-width: 1024px) {
  .contact-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .contact-cards-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ================================================================
   CATALOG PAGE
   ================================================================ */
.catalog-viewer {
  max-width: 960px;
  margin: 0 auto;
}
.catalog-header-bar {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: var(--s5) var(--s7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  margin-bottom: var(--s5);
  flex-wrap: wrap;
}
.catalog-header-bar h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: var(--s1); }
.catalog-header-bar p { font-size: 0.85rem; color: var(--text-muted); }
.catalog-viewer iframe {
  width: 100%;
  height: 80vh;
  border: 1px solid var(--border);
  border-radius: var(--r3);
  display: block;
}
.catalog-btn-row {
  display: flex;
  justify-content: center;
  gap: var(--s3);
  margin-top: var(--s5);
  flex-wrap: wrap;
}
.pdf-fallback {
  display: none;
  text-align: center;
  padding: var(--s11) var(--s7);
  background: var(--bg-subtle);
  border: 2px dashed var(--border-dark);
  border-radius: var(--r3);
}
.pdf-fallback svg { width: 56px; height: 56px; color: var(--brand); margin: 0 auto var(--s4); }
.pdf-fallback h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: var(--s2); }
.pdf-fallback p { color: var(--text-muted); margin-bottom: var(--s5); }

/* Catalog gate (replaces iframe viewer) */
.catalog-gate {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-subtle);
  border: 2px solid var(--border);
  border-radius: var(--r4);
  padding: var(--s10) var(--s8);
  text-align: center;
  transition: border-color var(--t-normal);
}
.catalog-gate:hover { border-color: rgba(var(--brand-rgb), 0.35); }
.catalog-gate__icon {
  width: 88px; height: 88px;
  background: rgba(var(--brand-rgb), 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s6);
  color: var(--brand);
}
.catalog-gate__icon svg { width: 44px; height: 44px; stroke: var(--brand); }
.catalog-gate__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--s2);
}
.catalog-gate__sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--s6);
}
.catalog-gate__features {
  list-style: none;
  text-align: left;
  display: inline-flex;
  flex-direction: column;
  gap: var(--s2);
  margin-bottom: var(--s7);
  font-size: 0.875rem;
  color: var(--text);
}
.catalog-gate__features li {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.catalog-gate__features svg { color: var(--brand); flex-shrink: 0; stroke: var(--brand); }
.catalog-gate__note {
  margin-top: var(--s3);
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.tech-sheets-group { margin-bottom: var(--s8); }
.tech-sheets-group h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s4);
  padding-bottom: var(--s3);
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.tech-sheets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s2);
}
.tech-item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.tech-item:hover {
  border-color: rgba(var(--brand-rgb), 0.3);
  box-shadow: var(--sh-sm);
  transform: translateX(4px);
}
.tech-item__icon {
  width: 36px; height: 36px;
  background: rgba(var(--brand-rgb), 0.07);
  border-radius: var(--r1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tech-item__icon svg { width: 16px; height: 16px; color: var(--brand); }
.tech-item__name { font-size: 0.85rem; font-weight: 500; color: var(--text); }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: var(--s11) 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--s9);
  padding-bottom: var(--s11);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__logo {
  height: auto;
  max-height: 44px;
  width: auto;
  max-width: 180px;
  margin-bottom: var(--s4);
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.9);
}
.footer__about {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--s5);
  max-width: 280px;
}
.footer__social {
  display: flex;
  gap: var(--s3);
}
.footer__social a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.footer__social a:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
}
.footer__social img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.footer__social svg { width: 16px; height: 16px; color: rgba(255,255,255,0.75); transition: color var(--t-fast); }
.footer__social a:hover svg { color: var(--white); }
.footer__col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--s5);
}
.footer__col ul li { margin-bottom: var(--s3); }
.footer__col ul a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.footer__col ul a:hover { color: var(--white); padding-left: var(--s2); }
.footer__contact-item {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  margin-bottom: var(--s4);
}
.footer__contact-item svg { width: 15px; height: 15px; fill: var(--brand); flex-shrink: 0; margin-top: 2px; }
.footer__contact-item span { font-size: 0.83rem; color: rgba(255,255,255,0.55); }
.footer__bottom {
  padding: var(--s5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
}
.footer__bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer__bottom-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-full);
  padding: var(--s1) var(--s3);
}

/* ── Footer column blur-fade entrance (inspired by footer-section component) ── */
.footer__col {
  opacity: 0;
  transform: translateY(-8px);
  filter: blur(5px);
  transition:
    opacity  0.75s cubic-bezier(0.22,1,0.36,1),
    transform 0.75s cubic-bezier(0.22,1,0.36,1),
    filter   0.6s ease;
}
.footer__col.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.footer__col:nth-child(1) { transition-delay: 0s; }
.footer__col:nth-child(2) { transition-delay: 0.09s; }
.footer__col:nth-child(3) { transition-delay: 0.18s; }
.footer__col:nth-child(4) { transition-delay: 0.27s; }

/* ================================================================
   WHATSAPP FLOAT
   ================================================================ */
.whatsapp-float {
  position: fixed;
  bottom: var(--s7);
  right: var(--s7);
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 990;
  transition: transform var(--t-spring), box-shadow var(--t-fast);
  animation: waPulse 3s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
  animation: none;
}
.whatsapp-float img { width: 32px; height: 32px; }
.whatsapp-float__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  padding: var(--s2) var(--s3);
  border-radius: var(--r2);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
}
.whatsapp-float:hover .whatsapp-float__tooltip { opacity: 1; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.65), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal--left  { transform: translateX(-28px) translateY(0); }
.reveal--right { transform: translateX(28px) translateY(0); }
.reveal.visible {
  opacity: 1;
  transform: translate(0,0);
}
.reveal--d1 { transition-delay: 0.07s; }
.reveal--d2 { transition-delay: 0.14s; }
.reveal--d3 { transition-delay: 0.21s; }
.reveal--d4 { transition-delay: 0.28s; }
.reveal--d5 { transition-delay: 0.35s; }
.reveal--d6 { transition-delay: 0.42s; }

/* ================================================================
   UTILITIES
   ================================================================ */
.text-center  { text-align: center; }
.text-brand   { color: var(--brand); }
.mt-2  { margin-top: var(--s4); }
.mt-4  { margin-top: var(--s7); }
.mt-6  { margin-top: var(--s9); }
.mb-2  { margin-bottom: var(--s4); }
.no-scroll { overflow: hidden; }
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--s9) 0;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .categories-grid  { grid-template-columns: repeat(3, 1fr); }
  .products-grid    { grid-template-columns: repeat(3, 1fr); }
  .footer__grid     { grid-template-columns: repeat(2, 1fr); }
  .about-intro      { gap: var(--s9); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* Reset navbar pill on mobile */
  .navbar--scrolled {
    margin: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border);
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: var(--sh-sm);
    height: var(--nav-h);
  }

  .topbar__links { gap: var(--s4); }
  .topbar__hours { display: none; }

  /* Mobile nav drawer */
  .navbar__menu {
    position: fixed;
    top: 0; right: -100%;
    width: 82%; max-width: 320px;
    height: 100dvh;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--nav-h) + var(--s6)) var(--s6) var(--s6);
    gap: 0;
    z-index: 999;
    box-shadow: var(--sh-2xl);
    transition: right var(--t-normal);
  }
  .navbar__menu.open { right: 0; }
  .navbar__menu a {
    padding: var(--s4) var(--s2);
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .navbar__menu a:hover { background: transparent; }
  .navbar__actions .navbar__cta { display: none; }
  .navbar__burger { display: flex; }

  .hero__content-wrap { padding: var(--s10) var(--s4) var(--s9); }
  .hero__h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .hero__nav { right: var(--s4); bottom: var(--s5); }

  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,0.15); }
  .stat-item:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,0.15); }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }

  .values-grid  { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid   { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-grid    { grid-template-columns: 1fr; }
  .services-grid   { grid-template-columns: 1fr; }
  .about-intro     { grid-template-columns: 1fr; gap: var(--s7); }
  .contact-layout  { grid-template-columns: 1fr; gap: var(--s7); }
  .footer__grid    { grid-template-columns: 1fr; gap: var(--s7); }

  .section { padding: var(--s9) 0; }
  .cta-banner { padding: var(--s9) 0; }

  .form-row { grid-template-columns: 1fr; }

  .catalog-viewer iframe { height: 55vw; min-height: 260px; }
  .catalog-header-bar { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .products-grid   { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .hero__cta-row   { flex-direction: column; }
  .cta-banner__actions { flex-direction: column; align-items: center; }
  .whatsapp-float  { bottom: var(--s5); right: var(--s5); width: 52px; height: 52px; }
  .whatsapp-float img { width: 28px; height: 28px; }
  .map-actions { flex-direction: column; }
  .map-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================
   TESTIMONIALS — Infinite vertical scroll columns
   ================================================================ */
.testimonials-section {
  overflow: hidden;
  background: var(--bg-subtle);
}
.testimonials-columns-wrap {
  margin-top: var(--s8);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  max-height: 680px;
  overflow: hidden;
}
.testimonials-columns {
  display: flex;
  justify-content: center;
  gap: var(--s5);
}
.testimonials-col {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
  flex: 0 0 320px;
  max-width: 320px;
  will-change: transform;
}
.testimonials-col--md { display: none; }
.testimonials-col--lg { display: none; }
@media (min-width: 768px) { .testimonials-col--md { display: flex; } }
@media (min-width: 1100px) { .testimonials-col--lg { display: flex; } }

/* Animate column track up */
@keyframes testimonialsScrollUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.testimonials-track {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
  animation: testimonialsScrollUp var(--col-dur, 18s) linear infinite;
}
.testimonials-col:hover .testimonials-track { animation-play-state: paused; }

/* Testimonial card */
.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  padding: var(--s6);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
  cursor: default;
  flex-shrink: 0;
}
.testimonial-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--sh-xl);
  border-color: rgba(var(--brand-rgb), 0.2);
}
.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--s3);
  color: #F59E0B;
}
.testimonial-card__stars svg { width: 14px; height: 14px; fill: currentColor; }
.testimonial-card__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--s4);
}
.testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.testimonial-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  border: 2px solid rgba(var(--brand-rgb), 0.25);
}
.testimonial-card__name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.testimonial-card__role {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: 2px;
}

/* Dark mode for testimonials */
html.dark .testimonials-section { background: var(--bg-subtle); }
html.dark .testimonial-card {
  background: #334155;
  border-color: rgba(255,255,255,0.07);
}
html.dark .testimonial-card:hover { border-color: rgba(var(--brand-rgb), 0.35); }

/* Trust badge (sobre-nosotros) */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s5);
  padding: var(--s3) var(--s5);
  background: rgba(var(--brand-rgb), 0.07);
  border: 1px solid rgba(var(--brand-rgb), 0.2);
  border-radius: var(--r2);
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}
.trust-badge svg { flex-shrink: 0; }
html.dark .trust-badge {
  background: rgba(var(--brand-rgb), 0.12);
  border-color: rgba(var(--brand-rgb), 0.3);
}

/* ================================================================
   CATALOG MODAL — Email capture
   ================================================================ */
.catalog-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-normal);
}
.catalog-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.catalog-modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  padding: var(--s9);
  max-width: 460px;
  width: 100%;
  box-shadow: var(--sh-2xl);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--t-spring);
  position: relative;
}
.catalog-modal-overlay.open .catalog-modal {
  transform: translateY(0) scale(1);
}
.catalog-modal__close {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.catalog-modal__close:hover { background: rgba(var(--brand-rgb),0.1); color: var(--brand); }
.catalog-modal__icon {
  width: 56px; height: 56px;
  background: rgba(var(--brand-rgb), 0.08);
  border-radius: var(--r3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s5);
  color: var(--brand);
}
.catalog-modal h3 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: var(--s2);
}
.catalog-modal p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--s6);
  line-height: 1.6;
}
.catalog-modal__success {
  display: none;
  text-align: center;
  padding: var(--s6) 0;
}
.catalog-modal__success.visible { display: block; }
.catalog-modal__success-icon {
  width: 64px; height: 64px;
  background: rgba(34,197,94,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--s4);
  color: #22c55e;
}
.catalog-modal__success h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--s2);
}
.catalog-modal__success p { color: var(--text-muted); font-size: 0.875rem; }

/* Admin panel */
.admin-panel {
  display: none;
  position: fixed;
  bottom: var(--s7); left: var(--s7);
  z-index: 990;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--r3);
  padding: var(--s4) var(--s5);
  font-size: 0.78rem;
  box-shadow: var(--sh-2xl);
}
.admin-panel.visible { display: block; }
.admin-panel__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--s3);
}
.admin-panel__count { font-size: 1.2rem; font-weight: 800; margin-bottom: var(--s3); }
.admin-panel__btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  background: var(--brand); color: var(--white);
  border: none; border-radius: var(--r2);
  padding: var(--s2) var(--s4); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: background var(--t-fast);
}
.admin-panel__btn:hover { background: var(--brand-dark); }

html.dark .catalog-modal {
  background: #1e293b;
  border-color: rgba(255,255,255,0.08);
}

/* ================================================================
   DARK MODE TOGGLE BUTTON
   ================================================================ */
.dark-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r2);
  border: 1.5px solid var(--border-dark);
  background: var(--bg-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast), transform var(--t-fast);
  flex-shrink: 0;
}
.dark-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: rotate(15deg);
}
.dark-toggle svg { display: none; pointer-events: none; }
/* Light mode: show moon icon */
html:not(.dark) .dark-toggle .dark-toggle__moon { display: block; }
/* Dark mode: show sun icon */
html.dark .dark-toggle .dark-toggle__sun { display: block; }

/* ================================================================
   ABOUT LOCATION GRID RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .about-location-grid { grid-template-columns: 1fr !important; }
}

/* ================================================================
   CHATBOT ASISTENTE
   ================================================================ */

/* Botón flotante */
.chatbot-toggle {
  position: fixed;
  bottom: 110px;
  right: var(--s7);
  width: 60px; height: 60px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-brand);
  z-index: 995;
  border: none;
  cursor: pointer;
  transition: transform var(--t-spring), box-shadow var(--t-fast);
  animation: chatPulse 3s ease-in-out infinite;
}
.chatbot-toggle:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 28px rgba(var(--brand-rgb), 0.55);
  animation: none;
}
.chatbot-toggle svg { width: 28px; height: 28px; fill: #fff; }
.chatbot-toggle__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  padding: var(--s2) var(--s3);
  border-radius: var(--r2);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
}
.chatbot-toggle:hover .chatbot-toggle__tooltip { opacity: 1; }
@keyframes chatPulse {
  0%, 100% { box-shadow: var(--sh-brand); }
  50%       { box-shadow: 0 4px 32px rgba(var(--brand-rgb), 0.5), 0 0 0 8px rgba(var(--brand-rgb), 0.1); }
}

/* Ventana de chat */
.chatbot {
  position: fixed;
  bottom: 182px;
  right: var(--s7);
  width: 350px;
  max-height: 480px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  box-shadow: var(--sh-2xl);
  display: flex;
  flex-direction: column;
  z-index: 995;
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.85) translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s ease;
}
.chatbot.chatbot--open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Header */
.chatbot__header {
  background: var(--brand);
  padding: var(--s3) var(--s4);
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-shrink: 0;
}
.chatbot__header-avatar {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chatbot__header-avatar svg { width: 20px; height: 20px; fill: #fff; }
.chatbot__header-info { flex: 1; }
.chatbot__header-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.chatbot__header-status {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 4px;
}
.chatbot__header-status::before {
  content: '';
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
}
.chatbot__close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.8);
  padding: 4px;
  border-radius: var(--r1);
  display: flex;
  align-items: center;
  transition: color var(--t-fast), background var(--t-fast);
}
.chatbot__close:hover { color: #fff; background: rgba(255,255,255,0.15); }
.chatbot__close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Mensajes */
.chatbot__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  scroll-behavior: smooth;
}
.chatbot__messages::-webkit-scrollbar { width: 4px; }
.chatbot__messages::-webkit-scrollbar-track { background: transparent; }
.chatbot__messages::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 4px; }

.chatbot__bubble {
  max-width: 85%;
  padding: var(--s2) var(--s3);
  border-radius: var(--r3);
  font-size: 0.825rem;
  line-height: 1.5;
  animation: bubbleIn 0.2s ease;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chatbot__bubble--bot {
  background: var(--bg-muted);
  color: var(--text);
  border-bottom-left-radius: var(--r1);
  align-self: flex-start;
}
.chatbot__bubble--user {
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: var(--r1);
  align-self: flex-end;
}

/* Opciones rápidas */
.chatbot__options {
  padding: var(--s2) var(--s4) var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  flex-shrink: 0;
  border-top: 1px solid var(--border);
}
.chatbot__opt-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: var(--s2) var(--s3);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
  line-height: 1.4;
}
.chatbot__opt-btn:hover {
  border-color: var(--brand);
  background: rgba(var(--brand-rgb), 0.05);
  color: var(--brand);
}
.chatbot__opt-btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.chatbot__opt-btn--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

/* Responsive móvil */
@media (max-width: 480px) {
  .chatbot-toggle { bottom: 98px; right: var(--s5); width: 52px; height: 52px; }
  .chatbot-toggle svg { width: 24px; height: 24px; }
  .chatbot {
    bottom: 164px;
    right: var(--s5);
    left: var(--s5);
    width: auto;
    max-height: 420px;
  }
}

/* Dark mode */
html.dark .chatbot {
  background: #1E293B;
  border-color: rgba(255,255,255,0.1);
}
html.dark .chatbot__bubble--bot {
  background: #334155;
  color: var(--text);
}
html.dark .chatbot__options {
  border-top-color: rgba(255,255,255,0.08);
}
html.dark .chatbot__opt-btn {
  background: #253047;
  border-color: rgba(255,255,255,0.1);
  color: var(--text);
}
html.dark .chatbot__opt-btn:hover {
  border-color: var(--brand-light);
  background: rgba(var(--brand-rgb), 0.12);
  color: var(--brand-light);
}

/* ================================================================
   DARK MODE — CSS variable overrides
   ================================================================ */
html.dark {
  --bg:           #0F172A;
  --bg-subtle:    #1E293B;
  --bg-muted:     #253047;
  --text:         #E2E8F0;
  --text-muted:   #94A3B8;
  --text-subtle:  #64748B;
  --border:       rgba(255,255,255,0.08);
  --border-dark:  rgba(255,255,255,0.16);
}

/* Navbar */
html.dark .navbar {
  background: #0F172A;
  border-bottom-color: rgba(255,255,255,0.08);
}
html.dark .navbar--scrolled {
  background: rgba(15,23,42,0.92);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.05);
}
html.dark .navbar__logo img { filter: brightness(0) invert(1); }
html.dark .navbar__menu a { color: rgba(255,255,255,0.7); }
html.dark .navbar__menu a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
html.dark .navbar__menu a.active { color: var(--brand-light); }
html.dark .navbar__burger span { background: rgba(255,255,255,0.8); }

/* Sections */
html.dark .section--gray { background: var(--bg-subtle); }
html.dark .section--white { background: var(--bg); }

/* Cards */
html.dark .value-card,
html.dark .mission-card,
html.dark .cat-card,
html.dark .product-card,
html.dark .service-card {
  background: #334155;
  border-color: rgba(255,255,255,0.1);
}
html.dark .value-card:hover,
html.dark .mission-card:hover,
html.dark .cat-card:hover { border-color: rgba(var(--brand-rgb), 0.3); }

/* Brands marquee */
html.dark .brand-logo {
  background: var(--bg-subtle);
  border-color: rgba(255,255,255,0.08);
}

/* Footer */
html.dark .footer {
  background: #020617;
  border-top-color: rgba(255,255,255,0.06);
}

/* Contact */
html.dark .contact-card,
html.dark .contact-sidebar-card,
html.dark .contact-info-card {
  background: #334155;
  border-color: rgba(255,255,255,0.1);
}
html.dark .contact-card:hover { border-color: rgba(var(--brand-rgb), 0.4); }

/* Forms */
html.dark .form-control {
  background: var(--bg-subtle);
  border-color: rgba(255,255,255,0.1);
  color: var(--text);
}
html.dark .form-control:focus {
  border-color: var(--brand);
}
html.dark .form-control::placeholder { color: var(--text-subtle); }
html.dark .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* Cert cards on dark section (no change needed since we use light background) */
html.dark .cert-card {
  background: rgba(255,255,255,0.88);
}

/* Catalog */
html.dark .catalog-header-bar {
  background: #334155;
  border-color: rgba(255,255,255,0.1);
}
html.dark .tech-item {
  background: #334155;
  border-color: rgba(255,255,255,0.1);
}
html.dark .tech-item:hover { border-color: rgba(var(--brand-rgb), 0.35); }
html.dark .catalog-viewer iframe { border-color: rgba(255,255,255,0.08); }
html.dark .catalog-gate {
  background: #253047;
  border-color: rgba(255,255,255,0.1);
}
html.dark .catalog-gate:hover { border-color: rgba(var(--brand-rgb), 0.4); }

/* Filter tabs (productos) */
html.dark .filter-tab {
  background: var(--bg-subtle);
  border-color: rgba(255,255,255,0.1);
  color: var(--text-muted);
}
html.dark .filter-tab:hover { border-color: var(--brand); color: var(--brand); }
html.dark .filter-tab.active { background: var(--brand); color: var(--white); border-color: var(--brand); }

/* Hours table */
html.dark .hours-table td { color: var(--text); border-bottom-color: rgba(255,255,255,0.06); }

/* Dark toggle in dark mode */
html.dark .dark-toggle {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
}
html.dark .dark-toggle:hover {
  border-color: var(--brand-light);
  color: var(--brand-light);
}
