:root {
  /* ── Light Mode (Aesthetic 2.0) ── */
  --bg: #ffffff;
  --surface: #fcfdfe;
  --surface-2: #f1f5f9;
  --text: #020617;
  --text-2: #475569;
  --accent: #056BFA;
  --accent-2: #3B82F6;
  --accent-glow: rgba(5, 107, 250, 0.08);
  --border: rgba(0, 0, 0, 0.04);
  --border-strong: rgba(0, 0, 0, 0.08);
  
  --nav-bg: rgba(255, 255, 255, 0.7);
  --nav-border: rgba(0, 0, 0, 0.03);
  
  --grid-line: rgba(0, 0, 0, 0.02);
  --spotlight: rgba(5, 107, 250, 0.04);
  
  /* Advanced 2.0 Tokens */
  --glass-shimmer: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  --inner-glow: inset 0 0 0 1px rgba(255,255,255,0.2);
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.04);
  
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --section-pad: clamp(100px, 15vw, 200px); /* Increased rhythm spacing */
}

/* ── Dark Mode (Active via Class) ── */
.dark-mode {
  --bg: #010409; /* Deepened base */
  --surface: #0f172a;
  --surface-2: #1e293b;
  --text: #f8fafc;
  --text-2: #94a3b8;
  --accent: #4FA1FF;
  --accent-2: #60a5fa;
  --accent-glow: rgba(79, 161, 255, 0.12);
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  
  --nav-bg: rgba(1, 4, 9, 0.7);
  --nav-border: rgba(255, 255, 255, 0.03);
  
  --grid-line: rgba(255, 255, 255, 0.02);
  --spotlight: rgba(79, 161, 255, 0.06);

  /* Advanced 2.0 Tokens */
  --glass-shimmer: linear-gradient(120deg, transparent, rgba(255,255,255,0.05), transparent);
  --inner-glow: inset 0 0 0 1px rgba(255,255,255,0.05);
  --shadow-premium: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* ── Global Setup ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

p, li, .main-definition, .f-label, .feature-text-bk span {
  text-align: justify;
  text-justify: inter-word;
  text-align-last: left;
  hyphens: auto;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
}

h1, h2, h3, h4, h5 { 
  font-family: var(--font-head); 
  line-height: 1.05;
  letter-spacing: -0.07em;
  font-weight: 700;
  text-align: center;
}

a { text-decoration: none; color: inherit; transition: 0.3s var(--ease); }
ul { list-style: none; }

/* ── 3D Cover Flow Gallery ── */
.flow-wrapper {
  width: 100%;
  height: 500px;
  perspective: 1500px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-container {
  position: relative;
  width: 100%;
  height: 400px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-item {
  position: absolute;
  width: 600px;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  user-select: none;
}

.flow-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* 3D Stack States */
.flow-item.active {
  z-index: 10;
  transform: translate3d(0, 0, 0) rotateY(0deg);
  opacity: 1;
  filter: none;
}

.flow-item.prev {
  z-index: 5;
  transform: translate3d(-350px, 0, -300px) rotateY(45deg);
  opacity: 0.6;
  filter: blur(2px) brightness(0.7);
}

.flow-item.next {
  z-index: 5;
  transform: translate3d(350px, 0, -300px) rotateY(-45deg);
  opacity: 0.6;
  filter: blur(2px) brightness(0.7);
}

.flow-item.hidden-left {
  transform: translate3d(-700px, 0, -600px) rotateY(60deg);
  opacity: 0;
  pointer-events: none;
}

.flow-item.hidden-right {
  transform: translate3d(700px, 0, -600px) rotateY(-60deg);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .flow-wrapper { height: 400px; }
  .flow-item {
    width: 85vw;
    height: 250px;
  }
  .flow-item.prev { transform: translate3d(-15%, 0, -200px) rotateY(30deg) scale(0.8); }
  .flow-item.next { transform: translate3d(15%, 0, -200px) rotateY(-30deg) scale(0.8); }
}
@media (max-width: 480px) {
  .flow-wrapper { height: 300px; }
  .flow-item { height: 180px; }
  .flow-item.prev { transform: translate3d(-10%, 0, -150px) rotateY(20deg) scale(0.7); }
  .flow-item.next { transform: translate3d(10%, 0, -150px) rotateY(-20deg) scale(0.7); }
}

/* ── Typography & Tags ── */
.tag-utility {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 12px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(0, 177, 80, 0.2);
}

.tag-security {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 4px 10px;
  background: rgba(100, 116, 139, 0.1);
  color: var(--text-2);
  border-radius: 4px;
  margin-bottom: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--border);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3); opacity: 0; }
}

.g-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.g-status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.g-text {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Buttons ── */
.btn-primary {
  position: relative;
  background: var(--accent);
  color: #fff;
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  overflow: hidden;
  border: none;
  box-shadow: 0 10px 20px var(--accent-glow);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--glass-shimmer);
  transform: rotate(35deg);
  transition: all 0.6s var(--ease);
  pointer-events: none;
  opacity: 0;
}

.btn-primary:hover::after {
  left: 100%;
  opacity: 1;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
}

/* ── Navigation ── */
.nav-master {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease);
}

.nav-master.scrolled {
  padding: 12px 0;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  gap: 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.footer-grid-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 100px;
}

.ecosistema-flex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 80px;
  align-items: center;
}

.definition-master-card {
  text-align: left;
  padding: 50px;
  border-left: 5px solid var(--accent);
  background: var(--surface);
  border-radius: 0 30px 30px 0;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .definition-master-card {
    border-left: none;
    border-top: 5px solid var(--accent);
    border-radius: 0 0 30px 30px;
    padding: 30px 20px;
    text-align: center;
  }
}

.definition-master-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.main-definition {
  position: relative;
  z-index: 1;
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--text);
}

.dashboard-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
  background: var(--bg);
  max-width: 1000px;
  margin: 0 auto;
}

.dashboard-header-sim {
  background: var(--surface-2);
  padding: 15px 25px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-text {
  display: inline-flex;
  gap: 6px;
}

.logo span { color: var(--accent); }

.nav-logo-img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
}

.nav-links {
  display: flex;
  gap: 30px; /* Spacing between links */
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.3s var(--ease);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.nav-galeria-chip {
  background: var(--accent);
  padding: 6px 14px;
  border-radius: 8px;
  color: white !important;
  font-size: 0.75rem !important;
}

.dark-mode .nav-galeria-chip {
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
  margin-top: 4px;
  border-radius: 2px;
}

/* ── Hero Archetype ── */
.hero-master {
  padding-top: 200px;
  padding-bottom: 100px;
  background-image: 
    radial-gradient(at 100% 0%, var(--accent-glow) 0%, transparent 50%),
    radial-gradient(at 0% 100%, var(--accent-glow) 0%, transparent 50%);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-master h1 {
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  margin-bottom: 32px;
}

.hero-master p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-2);
  margin-bottom: 56px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Split Narrative & Simulation ── */
.split-narrative {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.definition-card-split {
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

.definition-card-split .main-definition {
  font-size: 1.5rem;
  line-height: 1.6;
}

.simulation-wrapper {
  position: relative;
  padding: 40px;
}

.simulation-glass {
  display: none; /* Replaced by browser-mockup */
}

.browser-mockup {
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: 
    0 40px 100px rgba(0,0,0,0.15),
    0 15px 30px rgba(0,0,0,0.05);
  position: relative;
}

.browser-header {
  background: var(--surface-2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

.browser-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.browser-url {
  flex-grow: 1;
  background: var(--bg);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--text-2);
  font-family: monospace;
  text-align: center;
  border: 1px solid var(--border);
}

.browser-body {
  position: relative;
  background: var(--surface-2);
  padding: 30px;
}

/* ── Internal Dashboard Simulated UI (Theme Reactive) ── */
.dash-inner {
  background: var(--bg);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--border);
}

.dash-top {
  background: var(--bg);
  padding: 15px 25px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-logo {
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.dash-nav-sim {
  width: 100px;
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
}

.dash-main {
  padding: 25px;
  background: var(--bg);
}

.dash-header {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 20px;
  font-weight: 500;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.kpi-card {
  background: var(--surface);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.kpi-label {
  font-size: 0.7rem;
  color: var(--text-2);
  font-weight: 600;
  text-transform: uppercase;
}

.kpi-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.kpi-value .unit {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-2);
}

.kpi-trend {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-2);
}

.kpi-trend.positive {
  color: var(--accent);
}

.dash-bottom-sim {
  margin-top: 20px;
  height: 60px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
}

.sim-img {
  display: none; /* Removed as requested */
}

@media (max-width: 1024px) {
  .split-narrative {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  .definition-card-split {
    border-left: none;
    border-top: 3px solid var(--accent);
    padding: 20px 0 0;
  }
}

/* ── Grid System (Architectural) ── */
.section { padding: var(--section-pad) 0; border-bottom: 1px solid var(--border); }

.grid-eco {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
}

.card-eco {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}

.card-eco::before {
  content: '';
  position: absolute;
  top: var(--y, 0);
  left: var(--x, 0);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--spotlight) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card-eco:hover::before {
  opacity: 1;
}

.card-eco.featured {
  border-color: var(--accent);
  background: var(--bg);
}

.card-eco:hover {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.nav-cir-elegant {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.02);
}

.nav-cir-elegant:hover {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px var(--accent-glow);
}

.nav-cir-elegant svg {
  transition: transform 0.4s var(--ease);
}

.nav-cir-elegant:hover svg {
  transform: scale(1.1);
}

/* ── High-Fidelity Booking Suite (Screenshot Style) ── */
.booking-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
  text-align: left;
}

.booking-info h2 {
  font-size: 3.5rem;
  margin: 20px 0;
  line-height: 1.1;
}

.feature-list-bk {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item-bk {
  display: flex;
  gap: 16px;
}

.bk-check {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.feature-text-bk b {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--text);
}

.feature-text-bk span {
  color: var(--text-2);
  font-size: 0.95rem;
}

.card-eco p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Industrial Module Lists ── */
.module-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.module-list li {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.module-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.grid-list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card-eco.featured .module-list li {
  color: var(--text);
}

.badge-demo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(5, 107, 250, 0.1);
  color: var(--accent);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.booking-card-white {
  background: #fff;
  padding: 50px;
  border-radius: 32px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.08);
  text-align: center;
  color: #0f172a;
}

.dark-mode .booking-card-white {
  background: var(--surface);
  color: var(--text);
}

.bk-card-logo {
  font-size: 4rem;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .booking-split {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
}

/* ── Theme Toggle Component ── */
.theme-toggle {
  width: 44px;
  height: 24px;
  background: var(--surface-2);
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-strong);
}

.theme-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 50%;
  transition: 0.3s var(--ease);
}

.dark-mode .theme-toggle::after { transform: translateX(20px); }

/* ── Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ── Aesthetic 2.0 Stagger Logic ── */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-stagger.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* Dynamic Delays (up to 8 items) */
.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 0.6s; }
.reveal-stagger.active > *:nth-child(7) { transition-delay: 0.7s; }
.reveal-stagger.active > *:nth-child(8) { transition-delay: 0.8s; }

/* ── Typography Refinement 2.0 ── */
.tag-category {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tag-category::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* ── Industrial Grid Background ── */
.bg-grid {
  background-image: 
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Crystalline Frame ── */
.glass-frame {
  display: inline-flex;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 
    inset 0 0 20px rgba(255, 255, 255, 0.05),
    0 20px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}

.dark-mode .glass-frame {
  background: rgba(0, 0, 0, 0.2);
}

.btn-nav {
  padding: 10px 24px !important;
  font-size: 0.8rem !important;
  white-space: nowrap;
}

/* ── Hero Refinement ── */
.brand-gateway {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.gateway-logo-img {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 0 20px rgba(5, 107, 250, 0.3));
  animation: float 6s ease-in-out infinite;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── UX Specifics ── */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 1001;
  box-shadow: 0 0 10px var(--accent);
  transition: width 0.1s ease-out;
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  box-shadow: 0 10px 20px rgba(5, 107, 250, 0.2);
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(5, 107, 250, 0.3);
}

/* Staggered Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.btn-primary:active {
  transform: translateY(1px);
}

.btn-nav-elite {
  background: var(--accent);
  color: white !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: all 0.3s var(--ease);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

.btn-nav-elite:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 8px 25px var(--accent-glow);
  color: white !important;
}

/* ── Light Mode Logic Reinforcement ── */
body:not(.dark-mode) {
  background-color: #ffffff;
}

/* ── Theme Switcher UI ── */
.theme-switch {
  background: var(--surface-2);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: all 0.3s var(--ease);
  padding: 0;
  margin-left: 10px;
}

.theme-switch:hover {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.theme-switch .moon { display: block; }
.theme-switch .sun { display: none; }

.dark-mode .theme-switch .moon { display: none; }
.dark-mode .theme-switch .sun { display: block; }

.theme-switch svg {
  transition: transform 0.4s var(--ease);
}

/* ── Enterprise Footer ── */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr);
  gap: 60px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 24px;
  color: var(--text);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--accent);
}

/* ── High-Fidelity Booking Suite ── */
.booking-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: var(--surface-2);
  padding: 80px;
  border-radius: 40px;
  border: 1px solid var(--border);
}

.feature-list-bk {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.feature-item-bk {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.bk-check {
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 4px;
}

.feature-text-bk b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.feature-text-bk span {
  color: var(--text-2);
  font-size: 0.95rem;
}

@media (max-width: 1000px) {
  .booking-split {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 40px;
  }
}

/* ── Hero Gateway Logo Size ── */
.gateway-logo-img {
  width: 160px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

/* ── Logo: Black outline in Light Mode ── */
body:not(.dark-mode) .nav-logo-img,
body:not(.dark-mode) .gateway-logo-img {
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.9)) drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Advanced Dual-Panel Simulation Suite ── */
.dual-sim-container {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.live-graphics-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-el);
}

.graphics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.graphics-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
}

.live-activity-bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 150px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.03);
  border-radius: 12px;
  position: relative;
}

.bar-chunk {
  flex: 1;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
  min-height: 10px;
  animation: barFluctuate 2s infinite ease-in-out;
  opacity: 0.8;
}

.bar-chunk:nth-child(2n) { animation-delay: 0.2s; background: #004fb3; }
.bar-chunk:nth-child(3n) { animation-delay: 0.5s; background: #3b82f6; }
.bar-chunk:nth-child(4n) { animation-delay: 0.8s; }

@keyframes barFluctuate {
  0%, 100% { height: 30%; }
  50% { height: 85%; }
}

.metrics-grid-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.metric-mini-card {
  background: var(--surface-2);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.m-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.m-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
}

.pulse-glow {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
}

.p-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pGlow 1.5s infinite;
}

@keyframes pGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
}

.scan-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
  animation: scanMove 4s infinite linear;
  pointer-events: none;
}

@keyframes scanMove {
  0% { top: 0%; }
  100% { top: 100%; }
}

/* ── Sentinel Security Grid Visuals ── */
.sentinel-monitor-box {
  background: #020617;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--accent-glow);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.node-grid {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 15px;
  opacity: 0.15;
}

.s-node {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  animation: nodeActive 3s infinite ease-in-out;
}

.s-node:nth-child(7n) { animation-delay: 0.5s; background: var(--accent-2); }
.s-node:nth-child(3n) { animation-delay: 1.2s; }

@keyframes nodeActive {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.5); opacity: 1; box-shadow: 0 0 8px var(--accent); }
}

.scan-beam {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  transform: skewX(-20deg);
  animation: scanBeamMove 6s infinite linear;
  pointer-events: none;
}

@keyframes scanBeamMove {
  0% { left: -100%; }
  100% { left: 200%; }
}

.security-overlay-text {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.6rem;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.s-card-premium {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 20px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.s-card-premium:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px var(--accent-glow);
}

.s-icon {
  font-size: 2.5rem;
  margin-bottom: 24px;
  display: block;
}

.s-card-premium h3 {
  margin-bottom: 16px;
  font-size: 1.5rem;
  color: var(--text);
}

.s-card-premium p {
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Featured Module: Production Core Highlight ── */
.card-eco.featured {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--accent);
  box-shadow: 0 10px 40px var(--accent-glow);
  grid-column: span 1;
  overflow: hidden;
}

.card-eco.featured::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.card-eco.featured h3 {
  color: var(--accent);
  font-size: 1.5rem;
}

.card-eco.featured .tag-utility {
  background: var(--accent);
  color: #fff;
  border: none;
}

@media (max-width: 1100px) {
  .card-eco.featured { grid-column: span 1; }
  .security-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Premium Fuel Simulation Component ── */
.fuel-dashboard-container {
  padding: 30px;
  background: var(--bg);
  min-height: 600px;
  border-radius: 0 0 20px 20px;
}

.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.sim-controls {
  display: flex;
  gap: 10px;
}

/* Button Colors from Image */
.btn-sim-alt {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-transform: capitalize;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.btn-recibir { background: #72A9D1; color: white; }
.btn-ajuste { background: #94A3B8; color: white; }
.btn-crear { background: #10B981; color: white; }
.btn-validar { background: #EF4444; color: white; }

.btn-sim-alt:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* New Split Grid Layout */
.sim-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.kpi-section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.side-tank-panel {
  background: var(--surface-2);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.side-tank-panel h4 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--text-2);
  letter-spacing: 1px;
}

.fuel-sim-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: all 0.3s var(--ease);
  text-align: left;
}

.fuel-sim-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

/* Status dots in cards */
.f-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.f-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.f-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.f-value {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

/* Tank Items Condensed */
.tank-item-mini {
  margin-bottom: 20px;
}

.tank-item-mini h5 {
  font-size: 0.75rem;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.tank-low-badge {
  background: #EF4444;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.55rem;
  font-weight: 800;
}

.progress-track {
  height: 6px;
  background: rgba(0,0,0,0.05);
  border-radius: 3px;
  overflow: hidden;
}

/* Modern Industrial Table */
.sim-table-header {
  color: #EF4444;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-align: left;
}

.table-container {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.fuel-table th {
  background: var(--surface-2);
  padding: 12px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}

.fuel-table td {
  padding: 14px 12px;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.btn-accion {
  padding: 4px 8px;
  font-size: 0.65rem;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}

@media (max-width: 1200px) {
  .sim-main-grid { grid-template-columns: 1fr; }
}

/* ── Live Flow Simulation ── */
.fuel-views-wrapper {
  position: relative;
  width: 100%;
}
.fuel-view {
  display: none !important;
  animation: fadeInView 0.3s ease-out forwards;
}
.fuel-view.active {
  display: block !important;
}

@keyframes fadeInView {
  0% { opacity: 0; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}

.fuel-nav-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.sys-cursor {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 9999;
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.sys-ripple {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 38px;
  height: 38px;
  background: rgba(16, 185, 129, 0.4);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

@keyframes ripple-pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.hamburger {
  display: none;
  cursor: pointer;
  color: var(--text);
}

.nav-branding {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* ── Mobile & Tablet Responsiveness ── */
@media (max-width: 992px) {
  .nav-master {
    position: relative; /* Para anclar el dropdown */
  }
  .nav-content { 
    flex-direction: row; 
    padding: 15px 20px; 
    gap: 0;
  }
  .nav-branding {
    width: 100%;
    position: relative;
    justify-content: center;
  }
  .hamburger { 
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  
  /* Dropdown Estético Premium */
  .nav-links { 
    display: flex;
    flex-direction: column; 
    align-items: center; 
    gap: 25px; 
    width: 100%; 
    padding: 40px 20px;
    
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    
    /* Animación de apertura */
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
    pointer-events: all;
  }

  /* Ajuste tipográfico móvil */
  .nav-links a {
    font-size: 1.15rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  body.dark-mode .nav-links a {
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links a:last-of-type { border-bottom: none; }
  
  .sim-header { flex-direction: column; gap: 20px; text-align: center; }
  .sim-header > div { text-align: center !important; }
  .sim-controls { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .kpi-section-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

@media (max-width: 768px) {
  .sys-cursor { display: none !important; } /* Desactiva el cursor virtual en móviles/touch */
  .hero-master { padding-top: 150px; padding-bottom: 60px; }
  .hero-master h1 { font-size: 2.2rem; margin-bottom: 20px; }
  .hero-master p { font-size: 1rem; padding: 0 15px; }
  .split-narrative { grid-template-columns: 1fr; gap: 40px; }
  .definition-card-split { padding-left: 0; border-left: none; border-top: 3px solid var(--accent); padding-top: 20px; text-align: center; }
  .grid-eco { grid-template-columns: 1fr; }
  .booking-split { grid-template-columns: 1fr; padding: 25px; gap: 40px; border-radius: 20px; }
  .booking-card-white { padding: 30px 20px; }
  .bk-card-logo { font-size: 3rem; }
  .fuel-dashboard-container { padding: 15px; }
  .fuel-sim-card, .side-tank-panel { padding: 15px; }
  .btn-sim-alt { flex: 1 1 45%; }
  .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; }
  .fuel-table th, .fuel-table td { padding: 10px 8px; font-size: 0.65rem; white-space: nowrap; }
}

  .hero-master h1 { font-size: 1.8rem; }
  .kpi-section-grid { grid-template-columns: 1fr; }
  
  .footer-grid-main {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
}

/* Ensure icons are centered in mobile */
@media (max-width: 768px) {
  .logo, .hero-actions, .f-icon-box, .sim-header, .brand-row-top, .footer-col-header {
    justify-content: center !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .card-eco {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .module-list li {
    justify-content: center;
  }
}
