/* ============================================================
   ZONA MOTOR / ZONA MECÁNICA — Enterprise CSS
   Architecture: Mobile-First, Dark Automotive, Big Tech Aesthetic
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #0b0b0c;
  --bg-alt:      #121213;
  --card:        #19191a;
  --card-alt:    #1f1f20;
  --border:      rgba(255,255,255,0.07);
  --border-gold: rgba(226,35,26,0.35);
  --gold:        #e2231a;
  --gold-light:  #ff5b4d;
  --gold-dim:    #a8180f;
  --white:       #ffffff;
  --gray:        #b7b7b9;
  --gray-dim:    #6b6b6d;
  --green-wa:    #25d366;
  --radius-sm:   10px;
  --radius:      16px;
  --radius-lg:   24px;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --hero-img:    url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?q=90&w=2400&auto=format&fit=crop');
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
::selection { background: var(--gold); color: var(--bg); }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a3a3c; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #4a4a4c; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px)  { .container { padding: 0 36px; } }
@media (min-width: 1280px) { .container { padding: 0 48px; } }

/* ── Typography helpers ─────────────────────────────────────── */
.gold        { color: var(--gold); }
.gray        { color: var(--gray); }
.text-glow   { text-shadow: 0 0 32px rgba(226,35,26,0.4); }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px;
}
.label::before {
  content: ''; display: block;
  width: 22px; height: 1px; background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1.05;
}

/* ── Scroll Reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 80ms;  }
.d2 { transition-delay: 160ms; }
.d3 { transition-delay: 240ms; }
.d4 { transition-delay: 320ms; }

/* ── Glass utility ──────────────────────────────────────────── */
.glass {
  background: rgba(8,12,24,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-gold {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px; border-radius: 99px;
  background: var(--gold); color: var(--bg);
  font-weight: 800; font-size: 13.5px; letter-spacing: 0.02em;
  text-decoration: none; border: none; cursor: pointer;
  position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(226,35,26,0.45), 0 8px 30px rgba(226,35,26,0.28);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  white-space: nowrap;
}
.btn-gold::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.28) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.3s ease;
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(226,35,26,0.7), 0 16px 50px rgba(226,35,26,0.42);
}
.btn-gold:hover::before { opacity: 1; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 99px;
  background: transparent; color: var(--white);
  font-weight: 600; font-size: 13.5px;
  text-decoration: none; border: 1px solid rgba(255,255,255,0.13);
  cursor: pointer; white-space: nowrap;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.35s var(--ease);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
#loader.out { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-bulb {
  width: 180px; height: auto; position: relative;
  animation: loader-float 2s ease-in-out infinite;
}
.loader-logo {
  width: 100%; height: auto;
  filter: drop-shadow(0 0 16px rgba(226,35,26,0.45));
}
@keyframes loader-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.loader-bar {
  width: 120px; height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px; overflow: hidden;
}
.loader-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-light));
  border-radius: 99px;
  animation: loader-bar 1s var(--ease-out) forwards;
}
@keyframes loader-bar { to { width: 100%; } }

.loader-text {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--gray-dim);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(3, 5, 8, 0.9);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.55);
}

.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 74px;
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; cursor: pointer;
  transition: filter 0.3s ease;
}
.nav-logo:hover { filter: drop-shadow(0 0 14px rgba(226,35,26,0.4)); }
.nav-logo-img { height: 32px; width: auto; }
@media (min-width: 768px) { .nav-logo-img { height: 38px; } }

.nav-links {
  display: none; list-style: none; gap: 38px; align-items: center;
}
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-links a {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gray);
  text-decoration: none; position: relative;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0) translateX(-50%);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1) translateX(0); }

.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: block; } }

/* Hamburger */
.hamburger {
  background: none; border: none; cursor: pointer;
  padding: 6px; display: flex; flex-direction: column; gap: 5px;
}
@media (min-width: 900px) { .hamburger { display: none; } }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all 0.35s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
#mob-menu {
  display: none;
  position: absolute; top: 74px; left: 0; right: 0;
  background: rgba(3,5,8,0.97);
  backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border);
  padding: 8px 20px 20px;
}
#mob-menu.open { display: block; }
#mob-menu a {
  display: block; padding: 15px 4px;
  font-size: 16px; font-weight: 600; color: var(--gray);
  text-decoration: none; border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}
#mob-menu a:hover { color: var(--white); }
#mob-menu a:last-child { border-bottom: none; color: var(--gold); padding-top: 20px; }

/* ============================================================
   HERO — Fixed Parallax Background
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

/* Parallax background layer */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  /* Scale up slightly so fixed doesn't show edges */
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }

/* Multi-layer overlay — creates the dark luxury effect */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right,  rgba(3,5,8,0.88) 0%, rgba(3,5,8,0.55) 50%, rgba(3,5,8,0.75) 100%),
    linear-gradient(to bottom, rgba(3,5,8,0.3) 0%,  transparent 40%,   rgba(3,5,8,0.95) 100%);
}

/* Gold vignette accent */
.hero-vignette {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse 90% 70% at 60% 50%,
    rgba(226,35,26,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* Animated grid */
.hero-grid {
  position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none;
}

/* Canvas for orbs */
#hero-canvas {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
}

/* Hero content */
.hero-content {
  position: relative; z-index: 4;
  max-width: 900px;
  padding: 160px 20px 100px;
  text-align: left;
}
@media (min-width: 768px) { .hero-content { padding: 180px 0 120px; } }

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 99px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.8s var(--ease) 0.3s, transform 0.8s var(--ease) 0.3s;
}
.hero-badge.in { opacity: 1; transform: translateY(0); }

.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px var(--gold);
  flex-shrink: 0;
  animation: badge-pulse 2.4s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--gold); }
  50%       { opacity: 0.55; box-shadow: 0 0 20px var(--gold); }
}

/* Title — word mask reveal */
.hero-title {
  font-size: clamp(3.2rem, 8.5vw, 7.5rem);
  font-weight: 900; line-height: 0.97;
  letter-spacing: -0.045em;
  margin-bottom: 30px;
}
.hero-title .line {
  display: block; overflow: hidden; padding-bottom: 0.06em;
}
.hero-title .line span {
  display: block;
  transform: translateY(108%);
  transition: transform 1.1s var(--ease);
}
.loaded .hero-title .line:nth-child(1) span { transform: translateY(0); transition-delay: 0.3s; }
.loaded .hero-title .line:nth-child(2) span { transform: translateY(0); transition-delay: 0.42s; }
.loaded .hero-title .line:nth-child(3) span { transform: translateY(0); transition-delay: 0.54s; }

.hero-title .accent {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear 1.8s infinite;
  filter: drop-shadow(0 0 28px rgba(226,35,26,0.3));
}
@keyframes shimmer { to { background-position: 200% center; } }

/* Subtext */
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.6); font-weight: 300; line-height: 1.75;
  max-width: 500px; margin-bottom: 48px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.8s var(--ease) 0.95s, transform 0.8s var(--ease) 0.95s;
}
.hero-sub.in { opacity: 1; transform: translateY(0); }
.hero-sub strong { color: var(--white); font-weight: 600; }

/* CTAs */
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 16px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.8s var(--ease) 1.1s, transform 0.8s var(--ease) 1.1s;
}
.hero-ctas.in { opacity: 1; transform: translateY(0); }

/* Trust strip under CTAs */
.hero-trust {
  display: flex; align-items: center; gap: 24px;
  margin-top: 52px; flex-wrap: wrap;
  opacity: 0;
  transition: opacity 0.8s ease 1.4s;
}
.hero-trust.in { opacity: 1; }
.trust-divider { width: 1px; height: 28px; background: var(--border); }
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.45);
}
.trust-item i { color: var(--gold); font-size: 13px; }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 5; display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  opacity: 0; animation: fade-in 1s ease 2s forwards;
}
@keyframes fade-in { to { opacity: 1; } }
.scroll-mouse {
  width: 24px; height: 38px; border-radius: 99px;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-mouse-dot {
  width: 4px; height: 8px; border-radius: 99px;
  background: var(--gold);
  animation: scroll-dot 2.2s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%   { transform: translateY(0);  opacity: 1; }
  75%  { transform: translateY(12px); opacity: 0; }
  76%  { transform: translateY(0);    opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}

/* ── Hero: Light Shafts ────────────────────────────────── */
.hero-rays {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none; overflow: hidden;
}
.hero-ray {
  position: absolute; top: -5%; height: 115%;
  background: linear-gradient(
    180deg,
    rgba(226,35,26,0.22) 0%,
    rgba(255,248,200,0.08) 38%,
    transparent 72%
  );
  filter: blur(36px);
  transform-origin: top center;
  animation: ray-breathe 9s ease-in-out infinite;
}
.hero-ray.r1 { left:  6%; width: 85px;  transform: rotate(-22deg); animation-duration: 9s;  animation-delay:  0s;  }
.hero-ray.r2 { left: 23%; width:160px;  transform: rotate( -7deg); animation-duration:13s;  animation-delay: -4s;  }
.hero-ray.r3 { left: 49%; width: 70px;  transform: rotate(  4deg); animation-duration:10s;  animation-delay: -7s;  }
.hero-ray.r4 { left: 69%; width:120px;  transform: rotate( 17deg); animation-duration:11s;  animation-delay: -2s;  }
.hero-ray.r5 { left: 90%; width: 55px;  transform: rotate( 31deg); animation-duration: 7s;  animation-delay: -5s;  }
@keyframes ray-breathe {
  0%, 100% { opacity: 0.22; }
  50%       { opacity: 0.72; }
}

/* ── Hero: Film Grain ──────────────────────────────────── */
.hero-grain {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none; opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grain-drift 0.38s steps(1) infinite;
}
@keyframes grain-drift {
  0%   { background-position:   0px    0px; }
  25%  { background-position: -65px  -45px; }
  50%  { background-position:  55px   75px; }
  75%  { background-position: -45px   60px; }
}

/* ── Hero: Scanline reveal (one-shot on load) ──────────── */
.hero-scanline {
  position: absolute; left: 0; right: 0; z-index: 9;
  height: 2px; top: -2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(226,35,26,0.7)  20%,
    rgba(255,255,255,0.5) 50%,
    rgba(226,35,26,0.7)  80%,
    transparent 100%
  );
  box-shadow: 0 0 22px rgba(226,35,26,0.65), 0 0 55px rgba(226,35,26,0.22);
  pointer-events: none; opacity: 0;
  animation: scanline-sweep 1.9s cubic-bezier(0.4,0,0.6,1) 1.1s forwards;
}
@keyframes scanline-sweep {
  0%   { top: -2px;  opacity: 0; }
  5%   { opacity: 1; }
  92%  { opacity: 0.85; }
  100% { top: 100%;  opacity: 0; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--gold); overflow: hidden; padding: 13px 0;
  border-top: none; border-bottom: none;
}
.marquee-inner {
  display: flex; white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee-inner span {
  font-size: 11px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--bg);
  padding: 0 40px;
}
.marquee-inner span::before { content: '✦  '; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION: WHY (Features)
   ============================================================ */
#why {
  padding: 130px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-header {
  display: grid; grid-template-columns: 1fr;
  gap: 48px; margin-bottom: 80px; align-items: end;
}
@media (min-width: 1024px) {
  .why-header { grid-template-columns: 1.4fr 1fr; }
}

.why-quote {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.2;
}
.why-quote em { font-style: normal; color: var(--gray); font-weight: 300; }

.why-sub {
  font-size: 15px; color: var(--gray); line-height: 1.75;
  max-width: 380px;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.f-card {
  padding: 36px 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative; overflow: hidden;
  transition: border-color 0.4s ease, transform 0.45s var(--ease),
              box-shadow 0.45s ease;
}
.f-card::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, rgba(226,35,26,0.05) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s ease;
}
.f-card:hover { border-color: var(--border-gold); transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(226,35,26,0.08) inset; }
.f-card:hover::before { opacity: 1; }

.f-num {
  position: absolute; top: 28px; right: 28px;
  font-size: 48px; font-weight: 900; letter-spacing: -0.05em;
  color: rgba(255,255,255,0.03); line-height: 1;
  user-select: none;
}

.f-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: rgba(226,35,26,0.07);
  border: 1px solid rgba(226,35,26,0.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--gold);
  margin-bottom: 24px; position: relative; z-index: 1;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.f-card:hover .f-icon {
  background: rgba(226,35,26,0.14);
  box-shadow: 0 0 24px rgba(226,35,26,0.2);
}

.f-card h3 {
  font-size: 17px; font-weight: 700; margin-bottom: 10px;
  position: relative; z-index: 1;
}
.f-card p {
  font-size: 14px; color: var(--gray); line-height: 1.68;
  position: relative; z-index: 1;
}

/* ============================================================
   SECTION: AMBIENTES
   ============================================================ */
#ambientes {
  padding: 130px 0;
  background: var(--bg);
}

.ambientes-top {
  display: flex; flex-direction: column; gap: 24px;
  margin-bottom: 56px;
}
@media (min-width: 900px) {
  .ambientes-top { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

.ambiente-pill {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; color: var(--white);
  padding: 11px 22px; border: 1px solid rgba(255,255,255,0.14);
  border-radius: 99px; white-space: nowrap;
}

.ambientes-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 768px) {
  .ambientes-grid { grid-template-columns: repeat(3, 1fr); }
}

.amb-card {
  position: relative; border-radius: var(--radius);
  overflow: hidden; cursor: default;
  aspect-ratio: 3/4;
}
@media (min-width: 768px) { .amb-card { aspect-ratio: 3/5; } }

.amb-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.85s var(--ease), filter 0.5s ease;
}
.amb-card:hover .amb-img {
  transform: scale(1.07); filter: brightness(0.8);
}

.amb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 30px 26px; z-index: 2;
}

.amb-icon-wrap {
  width: 44px; height: 44px; border-radius: 50%;
  backdrop-filter: blur(12px); border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; margin-bottom: 16px;
  transition: transform 0.4s var(--ease);
}
.amb-card:hover .amb-icon-wrap { transform: scale(1.1); }

.amb-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.amb-card p  { font-size: 13.5px; color: rgba(255,255,255,0.65); line-height: 1.6; }
.amb-temp    { font-size: 11px; font-weight: 700; color: var(--gold); margin-top: 12px; letter-spacing: 0.1em; }

/* ============================================================
   SECTION: PROCESO
   ============================================================ */
#proceso {
  padding: 130px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proceso-header {
  text-align: center; max-width: 640px;
  margin: 0 auto 80px;
}
.proceso-header p {
  color: var(--gray); font-size: 16px; margin-top: 16px; line-height: 1.7;
}

.proceso-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .proceso-grid { grid-template-columns: repeat(3, 1fr); } }

.proceso-step {
  position: relative; padding: 44px 32px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.35s ease, transform 0.4s var(--ease);
}
.proceso-step:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

/* Connector line */
@media (min-width: 768px) {
  .proceso-step:not(:last-child)::after {
    content: '';
    position: absolute; top: 56px; right: -13px;
    width: 24px; height: 1px;
    background: linear-gradient(to right, var(--border-gold), transparent);
    z-index: 1;
  }
}

.step-number {
  font-size: 13px; font-weight: 800; color: var(--gold);
  letter-spacing: 0.08em; margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.step-number::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border);
}

.proceso-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.proceso-step p  { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* ============================================================
   SECTION: PRODUCTO
   ============================================================ */
#producto {
  padding: 130px 0;
  background: var(--bg);
  position: relative; overflow: hidden;
}
#producto::before {
  content: '';
  position: absolute; top: 50%; left: 60%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(226,35,26,0.06) 0%, transparent 68%);
  border-radius: 50%; pointer-events: none;
}

.producto-wrap {
  display: grid; grid-template-columns: 1fr;
  gap: 72px; align-items: center;
}
@media (min-width: 1024px) {
  .producto-wrap { grid-template-columns: 1fr 1fr; }
}

.producto-info .section-title { margin-bottom: 18px; }
.producto-lead {
  font-size: 17px; font-weight: 300; color: var(--gray);
  line-height: 1.75; margin-bottom: 48px;
}

.feature-rows { display: flex; flex-direction: column; gap: 30px; }
.f-row { display: flex; gap: 18px; }
.f-row-icon {
  flex-shrink: 0; width: 42px; height: 42px;
  border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--gold); margin-top: 2px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.f-row:hover .f-row-icon {
  border-color: var(--border-gold);
  background: rgba(226,35,26,0.06);
}
.f-row h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.f-row p  { font-size: 13.5px; color: var(--gray); line-height: 1.65; }

/* Specs bar */
.specs-bar {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  margin-top: 48px;
}
@media (min-width: 560px) {
  .specs-bar { grid-template-columns: repeat(4, 1fr); }
}
.spec-cell {
  background: var(--card); padding: 20px 12px;
  text-align: center; transition: background 0.25s ease;
  min-width: 0;
}
.spec-cell:hover { background: var(--card-alt); }
.spec-val  { display: block; font-size: 17px; font-weight: 800; color: var(--gold); word-break: break-word; }
.spec-name { font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-dim); margin-top: 4px; display: block; }

/* LED Panel Visual */
.panel-scene {
  perspective: 1000px;
  padding: 44px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  position: relative;
}
.panel-scene:hover .led-panel-body {
  transform: rotateX(0deg) rotateY(0deg);
}
.led-panel-body {
  aspect-ratio: 1/1;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  transform: rotateX(6deg) rotateY(-5deg);
  transition: transform 0.7s var(--ease);
  position: relative;
  box-shadow:
    0 0 60px rgba(226,35,26,0.25),
    0 0 120px rgba(226,35,26,0.12),
    inset 0 0 30px rgba(255,255,255,0.12);
}

/* Floating badges on the panel */
.p-badge {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  background: rgba(12,17,33,0.85);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 12px; font-weight: 700;
  white-space: nowrap;
}
.p-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.pb-tl { top: 18px; left: 18px; }
.pb-br { bottom: 18px; right: 18px; color: var(--gray); font-weight: 600; }

/* ============================================================
   SECTION: STATS
   ============================================================ */
#stats {
  padding: 110px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-cell {
  background: var(--card);
  padding: 40px 14px; text-align: center;
  transition: background 0.3s ease;
  min-width: 0;
}
@media (min-width: 480px) {
  .stat-cell { padding: 52px 28px; }
}
.stat-cell:hover { background: var(--card-alt); }

.stat-num {
  font-size: clamp(1.35rem, 3.2vw, 2.6rem);
  font-weight: 900; letter-spacing: -0.03em;
  color: var(--gold); line-height: 1.1;
  margin-bottom: 12px;
  word-break: break-word;
}
.stat-lbl {
  font-size: 13px; font-weight: 500; color: var(--gray);
  line-height: 1.45;
}

/* ============================================================
   SECTION: SECTORES
   ============================================================ */
#sectores {
  padding: 130px 0;
  background: var(--bg);
}

.sectores-hdr {
  text-align: center; max-width: 600px;
  margin: 0 auto 60px;
}
.sectores-hdr p { color: var(--gray); font-size: 15.5px; margin-top: 16px; line-height: 1.7; }

.sectores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.sector-card {
  padding: 36px 18px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center;
  transition: all 0.45s var(--ease);
  cursor: default;
}
.sector-card:hover {
  border-color: var(--border-gold);
  background: rgba(226,35,26,0.035);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.55);
}
.sector-icon { font-size: 32px; color: var(--gold); display: block; margin-bottom: 16px; }
.sector-card h3 { font-size: 14px; font-weight: 700; }

/* ============================================================
   SECTION: CONTACTO
   ============================================================ */
#contacto {
  padding: 130px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.contact-hdr {
  text-align: center; max-width: 580px;
  margin: 0 auto 60px;
}
.contact-hdr p { color: var(--gray); font-size: 16px; margin-top: 16px; line-height: 1.7; }

.contact-box {
  display: grid; grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--card);
  box-shadow: 0 48px 96px rgba(0,0,0,0.55);
}
@media (min-width: 1024px) {
  .contact-box { grid-template-columns: 5fr 7fr; }
}

/* Info panel */
.contact-info {
  padding: 56px 48px;
  background: linear-gradient(150deg, #0c0a0a 0%, #130d0c 100%);
  border-right: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.contact-info::before {
  content: '';
  position: absolute; top: -30%; right: -30%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(226,35,26,0.09) 0%, transparent 70%);
  border-radius: 50%;
}
.contact-info h3 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.contact-info .ci-sub { font-size: 14px; color: var(--gray); margin-bottom: 50px; }

.ci-list { display: flex; flex-direction: column; gap: 34px; }
.ci-item { display: flex; gap: 18px; align-items: flex-start; }
.ci-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--gold); margin-top: 2px;
}
.ci-body h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gray-dim); margin-bottom: 6px;
}
.ci-body p  { font-size: 14px; color: var(--gray); line-height: 1.65; }
.ci-body a  { color: var(--gray); text-decoration: none; transition: color 0.2s ease; }
.ci-body a:hover { color: var(--gold); }
.ci-wa-link {
  color: var(--gold); font-weight: 700; font-size: 13px;
  text-decoration: none; display: inline-block; margin-top: 8px;
  transition: opacity 0.2s ease;
}
.ci-wa-link:hover { opacity: 0.75; }

/* Form panel */
.contact-form-wrap { padding: 56px 48px; }
.contact-form-wrap h3 { font-size: 22px; font-weight: 800; margin-bottom: 34px; }

.form-row {
  display: grid; grid-template-columns: 1fr;
  gap: 20px; margin-bottom: 20px;
}
@media (min-width: 540px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray-dim);
}
.form-control {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--white); font-family: inherit; font-size: 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none; width: 100%;
}
.form-control::placeholder { color: var(--gray-dim); }
.form-control:focus {
  border-color: rgba(226,35,26,0.45);
  box-shadow: 0 0 0 3px rgba(226,35,26,0.08);
}
select.form-control { appearance: none; cursor: pointer; }
select.form-control option { background: var(--card); }
textarea.form-control { resize: none; }

.form-submit {
  width: 100%; margin-top: 28px;
  padding: 17px 20px;
  background: var(--gold); color: var(--bg);
  border: none; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 12px;
  transition: background 0.3s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.form-submit i { font-size: 21px; }
.form-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(226,35,26,0.38);
}

.form-note {
  font-size: 12px; color: var(--gray-dim);
  text-align: center; margin-top: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 52px 0 36px;
}
.footer-inner {
  display: flex; flex-direction: column;
  gap: 28px; align-items: center; text-align: center;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

.footer-logo {
  display: flex; align-items: center; gap: 10px; opacity: 0.65;
}
.footer-logo-img { height: 22px; width: auto; }

.footer-copy { font-size: 13px; color: var(--gray-dim); }

.footer-socials { display: flex; gap: 10px; }
.footer-soc {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 15px;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.footer-soc:hover {
  color: var(--gold); border-color: var(--border-gold);
  background: rgba(226,35,26,0.06);
}

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa-btn {
  position: fixed; bottom: 26px; right: 26px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green-wa); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 27px; text-decoration: none;
  box-shadow: 0 4px 24px rgba(37,211,102,0.5);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.wa-btn::before, .wa-btn::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%; border: 2px solid rgba(37,211,102,0.45);
  animation: wa-ring 2.6s ease-out infinite;
}
.wa-btn::after { animation-delay: 0.8s; border-color: rgba(37,211,102,0.25); }
@keyframes wa-ring {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}
.wa-btn:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 8px 36px rgba(37,211,102,0.65);
}
