/* ==========================================================================
   LUX PRO ENERGY — Industrial B2B Engineering Design System
   Palette: Deep Navy (#051937), Electric Flame Blue (#0077D4 / #0095FF),
            Steel Slate (#4E5861), Carbon (#0B111E), Technical Alabaster (#F4F7FA)
   ========================================================================== */

:root {
  --lux-navy-950: #040d1a;
  --lux-navy-900: #071932;
  --lux-navy-800: #0b2548;
  --lux-navy-700: #123463;
  --lux-blue-600: #0066b8;
  --lux-blue-500: #0080e6;
  --lux-blue-400: #1aa3ff;
  --lux-cyan-400: #38bdf8;
  --lux-slate-900: #0f172a;
  --lux-slate-800: #1e293b;
  --lux-slate-700: #334155;
  --lux-slate-600: #475569;
  --lux-slate-500: #64748b;
  --lux-slate-300: #cbd5e1;
  --lux-slate-200: #e2e8f0;
  --lux-slate-100: #f1f5f9;
  --lux-bg-light: #f5f7fa;
  --lux-white: #ffffff;
  --lux-border: rgba(15, 23, 42, 0.1);
  --lux-border-dark: rgba(255, 255, 255, 0.12);
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  font-family: var(--font-body);
  color: var(--lux-slate-800);
  background-color: var(--lux-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

.font-mono-tech {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Technical Grid & Architectural Background Patterns
   ========================================================================== */
.bg-tech-grid-light {
  background-color: var(--lux-bg-light);
  background-image:
    linear-gradient(to right, rgba(7, 25, 50, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(7, 25, 50, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
}

.bg-tech-grid-dark {
  background-color: var(--lux-navy-950);
  background-image:
    radial-gradient(circle at 85% 15%, rgba(0, 128, 230, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(26, 163, 255, 0.1) 0%, transparent 40%),
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

.bg-blueprint-dots {
  background-image: radial-gradient(rgba(7, 25, 50, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ==========================================================================
   Top Telemetry Bar & Navbar
   ========================================================================== */
.top-telemetry-bar {
  background: var(--lux-navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: var(--lux-slate-300);
  padding: 0.45rem 0;
  z-index: 1035;
  position: relative;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.lux-navbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.85rem 0;
  transition: all 0.35s var(--transition-smooth);
}

.lux-navbar.navbar-scrolled {
  padding: 0.6rem 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 32px -12px rgba(4, 13, 26, 0.12);
}

.navbar-brand-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s var(--transition-smooth);
}

.navbar-brand:hover .navbar-brand-logo {
  transform: scale(1.02);
}

.lux-nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--lux-slate-800) !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color 0.25s ease;
}

.lux-nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--lux-blue-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--transition-smooth);
}

.lux-nav-link:hover,
.lux-nav-link.active {
  color: var(--lux-blue-600) !important;
}

.lux-nav-link:hover::after,
.lux-nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ==========================================================================
   Buttons & Editorial Badges
   ========================================================================== */
.btn-lux-primary {
  background: linear-gradient(135deg, var(--lux-blue-500) 0%, var(--lux-blue-600) 100%);
  color: var(--lux-white);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px -6px rgba(0, 119, 212, 0.45);
  transition: all 0.3s var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-lux-primary:hover,
.btn-lux-primary:focus {
  background: linear-gradient(135deg, var(--lux-blue-400) 0%, var(--lux-blue-500) 100%);
  color: var(--lux-white);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -6px rgba(0, 128, 230, 0.55);
}

.btn-lux-outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: var(--lux-white);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-lux-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--lux-white);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-lux-dark {
  background: var(--lux-navy-900);
  color: var(--lux-white);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.62rem 1.25rem;
  border-radius: 6px;
  border: 1px solid var(--lux-navy-800);
  font-size: 0.88rem;
  transition: all 0.3s var(--transition-smooth);
}

.btn-lux-dark:hover {
  background: var(--lux-blue-600);
  border-color: var(--lux-blue-600);
  color: var(--lux-white);
  transform: translateY(-1px);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.38rem 0.85rem;
  border-radius: 4px;
  background: rgba(0, 128, 230, 0.09);
  color: var(--lux-blue-600);
  border-left: 3px solid var(--lux-blue-500);
  margin-bottom: 1rem;
}

.section-eyebrow-dark {
  background: rgba(26, 163, 255, 0.14);
  color: var(--lux-cyan-400);
  border-left: 3px solid var(--lux-cyan-400);
}

/* ==========================================================================
   1. Hero Section (Dual 1:1 Image Adaptive Showcase + Engineering Telemetry)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  background-color: var(--lux-navy-950);
  color: var(--lux-white);
  overflow: hidden;
  padding: 4.5rem 0 5rem;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease-in-out, transform 6s ease-out;
}

.hero-bg-slide.active {
  opacity: 0.32;
  transform: scale(1);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 13, 26, 0.96) 0%, rgba(7, 25, 50, 0.88) 52%, rgba(4, 13, 26, 0.72) 100%),
    linear-gradient(180deg, rgba(4, 13, 26, 0.4) 0%, rgba(4, 13, 26, 0.92) 100%);
  z-index: 1;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  z-index: 1;
  pointer-events: none;
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.25rem, 4.2vw, 3.65rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--lux-white);
}

.hero-title .text-highlight {
  background: linear-gradient(90deg, #ffffff 0%, #7dd3fc 55%, #0095ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  color: var(--lux-slate-300);
  font-weight: 400;
  max-width: 600px;
}

/* Hero Visual Showcase Frame (1:1 Square Adapted for Wide & Mobile) */
.hero-visual-stage {
  position: relative;
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65);
}

.hero-square-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--lux-navy-900);
}

.hero-square-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.65s ease, transform 0.85s var(--transition-smooth);
}

.hero-square-img.active {
  opacity: 1;
  transform: scale(1);
}

.hero-square-viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,13,26,0) 55%, rgba(4,13,26,0.85) 100%);
  pointer-events: none;
}

.hero-viewport-hud {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.hero-scene-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.hero-scene-btn {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--lux-slate-300);
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  text-align: left;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-scene-btn:hover {
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--lux-white);
}

.hero-scene-btn.active {
  background: rgba(0, 128, 230, 0.22);
  border-color: var(--lux-cyan-400);
  color: var(--lux-white);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.3);
}

.hero-scene-thumb {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Executive B2B Trust & Metrics Strip
   ========================================================================== */
.b2b-metrics-strip {
  position: relative;
  z-index: 5;
  margin-top: -2.2rem;
}

.b2b-metrics-card {
  background: var(--lux-white);
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 20px 45px -15px rgba(7, 25, 50, 0.12);
  overflow: hidden;
}

.metric-cell {
  padding: 1.65rem 1.5rem;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  transition: background-color 0.25s ease;
}

.metric-cell:last-child {
  border-right: none;
}

.metric-cell:hover {
  background-color: rgba(0, 128, 230, 0.025);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--lux-navy-900);
  line-height: 1.1;
}

/* ==========================================================================
   2. Nosotros Section (Asymmetric Dual 1:1 Editorial Composition)
   ========================================================================== */
.about-editorial-grid {
  position: relative;
}

.img-frame-1x1 {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--lux-navy-900);
  box-shadow: 0 18px 40px -15px rgba(7, 25, 50, 0.22);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.img-frame-1x1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.7s var(--transition-smooth);
}

.img-frame-1x1:hover img {
  transform: scale(1.045);
}

.img-caption-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(4, 13, 26, 0.86);
  backdrop-filter: blur(10px);
  color: var(--lux-white);
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  border-left: 3px solid var(--lux-blue-400);
  font-size: 0.82rem;
}

.about-pillar-item {
  padding: 1.15rem 1.25rem;
  border-radius: 8px;
  background: var(--lux-white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: all 0.3s var(--transition-smooth);
}

.about-pillar-item:hover {
  border-color: var(--lux-blue-500);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -10px rgba(0, 102, 184, 0.15);
}

/* ==========================================================================
   3. Servicios Section (Engineering Cards + Dual View on Card 1)
   ========================================================================== */
.service-card-b2b {
  background: var(--lux-white);
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--transition-smooth);
  box-shadow: 0 10px 30px -12px rgba(7, 25, 50, 0.07);
}

.service-card-b2b:hover {
  transform: translateY(-6px);
  border-color: var(--lux-blue-500);
  box-shadow: 0 24px 48px -15px rgba(7, 25, 50, 0.16);
}

.service-media-1x1 {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--lux-navy-950);
}

.service-media-1x1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.7s var(--transition-smooth), opacity 0.45s ease;
}

.service-card-b2b:hover .service-media-1x1 img.active-service-img {
  transform: scale(1.05);
}

.service-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,13,26,0.35) 0%, rgba(4,13,26,0) 35%, rgba(4,13,26,0.82) 100%);
  pointer-events: none;
}

.service-index-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(4, 13, 26, 0.82);
  backdrop-filter: blur(8px);
  color: var(--lux-cyan-400);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  z-index: 2;
}

.service-dual-toggle {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  gap: 6px;
  background: rgba(4, 13, 26, 0.82);
  backdrop-filter: blur(8px);
  padding: 5px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.service-dual-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--lux-slate-300);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  padding: 0.38rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.service-dual-btn.active {
  background: var(--lux-blue-500);
  color: var(--lux-white);
  font-weight: 600;
}

.service-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-spec-list {
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 1.4rem;
  border-top: 1px solid var(--lux-slate-200);
  padding-top: 1rem;
}

.service-spec-list li {
  font-size: 0.86rem;
  color: var(--lux-slate-600);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.service-spec-list li i {
  color: var(--lux-blue-500);
  font-size: 0.95rem;
}

/* ==========================================================================
   Procurement & Engineering Readiness Matrix
   ========================================================================== */
.b2b-readiness-box {
  background: linear-gradient(135deg, var(--lux-navy-900) 0%, var(--lux-navy-950) 100%);
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--lux-white);
  padding: 2.25rem;
}

/* ==========================================================================
   4. Cobertura Nacional Section (1:1 Scenic Visual + Interactive Corridors)
   ========================================================================== */
.corridor-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--lux-white);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  cursor: pointer;
  transition: all 0.25s var(--transition-smooth);
  text-align: left;
  width: 100%;
}

.corridor-pill:hover,
.corridor-pill.active {
  background: rgba(0, 128, 230, 0.2);
  border-color: var(--lux-cyan-400);
  transform: translateX(4px);
}

.corridor-detail-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 1.35rem;
  backdrop-filter: blur(10px);
}

/* ==========================================================================
   5. Contact Section & Form
   ========================================================================== */
.contact-card-wrapper {
  background: var(--lux-white);
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 24px 60px -20px rgba(7, 25, 50, 0.14);
  overflow: hidden;
}

.contact-engineer-sidebar {
  background: var(--lux-navy-950);
  color: var(--lux-white);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.form-label-lux {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--lux-navy-900);
  margin-bottom: 0.4rem;
}

.form-control-lux,
.form-select-lux {
  border: 1px solid var(--lux-slate-300);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.94rem;
  color: var(--lux-slate-900);
  background-color: var(--lux-bg-light);
  transition: all 0.2s ease;
}

.form-control-lux:focus,
.form-select-lux:focus {
  background-color: var(--lux-white);
  border-color: var(--lux-blue-500);
  box-shadow: 0 0 0 4px rgba(0, 128, 230, 0.12);
  outline: none;
}

.direct-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.25s ease;
}

.direct-contact-item:hover {
  border-color: var(--lux-cyan-400);
}

.direct-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0, 128, 230, 0.22);
  color: var(--lux-cyan-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Scroll Reveal Animations (Subtle & Corporate)
   ========================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Footer */
.lux-footer {
  background-color: var(--lux-navy-950);
  color: var(--lux-slate-300);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .metric-cell {
    border-right: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }
  .metric-cell:last-child {
    border-bottom: none;
  }
  .hero-section {
    padding: 3rem 0 4rem;
  }
}
