/* =============================================================
   INCAMET PERÚ — styles.css
   Archetype: Dark Corporate Premium (industria metalmecánica B2B)
   Paleta: Deep Black + Brand Blue #2B308C + Silver
   Versión: 2.0.0 — 2026-05-25
   ============================================================= */

/* =============================================================
   1. TOKENS — Custom Properties
   ============================================================= */
:root {
  /* Backgrounds */
  --bg:        #0D0D0D;
  --bg-2:      #111118;
  --bg-card:   #16161E;
  --bg-card-2: #1E1E2A;

  /* Text */
  --text:      #EDF2F7;
  --text-2:    #A0AEC0;
  --text-3:    #4A5568;

  /* Accent — Brand Blue (identity corporativa) */
  --brand:     #2B308C;
  --brand-2:   #3D44C4;
  --brand-d:   #1F2468;
  --brand-glow: rgba(43,48,140,0.22);

  /* Silver / Secondary */
  --steel:     #94A3B8;
  --steel-2:   #64748B;

  /* Lines */
  --line:      rgba(148,163,184,0.10);
  --line-2:    rgba(148,163,184,0.05);

  /* Fonts */
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Easings */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Spacing */
  --gutter:    clamp(1.25rem, 4vw, 2rem);
  --container: 1340px;
  --radius:    12px;
  --radius-sm: 6px;

  /* Z-index layers */
  --z-base:    1;
  --z-card:    10;
  --z-nav:     100;
  --z-splash:  1000;
  --z-float:   200;
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button  { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a       { color: inherit; text-decoration: none; }
p       { text-wrap: pretty; }
ul, ol  { list-style: none; }
h1,h2,h3,h4 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 700;
}

::selection {
  background: var(--brand);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: fixed;
  top: -100px; left: 1rem;
  padding: .6rem 1.2rem;
  background: var(--brand);
  color: #fff;
  z-index: var(--z-splash);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(var(--container), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--brand);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  color: var(--text);
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-2);
  max-width: 60ch;
  line-height: 1.75;
}

/* =============================================================
   4. SPLASH LOADER
   ============================================================= */
.splash {
  position: fixed;
  inset: 0;
  z-index: var(--z-splash);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  /* CSS safety: auto-hide at 4.5s if JS fails */
  animation: splashSafety .01s 4.5s forwards;
}

@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; visibility: hidden; }
}

.splash.is-out {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.splash-logo {
  width: min(240px, 60vw);
  opacity: 0;
  animation: splashLogoIn .8s var(--ease-out) .2s forwards;
}
@keyframes splashLogoIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.splash-bar {
  width: 180px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.splash-bar-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
  animation: splashProgress 1.8s var(--ease-soft) .4s forwards;
  transform-origin: left;
  transform: scaleX(0);
}
@keyframes splashProgress {
  to { transform: scaleX(1); }
}

/* =============================================================
   5. NAVIGATION
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding-block: 1.1rem;
  transition: background .4s var(--ease-soft), backdrop-filter .4s, padding .4s;
}

.nav.is-scrolled {
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding-block: .75rem;
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo svg { width: 170px; height: auto; }

.nav-links {
  display: none;
  gap: 0;
  align-items: center;
}

.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  transition: color .25s, background .25s;
  position: relative;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: .9rem; right: .9rem;
  height: 1.5px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  display: none;
  font-size: .85rem;
  font-weight: 600;
  padding: .6rem 1.4rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: background .25s, transform .2s var(--ease-bounce);
}
.nav-cta:hover {
  background: var(--brand-2);
  transform: translateY(-2px);
}

/* Hamburger */
.nav-toggle {
  width: 40px; height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.nav-toggle:hover { background: var(--line); }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .25s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background: rgba(13,13,13,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.nav-drawer.is-open {
  opacity: 1;
  pointer-events: all;
}
.nav-drawer a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-2);
  padding: .5rem 2rem;
  transition: color .2s;
}
.nav-drawer a:hover { color: var(--brand); }
.nav-drawer .drawer-cta {
  margin-top: 1.5rem;
  font-size: 1rem;
  background: var(--brand);
  color: #fff;
  padding: .75rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
}

/* =============================================================
   6. HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  transition: transform 8s ease;
}
.hero.is-ready .hero-bg img { transform: scale(1); }

/* Dark overlay — strong left, lighter right */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg,
      rgba(13,13,13,0.96) 0%,
      rgba(13,13,13,0.88) 45%,
      rgba(13,13,13,0.55) 100%
    );
}

/* Brand blue atmospheric mesh glow */
.hero-mesh {
  position: absolute;
  inset: -60%;
  z-index: 2;
  background:
    radial-gradient(circle 900px at 8% 60%, rgba(43,48,140,0.22) 0%, transparent 55%),
    radial-gradient(circle 500px at 90% 10%, rgba(30,40,100,0.14) 0%, transparent 55%);
  filter: blur(50px) saturate(150%);
  animation: meshDrift 22s ease-in-out infinite;
  pointer-events: none;
}
@keyframes meshDrift {
  0%,100% { transform: scale(1) translateX(0);  }
  33%     { transform: scale(1.04) translateX(-1.5%); }
  66%     { transform: scale(0.97) translateX(2%); }
}

/* Grain overlay */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(var(--container), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 7rem 5rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.75rem;
}
.hero-meta-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .5; transform: scale(.7); }
}
.hero-meta-text {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-2);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 14ch;
  margin-bottom: 1.75rem;
}
.hero-title em {
  font-style: normal;
  color: var(--brand);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-2);
  max-width: 52ch;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  font-weight: 600;
  padding: .85rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background .25s, color .25s, border-color .25s, transform .2s var(--ease-bounce), box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
  box-shadow: 0 12px 40px rgba(43,48,140,0.42);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover {
  background: var(--brand);
  color: #fff;
}

/* Arrow icon inside btn */
.btn-arrow {
  font-size: 1.1rem;
  transition: transform .25s var(--ease-out);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--text-3);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--brand), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 1; transform: scaleY(1); }
  50%     { opacity: .4; transform: scaleY(.7); }
}

/* =============================================================
   7. STATS STRIP
   ============================================================= */
.stats {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 2.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-item:nth-child(2n) { border-right: none; }
.stat-item:nth-last-child(-n+2) { border-bottom: none; }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: .25rem;
}
.stat-label {
  font-size: .8rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-family: var(--font-mono);
}

/* =============================================================
   8. REVEAL ANIMATIONS
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Safety net: [data-split] elements must NOT be hidden by .reveal */
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }
.reveal-delay-6 { transition-delay: .6s; }

/* =============================================================
   9. ABOUT / QUIÉNES SOMOS
   ============================================================= */
.about {
  padding-block: clamp(5rem, 10vw, 8rem);
  background: var(--bg-2);
}

.about-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-soft);
}
.about-image:hover img { transform: scale(1.04); }

.about-image-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.about-badge-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.about-badge-label {
  font-size: .7rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-family: var(--font-mono);
  margin-top: .2rem;
}

.about-content .section-title { margin-bottom: 1.5rem; }

.about-text {
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.about-pillar {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  border-top: 2px solid var(--brand);
}
.about-pillar-title {
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  margin-bottom: .3rem;
}
.about-pillar-text {
  font-size: .82rem;
  color: var(--text-3);
  line-height: 1.6;
}

/* =============================================================
   10. SERVICES
   ============================================================= */
.services {
  padding-block: clamp(5rem, 10vw, 8rem);
  background: var(--bg);
}

.services-header {
  margin-bottom: 3.5rem;
  max-width: 700px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--bg-card);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: background .3s;
  cursor: default;
}
.service-card:hover { background: var(--bg-card-2); }

.service-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-glow);
  border: 1px solid rgba(43,48,140,0.35);
  border-radius: var(--radius-sm);
  color: var(--brand);
  transition: background .3s, transform .3s var(--ease-bounce);
}
.service-card:hover .service-icon {
  background: rgba(43,48,140,0.30);
  transform: scale(1.08);
}
.service-icon svg { width: 22px; height: 22px; }

.service-body {}
.service-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}
.service-desc {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: .4rem;
}
.service-detail {
  font-size: .78rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}

/* =============================================================
   11. PRODUCTS
   ============================================================= */
.products {
  padding-block: clamp(5rem, 10vw, 8rem);
  background: var(--bg-2);
}

.products-header {
  margin-bottom: 2.5rem;
}

/* Filter tabs */
.products-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-size: .8rem;
  font-weight: 500;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-3);
  background: transparent;
  cursor: pointer;
  transition: all .25s var(--ease-out);
}
.filter-btn:hover,
.filter-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease-out), box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: rgba(43,48,140,0.45);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(43,48,140,0.28);
}
.product-card[data-hidden="true"] { display: none; }

.product-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-card-2);
  flex-shrink: 0;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-soft);
}
.product-card:hover .product-img img { transform: scale(1.06); }

.product-info {
  padding: 1.1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-cat {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand);
  font-family: var(--font-mono);
  margin-bottom: .35rem;
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem;
  line-height: 1.2;
}
.product-desc {
  font-size: .78rem;
  color: var(--text-3);
  line-height: 1.6;
  flex: 1;
}

.products-cta {
  margin-top: 3rem;
  text-align: center;
}

/* =============================================================
   12. SECTORS
   ============================================================= */
.sectors {
  padding-block: clamp(5rem, 10vw, 8rem);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Decorative background line */
.sectors::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--line) 20%, var(--line) 80%, transparent);
  pointer-events: none;
}

.sectors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 3.5rem;
}

.sector-item {
  background: var(--bg-card);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: background .3s;
}
.sector-item:hover { background: var(--bg-card-2); }

.sector-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-glow);
  border: 1px solid rgba(43,48,140,0.30);
  border-radius: var(--radius-sm);
  color: var(--brand);
}
.sector-icon svg { width: 20px; height: 20px; }

.sector-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .35rem;
}
.sector-desc {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* =============================================================
   13. ADVANTAGES
   ============================================================= */
.advantages {
  padding-block: clamp(5rem, 10vw, 8rem);
  background: var(--bg-2);
}

.advantages-header {
  margin-bottom: 3.5rem;
}

.advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.advantage-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: border-color .3s, box-shadow .3s;
}
.advantage-item:hover {
  border-color: rgba(43,48,140,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.advantage-num {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--brand);
  opacity: .6;
  flex-shrink: 0;
  padding-top: .15rem;
  letter-spacing: .05em;
}
.advantage-content {}
.advantage-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}
.advantage-desc {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* =============================================================
   13a. HERO ENTRANCE (CSS puro — reemplaza las animaciones GSAP)
   ============================================================= */
@media (prefers-reduced-motion: no-preference) {
  .hero-meta     { animation: heroIn .7s var(--ease-out) .15s both; }
  .hero-title    { animation: heroIn .8s var(--ease-out) .28s both; }
  .hero-subtitle { animation: heroIn .8s var(--ease-out) .46s both; }
  .hero-actions  { animation: heroIn .8s var(--ease-out) .62s both; }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* =============================================================
   13b. MARCAS DE CHASIS (trust strip)
   ============================================================= */
.brands {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.brands-title {
  text-align: center;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 1.5rem;
}
.brands-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem .75rem;
}
.brands-list li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.95rem, 2vw, 1.35rem);
  color: var(--text-3);
  padding: .3rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color .3s, border-color .3s, background .3s;
}
.brands-list li:hover {
  color: var(--text);
  border-color: rgba(43,48,140,0.40);
  background: var(--bg-card);
}

/* =============================================================
   13c. FAQ — acordeón nativo <details>
   ============================================================= */
.faq {
  padding-block: clamp(5rem, 10vw, 8rem);
  background: var(--bg);
}
.faq-header {
  margin-bottom: 3rem;
  text-align: center;
}
.faq-header .section-eyebrow { justify-content: center; }
.faq-header .section-subtitle { margin-inline: auto; }

.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: .85rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.faq-item:hover  { border-color: rgba(43,48,140,0.28); }
.faq-item[open]  { border-color: rgba(43,48,140,0.40); }

.faq-q {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--brand-2);
  transition: transform .3s var(--ease-out);
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }

.faq-a {
  padding: 0 1.5rem 1.4rem;
  color: var(--text-2);
  font-size: .95rem;
  line-height: 1.75;
}
.faq-a a { color: var(--brand-2); text-decoration: underline; }
.faq-item[open] .faq-a { animation: faqReveal .35s var(--ease-out); }

@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item[open] .faq-a { animation: none; }
  .faq-q::after          { transition: none; }
}

/* =============================================================
   14. CTA BANNER
   ============================================================= */
.cta-banner {
  position: relative;
  padding-block: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
}
.cta-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .25;
}
.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(13,13,13,0.97) 40%,
    rgba(13,13,13,0.82) 100%
  );
}
.cta-banner-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(43,48,140,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner-content {
  position: relative;
  text-align: center;
}
.cta-banner-title {
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
}
.cta-banner-title em { color: var(--brand); font-style: normal; }
.cta-banner-subtitle {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  color: var(--text-2);
  margin-bottom: 2.5rem;
  max-width: 50ch;
  margin-inline: auto;
}
.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* =============================================================
   15. CONTACT
   ============================================================= */
.contact {
  padding-block: clamp(5rem, 10vw, 8rem);
  background: var(--bg);
}

.contact-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-info-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-glow);
  border: 1px solid rgba(43,48,140,0.30);
  border-radius: var(--radius-sm);
  color: var(--brand);
  margin-top: .1rem;
}
.contact-info-icon svg { width: 18px; height: 18px; }
.contact-info-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  font-family: var(--font-mono);
  margin-bottom: .2rem;
}
.contact-info-value {
  font-size: .95rem;
  color: var(--text);
  font-weight: 500;
}
.contact-info-value a:hover { color: var(--brand); }

.social-links {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}
.social-link {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  transition: border-color .25s, color .25s, background .25s;
}
.social-link:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-glow);
}
.social-link svg { width: 18px; height: 18px; }

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form-label {
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-family: var(--font-mono);
}
.form-input,
.form-textarea,
.form-select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font: inherit;
  font-size: .9rem;
  color: var(--text);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  width: 100%;
  -webkit-appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-3); }
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43,48,140,0.22);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-privacy {
  font-size: .78rem;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.form-privacy a { color: var(--brand); text-decoration: underline; }

.form-submit {
  width: 100%;
  padding: .9rem;
  background: var(--brand);
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background .25s, transform .2s var(--ease-bounce), box-shadow .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}
.form-submit:hover {
  background: var(--brand-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(43,48,140,0.35);
}
.form-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #86efac;
}
.form-status.error {
  display: block;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
}

/* =============================================================
   16. FOOTER
   ============================================================= */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  padding-block: 4rem 2rem;
}

.footer-top {
  display: grid;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.footer-brand {}
.footer-logo { margin-bottom: 1rem; }
.footer-logo svg { width: 160px; }
.footer-tagline {
  font-size: .88rem;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 32ch;
  margin-bottom: 1.5rem;
}

.footer-nav-title {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-2);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}
.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-nav-list a {
  font-size: .875rem;
  color: var(--text-3);
  transition: color .2s;
}
.footer-nav-list a:hover { color: var(--brand); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: .78rem;
  color: var(--text-3);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-legal a {
  font-size: .78rem;
  color: var(--text-3);
  transition: color .2s;
}
.footer-legal a:hover { color: var(--brand); }

/* =============================================================
   17. WHATSAPP FLOAT
   ============================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: var(--z-float);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
}

.wa-btn {
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: transform .25s var(--ease-bounce), box-shadow .25s;
  cursor: pointer;
  text-decoration: none;
}
.wa-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 40px rgba(37,211,102,0.55);
}
.wa-btn svg { width: 28px; height: 28px; }

.wa-pulse {
  position: absolute;
  top: 0; right: 0;
  width: 12px; height: 12px;
  background: #EF4444;          /* rojo — indicador de actividad, contrasta con verde WA */
  border-radius: 50%;
  border: 2px solid var(--bg);  /* ring del color de fondo, adapts dark/light */
  animation: waPulse 2s ease-in-out infinite;
}
@keyframes waPulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.3); }
}

.wa-tooltip {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .5rem .9rem;
  font-size: .78rem;
  color: var(--text-2);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  transform: none;
}

/* =============================================================
   18. SCROLL PROGRESS BAR
   ============================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--brand);
  z-index: calc(var(--z-nav) + 1);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .1s linear;
  border-radius: 0 2px 2px 0;
}

/* =============================================================
   19. LEGAL PAGES (shared styles)
   ============================================================= */
.legal-hero {
  padding-top: 9rem;
  padding-bottom: 3rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text);
}
.legal-hero p {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: .8rem;
  margin-top: .75rem;
}

.legal-body {
  padding-block: 4rem;
  background: var(--bg);
}
.legal-content {
  max-width: 780px;
  margin-inline: auto;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text);
  margin: 2.5rem 0 .75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.legal-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.legal-content p, .legal-content li {
  font-size: .925rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: .75rem;
}
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content a { color: var(--brand); text-decoration: underline; }
.legal-content strong { color: var(--text); font-weight: 600; }

/* =============================================================
   20. RESPONSIVE — TABLET (≥720px)
   ============================================================= */
@media (min-width: 720px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .stat-item { border-bottom: none; }
  .stat-item:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat-item:last-child { border-right: none; }

  .about-grid { grid-template-columns: 1fr 1fr; }

  .services-grid { grid-template-columns: 1fr 1fr; }

  .products-grid { grid-template-columns: repeat(3, 1fr); }

  .sectors-grid { grid-template-columns: 1fr 1fr; }

  .advantages-grid { grid-template-columns: 1fr 1fr; }

  .contact-grid { grid-template-columns: 1fr 1.3fr; }

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

  .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

/* =============================================================
   21. RESPONSIVE — DESKTOP (≥960px)
   ============================================================= */
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta   { display: inline-flex; }
  .nav-toggle { display: none; }

  .services-grid { grid-template-columns: 1fr 1fr; }

  .products-grid { grid-template-columns: repeat(4, 1fr); }

  .sectors-grid { grid-template-columns: repeat(3, 1fr); }

  .advantages-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================================
   22. RESPONSIVE — LARGE DESKTOP (≥1280px)
   ============================================================= */
@media (min-width: 1280px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   23. REDUCED MOTION — Only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  /* Only gate intrusive infinite animations */
  .hero-mesh   { animation: none; }
  .splash-bar-fill { animation: none; transform: scaleX(1); }
  .hero-scroll-line { animation: none; }
  .hero-meta-dot { animation: none; }
  .wa-pulse    { animation: none; }
  /* DO NOT disable: tilts, reveals, hover transitions, count-up */
}

/* =============================================================
   24. HOVER-ONLY interactions (not on touch)
   ============================================================= */
@media (hover: none) {
  .product-card:hover  { transform: none; }
  .btn:hover           { transform: none; }
  .nav-cta:hover       { transform: none; }
}

/* =============================================================
   25. THEME TOGGLE BUTTON
   ============================================================= */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color .25s var(--ease-out), color .25s, background .25s, transform .2s var(--ease-bounce);
}
.theme-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-glow);
  transform: rotate(15deg);
}
.theme-toggle svg {
  width: 16px; height: 16px;
  pointer-events: none;
  flex-shrink: 0;
}

/* Dark mode (default): show sun ☀ → click to go light */
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: block; }

/* Light mode: show moon ☽ → click to go dark */
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun  { display: none; }

/* Drawer theme toggle variant — full-width with label */
.theme-toggle-drawer {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: auto;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .55rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-2);
  background: transparent;
  margin-top: .5rem;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.theme-toggle-drawer:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-glow);
}
.theme-toggle-drawer svg { width: 18px; height: 18px; }
.theme-toggle-drawer .icon-moon { display: none; }
.theme-toggle-drawer .icon-sun  { display: block; }
html[data-theme="light"] .theme-toggle-drawer .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle-drawer .icon-sun  { display: none; }

/* Label text via CSS — no JS needed */
.theme-toggle-label::before         { content: 'Modo claro'; }
html[data-theme="light"] .theme-toggle-label::before { content: 'Modo oscuro'; }

/* =============================================================
   26. THEME TRANSITION — smooth cross-fade on toggle
   ============================================================= */
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition:
    background-color .35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color     .35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    color            .35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    fill             .35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow       .35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* =============================================================
   27. LIGHT MODE — full palette override
   Activated by html[data-theme="light"]
   ============================================================= */
html[data-theme="light"] {
  color-scheme: light;

  /* ── Background tokens ── */
  --bg:        #F5F5FA;
  --bg-2:      #ECEDF5;
  --bg-card:   #FFFFFF;
  --bg-card-2: #F0F0F8;

  /* ── Text tokens ── */
  --text:      #0D0D14;
  --text-2:    #374151;
  --text-3:    #9CA3AF;

  /* ── Brand keeps the same #2B308C — works on light bg ── */
  --brand-glow: rgba(43,48,140,0.10);

  /* ── Lines / borders ── */
  --line:      rgba(0,0,0,0.08);
  --line-2:    rgba(0,0,0,0.04);

  /* ── Secondary ── */
  --steel:     #6B7280;
  --steel-2:   #9CA3AF;
}

/* ── Body background transitions via token ── */
html[data-theme="light"] body { background: var(--bg); }

/* ── Selection highlight ── */
html[data-theme="light"] ::selection { background: var(--brand); color: #fff; }

/* ──────────────────────────────────────────────
   NAVIGATION — light mode
   SIEMPRE muestra fondo glass (incluso sin scroll)
   así el cambio de modo es inmediatamente visible.
   La opacidad aumenta al hacer scroll (is-scrolled).
   ────────────────────────────────────────────── */
html[data-theme="light"] .nav {
  background: rgba(245,245,250,0.75);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
html[data-theme="light"] .nav.is-scrolled {
  background: rgba(245,245,250,0.97);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-block: .75rem;
}
/* Todos los estados de nav en light mode: texto oscuro */
html[data-theme="light"] .nav .nav-link         { color: var(--text-2); }
html[data-theme="light"] .nav .nav-link:hover   { color: var(--text); }
/* Logo INCAMET — oscuro sobre fondo claro (ambos estados) */
html[data-theme="light"] .nav .logo-incamet     { fill: #0D0D14; }
/* Hamburger lines — adaptan via --text token (#0D0D14 en light) */
html[data-theme="light"] .nav-toggle span       { background: #0D0D14; }

/* Mobile drawer — full light bg */
html[data-theme="light"] .nav-drawer {
  background: rgba(245,245,250,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
html[data-theme="light"] .nav-drawer a { color: var(--text-2); }
html[data-theme="light"] .nav-drawer a:hover { color: var(--brand); }
html[data-theme="light"] .nav-drawer .drawer-cta {
  background: var(--brand);
  color: #fff;
}

/* ──────────────────────────────────────────────
   SPLASH — always dark (brand moment)
   ────────────────────────────────────────────── */
html[data-theme="light"] .splash { background: #0D0D14; }

/* ──────────────────────────────────────────────
   HERO — always dark overlay (image section)
   Override text colors so they stay white on the
   dark overlay regardless of the page theme
   ────────────────────────────────────────────── */
html[data-theme="light"] .hero-title     { color: #EDF2F7; }
html[data-theme="light"] .hero-title em  { color: var(--brand-2); }
html[data-theme="light"] .hero-subtitle  { color: rgba(237,242,247,0.78); }
html[data-theme="light"] .hero-meta-text { color: rgba(237,242,247,0.55); }
html[data-theme="light"] .hero-scroll    { color: rgba(237,242,247,0.35); }
html[data-theme="light"] .hero .btn-ghost {
  color: rgba(237,242,247,0.9);
  border-color: rgba(237,242,247,0.22);
}
html[data-theme="light"] .hero .btn-ghost:hover {
  border-color: var(--brand-2);
  color: var(--brand-2);
  background: rgba(61,68,196,0.12);
}

/* ──────────────────────────────────────────────
   STATS STRIP — light
   ────────────────────────────────────────────── */
html[data-theme="light"] .stats {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.08);
}
html[data-theme="light"] .stat-item { border-color: rgba(0,0,0,0.08); }

/* ──────────────────────────────────────────────
   ABOUT section image badge — stays dark
   (positioned over the photo, always legible)
   ────────────────────────────────────────────── */
html[data-theme="light"] .about-image-badge {
  background: rgba(13,13,20,0.90);
  border-color: rgba(255,255,255,0.10);
}
html[data-theme="light"] .about-badge-label { color: rgba(237,242,247,0.55); }

/* About pillars */
html[data-theme="light"] .about-pillar {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ──────────────────────────────────────────────
   SERVICES — light cards
   ────────────────────────────────────────────── */
html[data-theme="light"] .service-card {
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
html[data-theme="light"] .service-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

/* ──────────────────────────────────────────────
   PRODUCTS — light cards with soft shadow
   ────────────────────────────────────────────── */
html[data-theme="light"] .product-card {
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
html[data-theme="light"] .product-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(43,48,140,0.18);
}

/* ──────────────────────────────────────────────
   ADVANTAGES — light cards
   ────────────────────────────────────────────── */
html[data-theme="light"] .advantage-item {
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
html[data-theme="light"] .advantage-item:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

/* ──────────────────────────────────────────────
   BRANDS strip — light
   ────────────────────────────────────────────── */
html[data-theme="light"] .brands { background: #FFFFFF; }
html[data-theme="light"] .brands-list li:hover {
  background: #F5F5FA;
  border-color: rgba(43,48,140,0.30);
}

/* ──────────────────────────────────────────────
   FAQ — light cards
   ────────────────────────────────────────────── */
html[data-theme="light"] .faq-item {
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
html[data-theme="light"] .faq-item[open] {
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

/* ──────────────────────────────────────────────
   CTA BANNER — always dark (image with overlay)
   ────────────────────────────────────────────── */
html[data-theme="light"] .cta-banner-title    { color: #EDF2F7; }
html[data-theme="light"] .cta-banner-title em { color: var(--brand-2); }
html[data-theme="light"] .cta-banner-subtitle { color: rgba(237,242,247,0.78); }
html[data-theme="light"] .cta-banner .btn-ghost {
  color: rgba(237,242,247,0.9);
  border-color: rgba(237,242,247,0.28);
}
html[data-theme="light"] .cta-banner .btn-ghost:hover,
html[data-theme="light"] .cta-banner .btn-ghost:focus-visible {
  border-color: var(--brand-2);
  color: var(--brand-2);
  background: rgba(61,68,196,0.18);
}

/* ──────────────────────────────────────────────
   CONTACT FORM — elevated card in light mode
   ────────────────────────────────────────────── */
html[data-theme="light"] .contact-form {
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
}
html[data-theme="light"] .form-input:focus,
html[data-theme="light"] .form-textarea:focus,
html[data-theme="light"] .form-select:focus {
  box-shadow: 0 0 0 3px rgba(43,48,140,0.15);
}

/* ──────────────────────────────────────────────
   FOOTER — slightly darker surface in light mode
   ────────────────────────────────────────────── */
html[data-theme="light"] .footer {
  background: #E8E9F2;
  border-top-color: rgba(0,0,0,0.08);
}
html[data-theme="light"] .footer-logo .logo-incamet { fill: #0D0D14; }

/* ──────────────────────────────────────────────
   LEGAL PAGE HERO — light mode
   ────────────────────────────────────────────── */
html[data-theme="light"] .legal-hero h1 { color: var(--text); }

/* ──────────────────────────────────────────────
   SCROLL PROGRESS — stays brand blue
   ────────────────────────────────────────────── */
/* (no override needed — uses var(--brand) which is stable) */

/* ──────────────────────────────────────────────
   WhatsApp float — always green (brand is fixed)
   ────────────────────────────────────────────── */
/* (no override needed) */
