/* =============================================================
   E-Control · Industrial B2B Dark Warm
   Palette: warm near-black + red-orange accent (#f03c28)
   Fonts: IBM Plex Sans (display/body) · IBM Plex Mono (technical/data)
   ============================================================= */

/* ── 0. @view-transition ──────────────────────────────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root) {
  animation: 0.45s cubic-bezier(0.16, 1, 0.3, 1) both fadeOut;
}
::view-transition-new(root) {
  animation: 0.45s cubic-bezier(0.16, 1, 0.3, 1) both fadeIn;
}
@keyframes fadeOut { to   { opacity: 0; transform: translateY(-10px); } }
@keyframes fadeIn  { from { opacity: 0; transform: translateY(10px);  } }

/* ── 1. Design tokens ─────────────────────────────────────────── */
:root {
  /* Palette */
  --bg:        #0E0B09;
  --bg-2:      #15110E;
  --bg-card:   #1E1813;
  --bg-card-2: #261F18;
  --cream:     #F2EBDA;
  --cream-2:   #DDD2BC;
  --cream-3:   #A79A82;
  --accent:    #f03c28;
  --accent-2:  #c72d1c;
  --accent-glow: rgba(240,60,40,.22);
  --gold:      #C49A5B;
  --gold-2:    #9A753B;
  --line:      rgba(242,235,218,.10);
  --line-2:    rgba(242,235,218,.05);

  /* Typography */
  --display: "IBM Plex Sans", system-ui, sans-serif;
  --sans:    "IBM Plex Sans", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", "SFMono-Regular", monospace;

  /* Easing */
  --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);

  /* Layout */
  --nav-h: 72px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max-w: 1280px;
}

/* ── 2. Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video, canvas { 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; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── 3. Splash loader ─────────────────────────────────────────── */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .9s var(--ease-soft), clip-path 1.1s var(--ease-soft);
  clip-path: inset(0);
  pointer-events: auto;
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out {
  opacity: 0; pointer-events: none;
  clip-path: inset(0 0 100% 0);
}
@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
}
.splash-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.splash-logo {
  width: 140px; height: auto;
  animation: splashPulse 1.4s ease-in-out infinite;
}
.splash-bar {
  width: 120px; height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: clip;
}
.splash-bar::after {
  content: "";
  display: block; height: 100%;
  background: var(--accent);
  animation: splashLoad 1.5s var(--ease-out) forwards;
  width: 0%;
}
@keyframes splashPulse {
  0%, 100% { opacity: .7; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.04); }
}
@keyframes splashLoad {
  to { width: 100%; }
}

/* ── 4. Skip link ─────────────────────────────────────────────── */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  z-index: 10000; border-radius: 8px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ── 5. Layout utilities ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.kicker {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: .75rem;
}
.kicker-gold {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: .75rem;
}
.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;

  line-height: 1.0;
  letter-spacing: -0.02em;
}
.section-header h2 em {
  font-style: normal;
  color: var(--accent);
}
.section-header p {
  margin-top: 1rem;
  color: var(--cream-3);
  font-size: 1.05rem;
  max-width: 52ch;
}


/* ── 7. Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding-inline: var(--gutter);
  transition: background .4s var(--ease-soft), backdrop-filter .4s, box-shadow .4s;
}
.nav.scrolled {
  background: rgba(14,11,9,.92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-logo {
  flex-shrink: 0; display: flex; align-items: center;
}
.nav-logo img {
  height: 34px; width: auto;
  filter: brightness(0) invert(1);
}
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  margin-left: auto; margin-right: 2rem;
}
.nav-links a {
  font-size: .875rem; font-weight: 500;
  color: var(--cream-2);
  transition: color .2s;
  position: relative; padding-bottom: 3px;
}
.nav-links a::after {
  content: "";
  position: absolute; bottom: -1px; left: 0; right: 100%;
  height: 1px; background: var(--accent);
  transition: right .35s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--cream); }

.btn-wa-nav {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem 1.1rem;
  background: rgba(240,60,40,.12);
  border: 1px solid rgba(240,60,40,.3);
  border-radius: 100px;
  font-size: .82rem; font-weight: 600;
  color: var(--accent);
  transition: background .25s, border-color .25s, transform .2s var(--ease-bounce);
  white-space: nowrap;
}
.btn-wa-nav:hover {
  background: rgba(240,60,40,.2);
  border-color: var(--accent);
  transform: scale(1.04);
}
.btn-wa-nav svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* Mobile burger */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  margin-left: 1rem;
}
.nav-burger span {
  display: block; height: 1.5px;
  background: var(--cream);
  transition: transform .35s var(--ease-soft), opacity .3s;
  border-radius: 2px;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed; inset: 0; top: 0;
  background: var(--bg);
  z-index: 990;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2.5rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[aria-hidden="false"] { clip-path: inset(0); }
.nav-mobile a {
  font-family: var(--display);
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 700;

  color: var(--cream-2);
  transition: color .2s;
}
.nav-mobile a:hover { color: var(--accent); }

/* ── 8. Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 2rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700; font-size: .95rem;
  border-radius: 100px;
  transition: transform .25s var(--ease-bounce), box-shadow .25s;
  box-shadow: 0 4px 20px rgba(240,60,40,.3);
}
.btn-primary:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 40px rgba(240,60,40,.5);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 2rem;
  border: 1px solid rgba(242,235,218,.24);
  color: var(--cream);
  font-weight: 600; font-size: .95rem;
  border-radius: 100px;
  transition: border-color .25s, color .25s, transform .2s var(--ease-bounce);
}
.btn-ghost:hover {
  border-color: rgba(240,60,40,.5);
  color: var(--cream);
  transform: scale(1.03);
}
.btn-wa {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 2rem;
  background: #25d366;
  color: #fff;
  font-weight: 700; font-size: .95rem;
  border-radius: 100px;
  transition: transform .2s var(--ease-bounce), box-shadow .25s;
}
.btn-wa:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 40px rgba(37,211,102,.4);
}
.btn-wa svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.btn-submit {
  width: 100%; padding: .9rem 2rem;
  background: var(--accent); color: #fff;
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
  border-radius: 10px;
  transition: transform .2s var(--ease-bounce), box-shadow .25s;
  cursor: pointer; border: 0;
}
.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(240,60,40,.45);
}
.btn-submit:disabled { opacity: .65; cursor: not-allowed; }

/* ── 9. Reveal animations ─────────────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .85s var(--ease-soft), transform .85s var(--ease-soft);
}
[data-reveal][data-delay="1"] { transition-delay: .1s; }
[data-reveal][data-delay="2"] { transition-delay: .2s; }
[data-reveal][data-delay="3"] { transition-delay: .3s; }
[data-reveal][data-delay="4"] { transition-delay: .4s; }
[data-reveal][data-delay="5"] { transition-delay: .5s; }
[data-reveal].is-revealed { opacity: 1; transform: none; }
/* Safety net for stale reveals */
[data-reveal][data-split] { opacity: 1; transform: none; }

/* ── 10. Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: clip;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  animation: ambientZoom 28s ease-in-out infinite;
}
@keyframes ambientZoom {
  0%,100% { transform: scale(1.05) translate3d(0,0,0); }
  50%      { transform: scale(1.12) translate3d(-1%,-1%,0); }
}
.hero-tint {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(14,11,9,.92) 0%, rgba(14,11,9,.72) 55%, rgba(14,11,9,.45) 100%),
    linear-gradient(to bottom, transparent 40%, rgba(14,11,9,.85) 100%);
}
.hero-mesh {
  position: absolute; inset: -10%; z-index: 2;
  background:
    radial-gradient(60% 50% at var(--mx,30%) var(--my,40%),
      rgba(240,60,40,.28), transparent 60%),
    conic-gradient(from var(--mesh-angle,0deg),
      rgba(196,154,91,.15), rgba(240,60,40,.18), rgba(196,154,91,.15));
  filter: blur(80px) saturate(120%);
  opacity: .65; mix-blend-mode: screen;
  animation: meshShift 22s linear infinite;
}
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mx: 30%; --my: 40%; }
  33%  { --mx: 60%; --my: 30%; }
  66%  { --mx: 20%; --my: 65%; }
  100% { --mesh-angle: 360deg; --mx: 30%; --my: 40%; }
}
.hero-grain {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
.hero-inner {
  position: relative; z-index: 4;
  padding-inline: var(--gutter);
  max-width: var(--max-w); width: 100%;
  margin-inline: auto;
  padding-top: 3rem; padding-bottom: 6rem;
}
.hero-meta {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.5rem;
  opacity: 0; transform: translateY(12px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.hero-meta .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(240,60,40,.5); }
  50%      { box-shadow: 0 0 0 8px rgba(240,60,40,0); }
}
.hero-meta span {
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream-3);
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -0.05em;
  max-width: 13ch;
  margin-bottom: 1.75rem;
  color: var(--cream);
  opacity: 0; transform: translateY(24px);
  transition: opacity .85s .1s var(--ease-out), transform .85s .1s var(--ease-out);
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--cream-2);
  max-width: 46ch; line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity .85s .2s var(--ease-out), transform .85s .2s var(--ease-out);
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 1rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity .85s .3s var(--ease-out), transform .85s .3s var(--ease-out);
}
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  margin-top: 4rem; padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  opacity: 0; transform: translateY(16px);
  transition: opacity .85s .45s var(--ease-out), transform .85s .45s var(--ease-out);
}
.hero-stat-val {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--cream); line-height: 1;
}
.hero-stat-val em { font-style: normal; color: var(--accent); }
.hero-stat-label {
  font-size: .78rem; color: var(--cream-3);
  letter-spacing: .08em; margin-top: .35rem;
}
.hero.is-ready .hero-meta,
.hero.is-ready .hero-title,
.hero.is-ready .hero-sub,
.hero.is-ready .hero-ctas,
.hero.is-ready .hero-stats { opacity: 1; transform: none; }

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; z-index: 5;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--cream-3); font-family: var(--mono); font-size: .65rem;
  letter-spacing: .15em; text-transform: uppercase;
  animation: scrollFloat 2.2s ease-in-out infinite;
}
.hero-scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--cream-3));
}
@keyframes scrollFloat {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ── 11. Tilt 3D cards ────────────────────────────────────────── */
.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft);
}
.has-tilt:hover { transition-duration: .15s; }
.has-halo { position: relative; isolation: isolate; overflow: clip; }
.has-halo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(220px circle at var(--hx,50%) var(--hy,50%),
              rgba(240,60,40,.18), transparent 65%);
  opacity: 0; transition: opacity .35s;
  pointer-events: none;
}
.has-halo:hover::before { opacity: 1; }

/* ── 12. Services grid ────────────────────────────────────────── */
.servicios-home {
  padding-block: clamp(5rem, 10vw, 8rem);
  border-top: 1px solid var(--line);
  position: relative; overflow: clip;
}
/* Circuit board SVG pattern behind the section */
.servicios-home::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .045;
  background-image:
    /* Horizontal grid lines */
    repeating-linear-gradient(
      0deg,
      rgba(240,60,40,1) 0px, rgba(240,60,40,1) 1px,
      transparent 1px, transparent 48px
    ),
    /* Vertical grid lines */
    repeating-linear-gradient(
      90deg,
      rgba(240,60,40,1) 0px, rgba(240,60,40,1) 1px,
      transparent 1px, transparent 48px
    );
}
/* Radial fade so the grid disappears at edges */
.servicios-home::after {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 50%,
    transparent 30%, var(--bg) 100%);
}
.servicios-home .container { position: relative; z-index: 1; }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.servicio-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  cursor: default;
  transition: border-color .4s, transform .45s var(--ease-out), box-shadow .4s;
  position: relative;
  display: flex; flex-direction: column;
  overflow: clip;
}
.servicio-card:hover {
  border-color: rgba(240,60,40,.4);
  transform: translateY(-6px);
  box-shadow: 0 28px 72px rgba(0,0,0,.55), 0 0 0 1px rgba(240,60,40,.15);
}

/* Image area at top of card */
.servicio-card-img {
  position: relative; height: 200px; flex-shrink: 0;
  overflow: hidden; /* clips image zoom but NOT the icon (icon is outside) */
  border-radius: 17px 17px 0 0;
}
.servicio-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.7) brightness(.6);
  transition: transform .7s var(--ease-soft), filter .5s;
  display: block;
}
.servicio-card:hover .servicio-card-img img {
  transform: scale(1.07);
  filter: saturate(.9) brightness(.72);
}
/* Gradient overlay from image into card body */
.servicio-card-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(20,16,12,.05) 0%,
    rgba(20,16,12,.55) 65%,
    var(--bg-card) 100%);
  pointer-events: none;
}
/* Icon sits between image and body — positioned on .servicio-card */
.servicio-icon {
  position: absolute; top: 172px; left: 1.75rem; z-index: 3;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent);
  border: 3px solid var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(240,60,40,.45);
  transition: transform .35s var(--ease-bounce), box-shadow .35s;
}
.servicio-card:hover .servicio-icon {
  transform: scale(1.13);
  box-shadow: 0 8px 32px rgba(240,60,40,.65);
}
.servicio-icon svg {
  width: 22px; height: 22px;
  stroke: #fff; fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
/* Card body */
.servicio-card-body {
  padding: 2.5rem 1.75rem 1.75rem;
  flex: 1; display: flex; flex-direction: column;
  padding-top: 2.75rem; /* compensates for icon overlap */
}
.servicio-num {
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .22em; color: var(--accent);
  margin-bottom: 1rem; display: block; margin-top: .75rem;
}
.servicio-card h3 {
  font-family: var(--display);
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: .7rem; color: var(--cream);
  letter-spacing: -0.02em; line-height: 1.2;
}
.servicio-card p {
  font-size: .875rem; color: var(--cream-3); line-height: 1.7; flex: 1;
}
.servicio-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.25rem; font-size: .8rem; font-weight: 600;
  color: var(--accent);
  opacity: 0; transform: translateX(-8px);
  transition: opacity .3s, transform .3s var(--ease-out);
}
.servicio-card:hover .servicio-arrow { opacity: 1; transform: none; }

/* Tech node decoration — animated dots at grid intersections */
.tech-node {
  position: absolute; width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0; z-index: 0;
  animation: nodePulse 3s ease-in-out infinite;
}
.tech-node::before {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%; border: 1px solid var(--accent);
  opacity: .4; animation: nodeRing 3s ease-in-out infinite;
}
@keyframes nodePulse {
  0%,100% { opacity: .6; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.3); }
}
@keyframes nodeRing {
  0%,100% { transform: scale(1); opacity: .4; }
  50%      { transform: scale(2.5); opacity: 0; }
}

/* ── 13. Showcase horizontal pinned ──────────────────────────── */
.showcase-section {
  padding-block: clamp(5rem, 10vw, 8rem);
  border-top: 1px solid var(--line);
}
.showcase {
  margin-top: 3rem;
}
.showcase.is-pinned {
  height: 100vh;
  overflow: clip;
}
.showcase-track {
  display: flex; gap: 1.5rem;
  will-change: transform;
}
.showcase-card {
  flex: 0 0 clamp(280px, 30vw, 380px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: clip;
  transition: border-color .35s, box-shadow .35s;
  cursor: default;
}
.showcase-card:hover {
  border-color: rgba(240,60,40,.3);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.showcase-card-img {
  aspect-ratio: 16/10; overflow: clip;
}
.showcase-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-soft), filter .5s;
  filter: saturate(.9);
}
.showcase-card:hover .showcase-card-img img {
  transform: scale(1.06);
  filter: saturate(1.15) brightness(1.05);
}
.showcase-card-body { padding: 1.75rem; }
.showcase-card-tag {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .18em; color: var(--accent);
  text-transform: uppercase; margin-bottom: .75rem;
}
.showcase-card h3 {
  font-family: var(--display);
  font-size: 1.15rem; font-weight: 700;
  color: var(--cream); letter-spacing: -0.02em; margin-bottom: .6rem;
}
.showcase-card p { font-size: .88rem; color: var(--cream-3); line-height: 1.65; }

/* ── 14. Project featured ─────────────────────────────────────── */
.proyectos-home {
  padding-block: clamp(5rem, 10vw, 8rem);
  border-top: 1px solid var(--line);
}
.proyecto-featured {
  border-radius: 20px;
  overflow: clip;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--bg-card);
  transition: border-color .35s, box-shadow .35s;
  margin-top: 3rem;
}
.proyecto-featured:hover {
  border-color: rgba(240,60,40,.25);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.proyecto-img {
  position: relative; overflow: clip;
  min-height: 340px;
}
.proyecto-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-soft), filter .5s;
  filter: saturate(.9);
}
.proyecto-featured:hover .proyecto-img img {
  transform: scale(1.04);
  filter: saturate(1.1);
}
.proyecto-info {
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.proyecto-tag {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .18em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 1rem;
}
.proyecto-info h3 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1rem; color: var(--cream); letter-spacing: -0.02em;
}
.proyecto-info p { color: var(--cream-3); line-height: 1.75; margin-bottom: 1.75rem; }

/* ── 15. Stats bar ────────────────────────────────────────────── */
.stats-section {
  padding-block: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-val {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--cream); line-height: 1;
  display: flex; align-items: baseline; justify-content: center; gap: .25rem;
}
.stat-val em { font-style: normal; color: var(--accent); }
.stat-suffix { color: var(--accent); font-size: .7em; }
.stat-label {
  font-size: .82rem; color: var(--cream-3);
  letter-spacing: .06em; margin-top: .6rem;
}

/* ── 16. Marcas strip ─────────────────────────────────────────── */
.marcas-section {
  padding-block: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}
.marcas-intro {
  text-align: center; margin-bottom: 3rem;
}
.marcas-grid {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: 2.5rem 5rem;
}
.marca-item {
  display: flex; align-items: center; justify-content: center;
  opacity: .55;
  filter: saturate(.7) brightness(.9);
  transition: opacity .4s var(--ease-out), filter .4s var(--ease-out), transform .35s var(--ease-out);
}
.marca-item:hover {
  opacity: 1;
  filter: saturate(1) brightness(1);
  transform: scale(1.1);
}
.marca-item img { height: 34px; width: auto; max-width: 120px; object-fit: contain; }

/* ── 17. Clientes section (marquee) ──────────────────────────── */
.clientes-section {
  padding-block: clamp(5rem, 10vw, 8rem);
  border-top: 1px solid var(--line);
  overflow: clip;
  position: relative;
}
.clientes-section::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%,
      rgba(240,60,40,.045), transparent 70%);
}
.clientes-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
}
.clientes-header h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em; color: var(--cream);
  margin-top: .5rem;
}
.clientes-header h2 em { font-style: normal; color: var(--accent); }
.clientes-header p {
  color: var(--cream-3); margin-top: .75rem; font-size: .95rem;
  max-width: 44ch; margin-inline: auto;
}

/* Marquee container */
.clientes-marquee-wrap {
  display: flex; flex-direction: column; gap: 1.75rem;
  position: relative;
}
/* Fade masks on left/right edges */
.clientes-marquee-wrap::before,
.clientes-marquee-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 2;
  width: clamp(80px, 10vw, 160px); pointer-events: none;
}
.clientes-marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}
.clientes-marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

.clientes-track {
  display: flex; align-items: center;
  gap: 0; width: max-content;
  animation: marqueeScroll 38s linear infinite;
}
.clientes-track--reverse {
  animation-direction: reverse;
  animation-duration: 45s;
}
.clientes-track:hover,
.clientes-track--reverse:hover { animation-play-state: paused; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Individual logo item */
.cliente-item {
  display: flex; align-items: center; justify-content: center;
  padding: 0 clamp(2rem, 4vw, 3.5rem);
  height: 72px;
  border-right: 1px solid var(--line-2);
  flex-shrink: 0;
  opacity: .45;
  filter: saturate(.6) brightness(.85);
  transition: opacity .4s var(--ease-out), filter .4s var(--ease-out), transform .35s var(--ease-out);
  cursor: default;
}
.cliente-item:hover {
  opacity: 1;
  filter: saturate(1) brightness(1);
  transform: scale(1.08);
}
.cliente-item img {
  height: clamp(26px, 3vw, 38px);
  width: auto; max-width: 130px;
  object-fit: contain;
}

/* Stats bar below logos */
.clientes-stats {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  flex-wrap: wrap;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line-2);
  position: relative;
}
.clientes-stat {
  text-align: center;
}
.clientes-stat-val {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em; color: var(--cream);
  line-height: 1;
}
.clientes-stat-val em {
  font-style: normal; color: var(--accent);
}
.clientes-stat-label {
  font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cream-3);
  margin-top: .5rem; font-family: var(--mono);
}

/* ── 18. CTA section ──────────────────────────────────────────── */
.cta-section {
  padding-block: clamp(6rem, 12vw, 10rem);
  border-top: 1px solid var(--line);
  text-align: center;
  position: relative; overflow: clip;
}
.cta-section::before {
  content: ""; position: absolute; inset: -10%;
  background:
    radial-gradient(60% 60% at 50% 50%,
      rgba(240,60,40,.12), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}
.cta-section h2 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.0; letter-spacing: -0.03em;
  color: var(--cream);
  position: relative;
}
.cta-section h2 em { font-style: normal; color: var(--accent); }
.cta-section p {
  margin-top: 1.25rem; color: var(--cream-3);
  font-size: 1.05rem; max-width: 48ch; margin-inline: auto;
  position: relative;
}
.cta-btns {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center; margin-top: 2.5rem;
  position: relative;
}

/* ── 18. Page hero (inner pages) ─────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(3rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: clip;
}
.page-hero::before {
  content: ""; position: absolute; inset: -10%;
  background:
    radial-gradient(50% 80% at 20% 50%,
      rgba(240,60,40,.10), transparent 70%);
  filter: blur(80px); pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero .kicker { margin-bottom: .75rem; }
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.0; letter-spacing: -0.03em;
  color: var(--cream);
}
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero p {
  margin-top: 1.25rem; color: var(--cream-3);
  font-size: 1.05rem; max-width: 50ch; line-height: 1.7;
}

/* ── 19. Servicios page ───────────────────────────────────────── */
.servicios-page {
  padding-block: clamp(4rem, 8vw, 7rem);
}
.servicios-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.servicio-page-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  transition: border-color .35s, transform .4s var(--ease-out), box-shadow .35s;
  position: relative; overflow: clip;
  display: flex; flex-direction: column;
}
.servicio-page-card-img {
  width: 100%; height: 220px; overflow: hidden; flex-shrink: 0;
  border-radius: 18px 18px 0 0;
}
.servicio-page-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.servicio-page-card:hover .servicio-page-card-img img { transform: scale(1.06); }
.servicio-page-card > .kicker,
.servicio-page-card > .servicio-icon,
.servicio-page-card > h3,
.servicio-page-card > p,
.servicio-page-card > ul { padding-left: 2rem; padding-right: 2rem; }
.servicio-page-card > .kicker { padding-top: 1.75rem; }
.servicio-page-card > ul { padding-bottom: 2rem; }
.servicio-page-card::after {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.servicio-page-card:hover { border-color: rgba(240,60,40,.25); transform: translateY(-4px); box-shadow: 0 24px 64px rgba(0,0,0,.45); }
.servicio-page-card:hover::after { transform: scaleX(1); }
.servicio-page-card h3 {
  font-family: var(--display);
  font-size: 1.35rem; font-weight: 700;
  color: var(--cream); letter-spacing: -0.02em;
  margin-top: 1rem; margin-bottom: .75rem;
}
.servicio-page-card p { font-size: .92rem; color: var(--cream-3); line-height: 1.75; }
.servicio-page-card ul {
  margin-top: 1rem; padding-left: 1.25rem;
  font-size: .88rem; color: var(--cream-3); line-height: 2;
}

/* ── 20. Proyectos page ───────────────────────────────────────── */
.proyectos-page {
  padding-block: clamp(4rem, 8vw, 7rem);
}

/* ── 21. Catálogo page ────────────────────────────────────────── */
.catalogo-page {
  padding-block: clamp(4rem, 8vw, 7rem);
}
#cat-list {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-bottom: 3rem;
}
#cat-list button {
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  padding: .5rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--cream-3);
  transition: border-color .2s, color .2s, background .2s;
  cursor: pointer;
}
#cat-list button:hover { border-color: rgba(240,60,40,.4); color: var(--cream); }
#cat-list button.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.producto-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: clip;
  display: flex; flex-direction: column;
  transition: border-color .35s, transform .4s var(--ease-out), box-shadow .35s;
}
.producto-card:hover {
  border-color: rgba(240,60,40,.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.producto-img {
  aspect-ratio: 1; overflow: clip;
  background: var(--bg-card-2);
  display: flex; align-items: center; justify-content: center;
}
.producto-img img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 1.5rem;
  transition: transform .6s var(--ease-soft);
  filter: saturate(.8) brightness(1.1);
}
.producto-card:hover .producto-img img { transform: scale(1.08); }
.producto-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.producto-marca {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .18em; color: var(--accent);
  text-transform: uppercase; margin-bottom: .5rem;
}
.producto-body h3 {
  font-family: var(--display);
  font-size: 1rem; font-weight: 700;
  color: var(--cream); letter-spacing: -0.01em;
  margin-bottom: .5rem; line-height: 1.3;
}
.producto-body p {
  font-size: .84rem; color: var(--cream-3); line-height: 1.65;
  flex: 1; margin-bottom: 1.25rem;
}
.producto-cta {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .6rem 1rem;
  background: rgba(240,60,40,.1);
  border: 1px solid rgba(240,60,40,.3);
  border-radius: 8px;
  color: var(--accent); font-size: .82rem; font-weight: 700;
  transition: background .25s, box-shadow .25s, transform .2s var(--ease-bounce);
}
.producto-cta:hover {
  background: rgba(240,60,40,.2);
  box-shadow: 0 8px 24px rgba(240,60,40,.3);
  transform: scale(1.02);
}
.producto-cta svg { width: 15px; height: 15px; fill: currentColor; }

/* ── 22. Nosotros page ────────────────────────────────────────── */
.nosotros-page {
  padding-block: clamp(4rem, 8vw, 7rem);
}
.nosotros-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}
.nosotros-img {
  border-radius: 16px; overflow: clip;
  border: 1px solid var(--line);
}
.nosotros-img img { width: 100%; height: auto; object-fit: cover; }
.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.valor-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
  transition: border-color .35s, transform .35s var(--ease-out);
}
.valor-card:hover { border-color: rgba(240,60,40,.25); transform: translateY(-3px); }
.valor-num {
  font-family: var(--mono); font-size: 2rem; font-weight: 700;
  color: rgba(240,60,40,.25); line-height: 1; margin-bottom: 1rem;
  display: block;
}
.valor-card h3 {
  font-family: var(--display);
  font-size: 1.15rem; font-weight: 700;
  color: var(--cream); letter-spacing: -0.01em; margin-bottom: .6rem;
}
.valor-card p { font-size: .88rem; color: var(--cream-3); line-height: 1.7; }

/* ── 23. Contacto page ────────────────────────────────────────── */
.contacto-page {
  padding-block: clamp(4rem, 8vw, 7rem);
}
.contacto-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contacto-info h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.0; letter-spacing: -0.02em;
  margin-bottom: 1rem; color: var(--cream);
}
.contacto-info h2 em { font-style: normal; color: var(--accent); }
.contacto-info > p { color: var(--cream-3); line-height: 1.75; margin-bottom: 2.5rem; }
.contacto-data { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }
.contacto-item { display: flex; align-items: center; gap: 1rem; }
.contacto-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(240,60,40,.1);
  display: flex; align-items: center; justify-content: center;
}
.contacto-icon svg { width: 20px; height: 20px; fill: currentColor; color: var(--accent); }
.contacto-item-text span {
  display: block; font-size: .78rem;
  color: var(--cream-3); letter-spacing: .06em;
}
.contacto-item-text strong { font-size: .95rem; }
.contacto-item-text a:hover { color: var(--accent); }

.contacto-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.5rem;
}
.form-group {
  display: flex; flex-direction: column; gap: .5rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-size: .82rem; font-weight: 600;
  color: var(--cream-2); letter-spacing: .04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: .8rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--cream);
  font-family: var(--sans); font-size: .92rem;
  transition: border-color .25s, box-shadow .25s;
  outline: none;
  -webkit-appearance: none; appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(240,60,40,.5);
  box-shadow: 0 0 0 3px rgba(240,60,40,.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--cream-3); }
.form-group select option { background: var(--bg-2); }
.form-group textarea { resize: vertical; min-height: 140px; }
#form-feedback { margin-top: 1rem; font-size: .88rem; text-align: center; }

/* ── 24. Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img { height: 30px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; color: var(--cream-3); line-height: 1.7; max-width: 36ch; }
.footer-links { display: flex; flex-direction: column; gap: .75rem; }
.footer-links a {
  font-size: .9rem; color: var(--cream-3);
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-contact p { font-size: .88rem; color: var(--cream-3); line-height: 1.9; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: .75rem;
  font-size: .8rem; color: var(--cream-3);
}

/* ── 25. Count-up ─────────────────────────────────────────────── */
[data-count] { display: inline-block; }

/* ── 26. Scroll progress bar ──────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 9998; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: var(--accent);
  transform-origin: 0 0; transform: scaleX(0);
  transition: transform .08s linear;
}

/* ── 27. Responsive ───────────────────────────────────────────── */
@media (max-width: 1023px) {
  .showcase-track { flex-wrap: wrap; }
  .showcase.is-pinned { height: auto; overflow: visible; }
}
@media (max-width: 767px) {
  .nav-links, .btn-wa-nav { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { display: flex; }
  .proyecto-featured { grid-template-columns: 1fr; }
  .nosotros-intro { grid-template-columns: 1fr; }
  .contacto-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
  .hero-stats { gap: 1.5rem; }
}
@media (max-width: 540px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .cta-btns { flex-direction: column; align-items: center; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }
}

/* ── 28. Marcas inline (nosotros) ─────────────────────────────── */
.marcas-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.marca-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: border-color .3s, transform .3s var(--ease-out);
}
.marca-card:hover {
  border-color: rgba(240,60,40,.3);
  transform: translateY(-3px);
}
.marca-card img {
  height: 36px; width: auto; max-width: 140px; object-fit: contain;
  filter: saturate(.7) brightness(.9); opacity: .75;
  transition: filter .35s, opacity .35s;
}
.marca-card:hover img {
  filter: saturate(1) brightness(1); opacity: 1;
}
.marca-card p { font-size: .84rem; color: var(--cream-3); line-height: 1.65; }

/* ── 29. Lead qualification modal (encuesta corta → WhatsApp) ─── */
.lead-modal-overlay {
  position: fixed; inset: 0; z-index: 9500;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  background: rgba(8,6,4,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease-out), visibility .25s;
}
.lead-modal-overlay.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.lead-modal {
  position: relative;
  width: 100%; max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.25rem 2rem 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform: scale(.96) translateY(10px);
  transition: transform .3s var(--ease-out);
}
.lead-modal-overlay.is-open .lead-modal { transform: scale(1) translateY(0); }
.lead-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  color: var(--cream-3); font-size: 1.1rem; line-height: 1; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lead-modal-close:hover { border-color: rgba(240,60,40,.5); color: var(--cream); }

.lead-modal-progress {
  display: flex; gap: .4rem; margin-bottom: 1.5rem;
}
.lead-modal-dot {
  height: 4px; flex: 1; border-radius: 4px;
  background: var(--line);
  transition: background .3s;
}
.lead-modal-dot.is-active, .lead-modal-dot.is-done { background: var(--accent); }

.lead-modal-step { display: none; }
.lead-modal-step.is-active { display: block; animation: leadStepIn .3s var(--ease-out); }
@keyframes leadStepIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lead-modal-kicker {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .2em;
  color: var(--accent); text-transform: uppercase;
  display: block; margin-bottom: .6rem;
}
.lead-modal-question {
  font-family: var(--display); font-weight: 700;
  font-size: 1.35rem; line-height: 1.25; letter-spacing: -.01em;
  color: var(--cream); margin-bottom: 1.4rem;
}

.lead-modal-options {
  display: flex; flex-direction: column; gap: .6rem; margin-bottom: .5rem;
}
.lead-modal-option {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  width: 100%; text-align: left;
  padding: .85rem 1.1rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--cream-2);
  font-family: var(--sans); font-size: .92rem; font-weight: 500;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s, transform .15s var(--ease-bounce);
}
.lead-modal-option::after {
  content: "→"; color: var(--cream-3); flex-shrink: 0;
  transition: color .2s, transform .2s;
}
.lead-modal-option:hover {
  border-color: rgba(240,60,40,.5); color: var(--cream); background: var(--bg-card-2);
}
.lead-modal-option:hover::after { color: var(--accent); transform: translateX(2px); }
.lead-modal-option.is-selected {
  border-color: var(--accent); color: var(--cream); background: rgba(240,60,40,.08);
}

.lead-modal-field { margin-bottom: 1.4rem; }
.lead-modal-field input {
  width: 100%; padding: .85rem 1.1rem;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  color: var(--cream); font-family: var(--sans); font-size: .95rem;
  outline: none; transition: border-color .25s, box-shadow .25s;
}
.lead-modal-field input:focus {
  border-color: rgba(240,60,40,.5); box-shadow: 0 0 0 3px rgba(240,60,40,.12);
}
.lead-modal-field input::placeholder { color: var(--cream-3); }

.lead-modal-submit { width: 100%; justify-content: center; margin-bottom: .75rem; }
.lead-modal-back {
  display: block; margin: 0 auto; padding: .4rem;
  background: none; border: 0; color: var(--cream-3);
  font-family: var(--sans); font-size: .85rem; cursor: pointer;
  transition: color .2s;
}
.lead-modal-back:hover { color: var(--cream); }

@media (max-width: 560px) {
  .lead-modal { padding: 1.9rem 1.5rem 1.75rem; }
  .lead-modal-question { font-size: 1.2rem; }
}
