/* ══════════════════════════════════════════════════════
   FÉNIX — Ingeniería de Mantenimiento y Automatización
   Design system: industrial premium / dark / phoenix-fire accent
══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

:root {
  /* Base */
  --black:      #07070a;
  --bg-1:       #0b0a09;
  --bg-2:       #121110;
  --charcoal:   #1a1714;
  --charcoal-2: #211d18;
  --border:     rgba(255,255,255,.08);
  --border-2:   rgba(255,255,255,.16);

  /* Text */
  --white:    #f7f4ee;
  --gray:     #a79f92;
  --gray-dim: #706a60;

  /* Phoenix fire accent */
  --fire:      #e2401f;
  --fire-2:    #ff8a3d;
  --fire-deep: #7a1a12;
  --gold:      #ff8a3d;   /* alias used by .gold utility class */
  --brass:     #c9a876;   /* gear brass, used sparingly */

  --gradient-fire: linear-gradient(135deg, var(--fire) 0%, var(--fire-2) 100%);
  --gradient-fire-deep: linear-gradient(160deg, var(--fire-deep) 0%, var(--fire) 55%, var(--fire-2) 100%);

  --shadow-fire: 0 14px 34px -12px rgba(226,64,31,.55);
  --shadow-soft: 0 20px 50px -20px rgba(0,0,0,.7);

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1240px;

  --ease: cubic-bezier(.16,.84,.32,1);
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-1);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.lock { overflow: hidden; height: 100vh; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4,p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.gold {
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fire-2);
  margin-bottom: 14px;
}
.label::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--gradient-fire);
  display: inline-block;
}

.section-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
}

section { position: relative; padding: 110px 0; scroll-margin-top: 96px; }
section#hero { padding: 0; }
.serv-card { scroll-margin-top: 110px; }

/* ══════════════════════════════════════════════════════
   REVEAL ON SCROLL
══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }

/* ══════════════════════════════════════════════════════
   AMBIENT PARTICLES (used inside multiple sections)
══════════════════════════════════════════════════════ */
.particles {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.particles span {
  position: absolute;
  bottom: -20px;
  width: var(--s, 4px); height: var(--s, 4px);
  border-radius: 50%;
  background: var(--fire-2);
  opacity: .55;
  box-shadow: 0 0 8px 1px rgba(255,138,61,.6);
  animation: particle-rise var(--dur, 10s) linear infinite;
  animation-delay: var(--delay, 0s);
  left: var(--x, 50%);
}
@keyframes particle-rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: .6; }
  90%  { opacity: .35; }
  100% { transform: translateY(-620px) translateX(var(--drift, 30px)); opacity: 0; }
}

/* ══════════════════════════════════════════════════════
   PAGE LOAD TRANSITION — LOADER
══════════════════════════════════════════════════════ */
#loader {
  position: fixed; inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 40%, #1a1310 0%, #07070a 72%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 34px;
  transition: opacity .9s var(--ease), visibility .9s var(--ease);
}
#loader::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 48px);
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 75%);
  animation: loader-grid-pulse 3s ease-in-out infinite;
}
@keyframes loader-grid-pulse { 0%,100%{opacity:.5} 50%{opacity:1} }

#loader.loader-hide {
  opacity: 0;
  visibility: hidden;
}
#loader.loader-burst .loader-flash {
  opacity: 1;
  transform: scale(1);
  transition: transform .7s cubic-bezier(.2,.9,.3,1), opacity .7s ease .1s;
}
.loader-flash {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 45%, #fff 0%, var(--fire-2) 22%, var(--fire) 42%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

.loader-bulb {
  position: relative;
  width: 128px; height: 128px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.loader-bulb::before {
  content: '';
  position: absolute; inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226,64,31,.55) 0%, rgba(226,64,31,0) 70%);
  animation: loader-pulse 1.8s ease-in-out infinite;
}
@keyframes loader-pulse {
  0%,100% { transform: scale(.8); opacity: .6; }
  50% { transform: scale(1.25); opacity: 1; }
}
.loader-bulb img {
  width: 100%; height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  animation: loader-rise 2.6s var(--ease) infinite;
  filter: drop-shadow(0 0 22px rgba(226,64,31,.55));
}
@keyframes loader-rise {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.04); }
}

.loader-bar {
  width: 220px; height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  overflow: hidden;
  z-index: 2;
}
.loader-bar-fill {
  width: 0%; height: 100%;
  background: var(--gradient-fire);
  box-shadow: 0 0 12px rgba(226,64,31,.8);
  transition: width 2.4s cubic-bezier(.3,.8,.3,1);
}
.loader-text {
  z-index: 2;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray);
}
.loader-text span { color: var(--fire-2); }

/* ══════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 18px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(7,7,10,.86);
  backdrop-filter: blur(14px);
  padding: 12px 0;
  border-color: var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: #000;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.nav-logo:hover .nav-logo-icon { transform: scale(1.06) rotate(-4deg); box-shadow: var(--shadow-fire); }
.nav-logo-icon img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; }
.nav-logo-copy {
  display: flex; flex-direction: column; line-height: 1.05;
}
.nav-logo-copy span:first-child {
  font-size: 21px; font-weight: 800; letter-spacing: .04em;
}
.nav-logo-copy span:last-child {
  font-size: 9.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fire-2);
}

nav[aria-label="Navegación principal"] { flex: 1; display: flex; justify-content: center; }
.nav-links {
  display: flex; align-items: center; gap: 34px;
}
.nav-links a {
  font-size: 14.5px; font-weight: 600; color: var(--gray);
  position: relative; padding: 4px 0;
  transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--gradient-fire);
  transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-drop { position: relative; }
.nav-drop-trigger { display: inline-flex; align-items: center; gap: 7px; }
.nav-drop-trigger i {
  font-size: 9px; color: var(--gray-dim);
  transition: transform .3s var(--ease), color .3s;
}
.nav-drop:hover .nav-drop-trigger i,
.nav-drop:focus-within .nav-drop-trigger i { transform: rotate(180deg); color: var(--fire-2); }

.nav-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  padding-top: 16px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease), visibility .25s;
  z-index: 60;
}
.nav-drop:hover .nav-dropdown,
.nav-drop:focus-within .nav-dropdown { opacity: 1; visibility: visible; pointer-events: auto; }
.nav-dropdown-panel {
  width: 560px;
  background: var(--charcoal);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.nav-dropdown-panel a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px; border-radius: 10px;
  transition: background .25s;
}
.nav-dropdown-panel a:hover { background: rgba(255,138,61,.08); }
.nav-dropdown-panel a i {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px;
  background: rgba(226,64,31,.12); color: var(--fire-2);
  display: flex; align-items: center; justify-content: center; font-size: 13.5px;
}
.nav-dropdown-panel a span { font-size: 13.5px; font-weight: 600; color: var(--white); line-height: 1.3; }

.btn-gold, .form-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--gradient-fire);
  color: #fff;
  font-weight: 700; font-size: 15px;
  padding: 15px 30px;
  border-radius: 100px;
  border: none;
  box-shadow: var(--shadow-fire);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .3s;
  white-space: nowrap;
}
.btn-gold:hover, .form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -10px rgba(226,64,31,.7);
  filter: brightness(1.08);
}
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-2);
  color: var(--white);
  font-weight: 600; font-size: 15px;
  padding: 15px 28px;
  border-radius: 100px;
  transition: border-color .3s, background .3s, transform .35s var(--ease);
}
.btn-outline:hover { border-color: var(--fire-2); background: rgba(255,138,61,.06); transform: translateY(-3px); }

.nav-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1c1a17;
  border: 1px solid var(--border-2);
  color: var(--white);
  font-weight: 700; font-size: 13.5px;
  padding: 11px 20px 11px 16px;
  border-radius: 100px;
  transition: all .3s var(--ease);
}
.nav-wa i { color: #25D366; font-size: 17px; }
.nav-wa:hover { border-color: #25D366; background: rgba(37,211,102,.08); transform: translateY(-2px); }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
  z-index: 10;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--white);
  transition: transform .3s var(--ease), opacity .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mob-menu {
  position: fixed; top: 86px; right: 0;
  width: min(340px, 82vw); height: calc(100vh - 86px);
  background: #0c0b0a;
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 30px 30px 40px;
  transform: translateX(100%);
  transition: transform .5s var(--ease);
  z-index: 490;
  overflow-y: auto;
}
#mob-menu.active { transform: translateX(0); }
#mob-menu a {
  padding: 16px 4px; font-size: 17px; font-weight: 600;
  border-bottom: 1px solid var(--border);
  color: var(--gray);
}
#mob-menu a:last-child {
  margin-top: 18px; border: none; color: var(--fire-2); font-weight: 800;
}
#mob-menu .mob-submenu {
  display: flex; flex-direction: column;
  padding: 2px 0 12px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}
#mob-menu .mob-submenu a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 4px; border-bottom: none;
  font-size: 13.5px; font-weight: 500; color: var(--gray-dim);
}
#mob-menu .mob-submenu a:hover { color: var(--white); }
#mob-menu .mob-submenu a i { width: 18px; text-align: center; color: var(--fire-2); font-size: 12px; }

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--black);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  transform: scale(1.06);
  opacity: .55;
}
@media (max-width: 900px) { .hero-bg { background-attachment: scroll; } }

.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,7,10,.55) 0%, rgba(7,7,10,.72) 55%, rgba(7,7,10,.95) 100%),
    linear-gradient(100deg, rgba(7,7,10,.85) 0%, rgba(7,7,10,.35) 55%, rgba(7,7,10,.75) 100%);
}
.hero-vignette {
  position: absolute; inset: 0;
  box-shadow: inset 0 0 220px 60px rgba(0,0,0,.85);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,138,61,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,138,61,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 30% 40%, black, transparent 70%);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-rays { position: absolute; inset: 0; overflow: hidden; opacity: .5; mix-blend-mode: screen; }
.hero-ray {
  position: absolute; top: -20%; width: 2px; height: 140%;
  background: linear-gradient(180deg, rgba(255,138,61,.5), transparent 75%);
  transform-origin: top center;
  animation: ray-sway 9s ease-in-out infinite;
}
.hero-ray.r1 { left: 8%;  transform: rotate(12deg);  animation-delay: 0s; }
.hero-ray.r2 { left: 24%; transform: rotate(-8deg);  animation-delay: 1.2s; width: 3px;}
.hero-ray.r3 { left: 48%; transform: rotate(6deg);   animation-delay: .6s; }
.hero-ray.r4 { left: 68%; transform: rotate(-14deg); animation-delay: 2s; width:3px;}
.hero-ray.r5 { left: 86%; transform: rotate(10deg);  animation-delay: 1.6s; }
@keyframes ray-sway { 0%,100%{ opacity:.25 } 50%{ opacity:.7 } }

.hero-grain {
  position: absolute; inset: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.hero-scanline {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,138,61,.5), transparent);
  width: 40%;
  transform: translateX(-140%);
  animation: scan-reveal 2.4s var(--ease) .3s 1;
}
@keyframes scan-reveal {
  0% { transform: translateX(-140%); }
  60% { transform: translateX(240%); }
  100% { transform: translateX(240%); opacity: 0; }
}

.hero-content { position: relative; z-index: 3; max-width: 760px; padding-top: 90px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(226,64,31,.1);
  border: 1px solid rgba(255,138,61,.35);
  padding: 9px 18px 9px 14px;
  border-radius: 100px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fire-2);
  margin-bottom: 28px;
  opacity: 0; animation: hero-in .8s var(--ease) .2s forwards;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.6);
  animation: dot-ping 2s infinite;
}
@keyframes dot-ping { 0%{box-shadow:0 0 0 0 rgba(74,222,128,.6)} 70%{box-shadow:0 0 0 8px rgba(74,222,128,0)} 100%{box-shadow:0 0 0 0 rgba(74,222,128,0)} }

.hero-title {
  font-size: clamp(40px, 6.4vw, 78px);
  font-weight: 800; line-height: 1.04; letter-spacing: -.02em;
  margin-bottom: 26px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(115%);
  animation: line-up .9s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * .12s + .25s);
}
.hero-title .line:nth-child(1) > span { --i: 0; }
.hero-title .line:nth-child(2) > span { --i: 1; }
.hero-title .line:nth-child(3) > span { --i: 2; }
@keyframes line-up { to { transform: translateY(0); } }
.hero-title .accent { font-style: italic; }
.hero-title .accent, .hero-title .line .gold { background: var(--gradient-fire); -webkit-background-clip:text; background-clip:text; color:transparent; }

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7; color: var(--gray);
  max-width: 580px; margin-bottom: 38px;
  opacity: 0; animation: hero-in .8s var(--ease) .7s forwards;
}
.hero-sub strong { color: var(--white); font-weight: 700; }

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 52px;
  opacity: 0; animation: hero-in .8s var(--ease) .85s forwards;
}
@keyframes hero-in { to { opacity: 1; } }

.hero-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  opacity: 0; animation: hero-in .8s var(--ease) 1s forwards;
}
.trust-item {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--gray);
}
.trust-item i { color: var(--fire-2); font-size: 14px; }
.trust-divider { width: 1px; height: 16px; background: var(--border-2); }

.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 3;
}
.scroll-mouse {
  width: 26px; height: 42px; border: 2px solid var(--border-2);
  border-radius: 20px; display: flex; justify-content: center; padding-top: 8px;
}
.scroll-mouse-dot {
  width: 4px; height: 8px; border-radius: 3px; background: var(--fire-2);
  animation: scroll-dot 1.6s ease-in-out infinite;
}
@keyframes scroll-dot { 0%{ opacity:1; transform:translateY(0);} 100%{ opacity:0; transform:translateY(14px);} }

/* ══════════════════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════════════════ */
.marquee {
  background: var(--charcoal);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-inner {
  display: inline-flex; gap: 48px;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-inner span {
  font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gray-dim); display: inline-flex; align-items: center; gap: 12px;
}
.marquee-inner span i { color: var(--fire-2); font-size: 8px; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════════════════════════════════════════════════
   WHY — FEATURES
══════════════════════════════════════════════════════ */
.why-header {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px;
  align-items: end; margin-bottom: 60px;
}
.why-quote { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; line-height: 1.4; }
.why-quote em { font-style: italic; color: var(--fire-2); }
.why-sub { color: var(--gray); font-size: 16px; line-height: 1.8; }

.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.f-card {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px;
  position: relative; overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s, background .45s;
}
.f-card:hover { transform: translateY(-8px); border-color: rgba(255,138,61,.4); background: var(--charcoal-2); }
.f-num {
  font-size: 52px; font-weight: 800; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,138,61,.5);
  margin-bottom: 22px;
  transition: -webkit-text-stroke .4s, color .4s;
}
.f-card:hover .f-num { -webkit-text-stroke: 1.5px transparent; background: var(--gradient-fire); -webkit-background-clip:text; background-clip:text; color:transparent; }
.f-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(226,64,31,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--fire-2); font-size: 17px;
  margin-bottom: 18px;
}
.f-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.f-card p { font-size: 14.5px; line-height: 1.7; color: var(--gray); }

/* ══════════════════════════════════════════════════════
   LÍNEAS DE SERVICIO (image-overlay cards) — id="ambientes"
══════════════════════════════════════════════════════ */
.ambientes-top {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px; gap: 24px; flex-wrap: wrap;
}
.ambiente-pill {
  border: 1px solid var(--border-2); border-radius: 100px;
  padding: 10px 20px; font-size: 13px; font-weight: 600; color: var(--gray);
}
.ambientes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.amb-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: 460px; isolation: isolate;
  border: 1px solid var(--border);
}
.amb-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.amb-card:hover .amb-img { transform: scale(1.08); }
.amb-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,7,10,.15) 0%, rgba(7,7,10,.55) 55%, rgba(7,7,10,.96) 100%);
  z-index: 1;
}
.amb-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 30px 26px;
}
.amb-icon-wrap {
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 18px;
  backdrop-filter: blur(6px);
}
.amb-overlay h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.amb-overlay p { font-size: 14px; line-height: 1.6; color: #d8d3c9; margin-bottom: 14px; }
.amb-temp {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--fire-2);
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 12px;
}

/* ══════════════════════════════════════════════════════
   PROCESO
══════════════════════════════════════════════════════ */
.proceso-header { max-width: 620px; margin-bottom: 56px; }
.proceso-header p { color: var(--gray); font-size: 16px; line-height: 1.8; margin-top: 14px; }
.proceso-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.proceso-step {
  position: relative;
  border-left: 1px solid var(--border);
  padding-left: 28px;
}
.step-number {
  font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fire-2); margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
}
.step-number::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gradient-fire);
  box-shadow: 0 0 0 4px rgba(226,64,31,.18);
}
.proceso-step h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.proceso-step p { font-size: 15px; line-height: 1.75; color: var(--gray); }

/* ══════════════════════════════════════════════════════
   SERVICIOS (cards con foto real)
══════════════════════════════════════════════════════ */
.servicios-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.serv-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--charcoal); border: 1px solid var(--border);
  transition: transform .45s var(--ease), border-color .4s;
}
.serv-card:hover { transform: translateY(-8px); border-color: rgba(255,138,61,.35); }
.serv-photo { position: relative; height: 220px; overflow: hidden; }
.serv-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.serv-card:hover .serv-photo img { transform: scale(1.08); }
.serv-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7,7,10,.85) 100%);
}
.serv-body { padding: 24px 24px 28px; }
.serv-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.serv-body p { font-size: 14.5px; line-height: 1.7; color: var(--gray); }

/* ══════════════════════════════════════════════════════
   PRODUCTO / MAQUINADO SHOWCASE
══════════════════════════════════════════════════════ */
.producto-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.producto-lead { font-size: 17px; line-height: 1.8; color: var(--gray); margin: 20px 0 34px; }

.feature-rows { display: flex; flex-direction: column; gap: 22px; margin-bottom: 36px; }
.f-row { display: flex; gap: 16px; align-items: flex-start; }
.f-row-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px;
  background: rgba(226,64,31,.12); color: var(--fire-2);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.f-row h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 5px; }
.f-row p { font-size: 14px; color: var(--gray); line-height: 1.65; }

.specs-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.spec-cell {
  padding: 20px 14px; text-align: center;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.spec-cell:last-child { border-right: none; }
.spec-val { font-size: 15px; font-weight: 800; color: var(--fire-2); }
.spec-name { font-size: 11.5px; color: var(--gray-dim); text-transform: uppercase; letter-spacing: .05em; }

.panel-scene { position: relative; }
.led-panel-body {
  width: 100%; aspect-ratio: 4/5;
  border-radius: var(--radius);
  background-image: linear-gradient(180deg, rgba(7,7,10,0) 40%, rgba(7,7,10,.9) 100%), url('../img/producto/showcase.jpg');
  background-size: cover; background-position: center;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-soft);
}
.p-badge {
  position: absolute;
  display: flex; align-items: center; gap: 9px;
  background: rgba(10,9,8,.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  padding: 11px 18px;
  font-size: 12.5px; font-weight: 700;
}
.p-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.pb-tl { top: 22px; left: 22px; }
.pb-br { bottom: 22px; right: 22px; }

/* ══════════════════════════════════════════════════════
   STATS
══════════════════════════════════════════════════════ */
#stats { padding: 80px 0; background: var(--charcoal); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat-cell { display: flex; flex-direction: column; gap: 10px; }
.stat-num {
  font-size: clamp(38px, 5vw, 58px); font-weight: 800;
  background: var(--gradient-fire); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-lbl { font-size: 14px; color: var(--gray); line-height: 1.5; }

/* ══════════════════════════════════════════════════════
   SECTORES
══════════════════════════════════════════════════════ */
.sectores-hdr { max-width: 560px; margin-bottom: 50px; }
.sectores-hdr p { color: var(--gray); margin-top: 12px; font-size: 16px; }
.sectores-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.sector-card {
  background: var(--charcoal); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 16px; text-align: center;
  transition: transform .4s var(--ease), border-color .4s;
}
.sector-card:hover { transform: translateY(-6px); border-color: rgba(255,138,61,.4); }
.sector-icon { font-size: 26px; color: var(--fire-2); margin-bottom: 14px; }
.sector-card h3 { font-size: 14.5px; font-weight: 700; }

/* ══════════════════════════════════════════════════════
   GALERÍA
══════════════════════════════════════════════════════ */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 4/5; border: 1px solid var(--border);
}
.gallery-item:nth-child(4n+1) { grid-row: span 2; aspect-ratio: 4/9.6; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(7,7,10,.95));
  font-size: 12.5px; font-weight: 600; line-height: 1.5; color: #ece7dd;
  transform: translateY(6px); opacity: .92;
}

.gallery-videos-hdr { max-width: 560px; margin: 56px 0 26px; }
.gallery-videos-hdr h3 { font-size: 22px; font-weight: 800; }
.gallery-videos-hdr p { color: var(--gray); margin-top: 8px; font-size: 14.5px; }
.gallery-videos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gallery-video-item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 16/10; border: 1px solid var(--border); background: var(--charcoal);
}
.gallery-video-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-badge {
  position: absolute; top: 14px; left: 14px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(10,9,8,.85); backdrop-filter: blur(10px);
  border: 1px solid var(--border-2); border-radius: 100px;
  padding: 7px 14px; font-size: 11.5px; font-weight: 700;
}
@media (max-width: 700px) { .gallery-videos-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════
   SECTION BACKGROUNDS — imagen fija (parallax) alternadas
══════════════════════════════════════════════════════ */
.section-bg-fixed { overflow: hidden; }
.section-bg-img {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  background-attachment: fixed;
  transform: scale(1.05);
}
@media (max-width: 900px) { .section-bg-img { background-attachment: scroll; } }
.section-bg-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(7,7,10,.90) 0%, rgba(7,7,10,.93) 55%, rgba(7,7,10,.97) 100%);
}
.section-bg-fixed > .container { position: relative; z-index: 2; }

/* ══════════════════════════════════════════════════════
   CTA BAND (fixed bg + text)
══════════════════════════════════════════════════════ */
.cta-band {
  position: relative; padding: 130px 0;
  overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero/cta-bg.jpg');
  background-size: cover; background-position: center;
  background-attachment: fixed;
  transform: scale(1.05);
}
@media (max-width: 900px) { .cta-bg { background-attachment: scroll; } }
.cta-band::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(7,7,10,.94) 20%, rgba(7,7,10,.65) 60%, rgba(7,7,10,.92) 100%);
}
.cta-inner { position: relative; z-index: 2; max-width: 640px; }
.cta-inner h2 { font-size: clamp(28px,3.6vw,42px); font-weight: 800; line-height: 1.25; margin-bottom: 18px; }
.cta-inner p { font-size: 16.5px; color: var(--gray); line-height: 1.75; margin-bottom: 34px; }

/* ══════════════════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════════════════ */
.contact-hdr { max-width: 560px; margin-bottom: 50px; }
.contact-hdr p { color: var(--gray); margin-top: 12px; font-size: 16px; }
.contact-box {
  display: grid; grid-template-columns: .85fr 1.15fr;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.contact-info { background: var(--charcoal); padding: 48px 40px; }
.contact-info h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.ci-sub { color: var(--gray); font-size: 14.5px; line-height: 1.7; margin-bottom: 34px; }
.ci-list { display: flex; flex-direction: column; gap: 26px; }
.ci-item { display: flex; gap: 16px; }
.ci-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px;
  background: rgba(226,64,31,.12); color: var(--fire-2);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.ci-body h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 5px; }
.ci-body p { font-size: 14px; color: var(--gray); line-height: 1.65; }
.ci-body a { color: var(--gray); transition: color .3s; }
.ci-body a:hover { color: var(--fire-2); }
.ci-wa-link { display: inline-block; margin-top: 6px; color: #25D366 !important; font-weight: 700; font-size: 13.5px; }

.contact-form-wrap { padding: 48px 44px; background: var(--bg-1); }
.contact-form-wrap h3 { font-size: 21px; font-weight: 700; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--gray); }
.form-control {
  background: var(--charcoal);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--white); font-size: 14.5px; font-family: inherit;
  transition: border-color .3s, box-shadow .3s;
}
.form-control:focus {
  outline: none; border-color: var(--fire-2);
  box-shadow: 0 0 0 3px rgba(255,138,61,.15);
}
.form-control::placeholder { color: var(--gray-dim); }
select.form-control { appearance: none; }
.form-submit { width: 100%; margin-top: 6px; }
.form-note { font-size: 12.5px; color: var(--gray-dim); text-align: center; margin-top: 14px; line-height: 1.6; }

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
footer { background: var(--charcoal); border-top: 1px solid var(--border); padding: 70px 0 30px; }

.footer-top {
  display: grid; grid-template-columns: 1.3fr 2fr;
  gap: 50px; padding-bottom: 46px; margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo-icon {
  width: 56px; height: 56px; border-radius: 50%; background: #000;
  border: 1px solid var(--border-2); display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.footer-logo-icon img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; }
.footer-logo span { font-size: 20px; font-weight: 800; }
.footer-tagline { font-size: 14px; color: var(--gray); max-width: 340px; line-height: 1.75; }

.footer-socials { display: flex; gap: 12px; }
.footer-soc {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--gray);
  transition: all .3s var(--ease);
}
.footer-soc:hover { border-color: var(--fire-2); color: var(--fire-2); transform: translateY(-3px); }

.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col h4 {
  font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fire-2); margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--gray); transition: color .3s; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-copy { font-size: 12.5px; color: var(--gray-dim); }
.footer-credit { font-size: 12px; color: var(--gray-dim); }

/* ══════════════════════════════════════════════════════
   FLOATING WHATSAPP
══════════════════════════════════════════════════════ */
.wa-btn {
  position: fixed; bottom: 26px; right: 26px; z-index: 400;
  width: 62px; height: 62px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.65);
  animation: wa-float 3s ease-in-out infinite;
}
.wa-btn::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.5);
  animation: wa-ping 2.2s ease-out infinite;
}
@keyframes wa-float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-8px);} }
@keyframes wa-ping { 0%{ transform: scale(.9); opacity: 1;} 100%{ transform: scale(1.5); opacity: 0;} }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .why-header { grid-template-columns: 1fr; gap: 20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .ambientes-grid { grid-template-columns: 1fr; }
  .amb-card { height: 380px; }
  .proceso-grid { grid-template-columns: 1fr; gap: 44px; }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .producto-wrap { grid-template-columns: 1fr; gap: 50px; }
  .sectores-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-box { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  nav[aria-label="Navegación principal"], .nav-cta { display: none; }
  .hamburger { display: flex; }
  section { padding: 80px 0; }
  .marquee-inner { animation-duration: 20s; }
}
@media (max-width: 640px) {
  .nav-logo-copy span:last-child { display: none; }
}
@media (max-width: 480px) {
  .nav-wa span { display: none; }
  .nav-wa { padding: 11px; }
  .nav-inner { gap: 10px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .nav-logo-icon { width: 50px; height: 50px; }
  .features-grid { grid-template-columns: 1fr; }
  .servicios-grid { grid-template-columns: 1fr; }
  .sectores-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(4n+1) { grid-row: span 1; aspect-ratio: 4/5; }
  .form-row { grid-template-columns: 1fr; }
  .contact-info, .contact-form-wrap { padding: 34px 24px; }
  .hero-content { padding-top: 120px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas a { justify-content: center; }
  .cta-band { padding: 90px 0; }
  .wa-btn { width: 54px; height: 54px; font-size: 24px; bottom: 18px; right: 18px; }
  .scroll-cue { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
