/* ==========================================================================
   PRO AIC SOLUTIONS - DESIGN SYSTEM & INDUSTRIAL STYLES
   Automatización · Instrumentación · Control
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Brand Primary Navy Palette */
  --bg-darkest: #070B14;
  --bg-dark: #0B1322;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(22, 34, 59, 0.85);
  --bg-surface: #141F36;
  --bg-surface-light: #1C2B4B;

  /* Brand Vibrant Orange (From Logo) */
  --brand-orange: #F37321;
  --brand-orange-light: #FF8A3D;
  --brand-orange-dark: #D45B0C;
  --brand-orange-glow: rgba(243, 115, 33, 0.35);
  --brand-orange-gradient: linear-gradient(135deg, #F37321 0%, #FF9E58 100%);

  /* Brand Primary Navy (From Logo) */
  --brand-navy: #16223B;
  --brand-navy-light: #203154;
  --brand-navy-glow: rgba(22, 34, 59, 0.6);

  /* Cyber Accents (Telemetry & Tech) */
  --cyber-cyan: #00D2FF;
  --cyber-cyan-glow: rgba(0, 210, 255, 0.4);
  --cyber-green: #10B981;
  --cyber-amber: #F59E0B;

  /* Text & Border Colors */
  --text-white: #FFFFFF;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-accent: rgba(243, 115, 33, 0.3);
  --border-cyan: rgba(0, 210, 255, 0.25);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Elevations & Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-orange: 0 0 30px rgba(243, 115, 33, 0.3);
  --shadow-cyan: 0 0 25px rgba(0, 210, 255, 0.25);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Grid & Circuit Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: 5px;
  border: 2px solid var(--bg-darkest);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-orange);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section-padding {
  padding: 100px 0;
}

.text-orange {
  color: var(--brand-orange);
}

.text-cyan {
  color: var(--cyber-cyan);
}

.gradient-text-orange {
  background: var(--brand-orange-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #00D2FF 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Header Component */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243, 115, 33, 0.1);
  border: 1px solid rgba(243, 115, 33, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-orange-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-badge.cyan {
  background: rgba(0, 210, 255, 0.1);
  border-color: rgba(0, 210, 255, 0.3);
  color: var(--cyber-cyan);
}

.section-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 0 10px var(--brand-orange);
  animation: pulse-dot 2s infinite ease-in-out;
}

.section-badge.cyan .dot {
  background: var(--cyber-cyan);
  box-shadow: 0 0 10px var(--cyber-cyan);
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.15rem;
  max-width: 740px;
  margin-bottom: 48px;
  color: var(--text-secondary);
}

.center-text {
  text-align: center;
}
.center-text .section-badge,
.center-text .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-orange-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(243, 115, 33, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(243, 115, 33, 0.55);
}

.btn-secondary {
  background: rgba(22, 34, 59, 0.8);
  border-color: rgba(148, 163, 184, 0.25);
  color: var(--text-white);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(32, 49, 84, 0.95);
  border-color: var(--brand-orange);
  color: var(--brand-orange-light);
  transform: translateY(-2px);
}

.btn-outline-cyan {
  background: rgba(0, 210, 255, 0.05);
  border-color: var(--border-cyan);
  color: var(--cyber-cyan);
}

.btn-outline-cyan:hover {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* ==========================================================================
   NAVIGATION BAR (HEADER)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 14px 0;
  background: rgba(7, 11, 20, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header.scrolled {
  padding: 10px 0;
  background: rgba(7, 11, 20, 0.96);
  border-bottom: 1px solid rgba(243, 115, 33, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(243, 115, 33, 0.45)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9));
  transition: all var(--transition-fast);
}

.brand-logo-link:hover .brand-logo-img {
  filter: drop-shadow(0 0 18px rgba(243, 115, 33, 0.8)) drop-shadow(0 0 6px rgba(0, 210, 255, 0.5));
  transform: scale(1.04);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.2;
  text-align: left;
  white-space: normal;
}

.nav-link span {
  display: inline-block;
  line-height: 1.2;
}

@media (min-width: 1025px) and (max-width: 1320px) {
  .nav-menu {
    gap: 8px;
  }
  .nav-link {
    font-size: 0.78rem;
    padding: 4px 7px;
  }
  .header-actions {
    gap: 8px;
  }
  .phone-action-btn {
    padding: 5px 9px;
    font-size: 0.76rem;
  }
  .header-quote-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
}

.nav-link i.arrow-down {
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
  opacity: 0.7;
}

.nav-link:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

/* SHADED ACTIVE NAV TAB (Sombreado para saber en qué sección/página estás) */
.nav-link.active {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, rgba(243, 115, 33, 0.24) 0%, rgba(243, 115, 33, 0.08) 100%) !important;
  border: 1px solid rgba(243, 115, 33, 0.55) !important;
  box-shadow: 0 4px 18px rgba(243, 115, 33, 0.25), inset 0 0 12px rgba(243, 115, 33, 0.12) !important;
  font-weight: 700;
  transform: translateY(-1px);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 15%;
  width: 70%;
  height: 2px;
  background: var(--brand-orange);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--brand-orange);
}

.nav-link.active i.arrow-down {
  color: var(--brand-orange);
  opacity: 1;
}

.nav-item:hover .nav-link {
  color: var(--text-white);
}

.nav-item:hover .nav-link i.arrow-down {
  transform: rotate(180deg);
  color: var(--brand-orange);
  opacity: 1;
}

/* Nav Sub-Menus (Dropdowns on Hover) */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 260px;
  background: rgba(11, 19, 34, 0.95);
  border: 1px solid rgba(243, 115, 33, 0.25);
  border-radius: 12px;
  padding: 10px;
  list-style: none;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), var(--shadow-orange);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-fast);
  z-index: 1001;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(11, 19, 34, 0.95);
  border-left: 1px solid rgba(243, 115, 33, 0.25);
  border-top: 1px solid rgba(243, 115, 33, 0.25);
}

.nav-item:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(2px);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.dropdown-link .drop-icon {
  font-size: 1rem;
  color: var(--cyber-cyan);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.dropdown-link:hover {
  background: rgba(243, 115, 33, 0.15);
  color: var(--text-white);
  padding-left: 16px;
}

.dropdown-link:hover .drop-icon {
  color: var(--brand-orange);
}

.dropdown-link.active {
  background: rgba(243, 115, 33, 0.22) !important;
  color: var(--text-white) !important;
  border-left: 3px solid var(--brand-orange) !important;
  font-weight: 600;
}

.dropdown-link.active .drop-icon {
  color: var(--brand-orange) !important;
}

.nav-badge-pill {
  display: inline-block;
  padding: 1px 7px;
  background: rgba(0, 210, 255, 0.18);
  border: 1px solid rgba(0, 210, 255, 0.5);
  color: var(--cyber-cyan);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  margin-left: auto;
  letter-spacing: 0.3px;
}

/* Header Actions - Guaranteed Single-Line */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.phone-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.phone-action-btn:hover {
  background: rgba(37, 211, 102, 0.22);
  border-color: #25D366;
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.45);
  transform: translateY(-1px);
}

.whatsapp-nav-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(37, 211, 102, 0.6));
  transition: transform var(--transition-fast);
}

.phone-action-btn:hover .whatsapp-nav-icon {
  transform: scale(1.15) rotate(-6deg);
}

.contact-wa-icon-box {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(37, 211, 102, 0.5));
}

.contact-phone-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-white);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  padding: 4px 0;
}

.contact-phone-wa-link:hover {
  color: #25D366;
  transform: translateX(4px);
}

.inline-wa-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 0 4px rgba(37, 211, 102, 0.5));
  transition: transform var(--transition-fast);
}

.contact-phone-wa-link:hover .inline-wa-icon {
  transform: scale(1.18);
}

.wa-chat-badge {
  display: inline-block;
  padding: 2px 9px;
  background: rgba(37, 211, 102, 0.16);
  border: 1px solid rgba(37, 211, 102, 0.45);
  color: #25D366;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.3px;
  margin-left: 6px;
  vertical-align: middle;
}

.footer-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-wa-link:hover {
  color: #25D366;
}

.footer-wa-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 0 3px rgba(37, 211, 102, 0.4));
}

.header-quote-btn {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.hero-glow-sphere {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 115, 33, 0.15) 0%, rgba(22, 34, 59, 0.05) 70%, transparent 100%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  top: 10%;
  right: -10%;
}

.hero-glow-sphere.secondary {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.12) 0%, transparent 70%);
  top: 40%;
  left: -10%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 660px;
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px 24px;
  backdrop-filter: blur(12px);
}

.stat-item {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 12px;
}
.stat-item:last-child {
  border-right: none;
  padding-right: 0;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-number span {
  color: var(--brand-orange);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Media Card & 3D Interactive Showcase */
.hero-media-wrapper {
  position: relative;
}

.hero-view-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  background: rgba(15, 23, 42, 0.7);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  width: fit-content;
}

.view-switch-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.view-switch-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
}

.view-switch-btn.active {
  background: var(--brand-orange-gradient);
  color: #FFFFFF;
  box-shadow: 0 2px 12px rgba(243, 115, 33, 0.4);
}

.hero-main-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(243, 115, 33, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), var(--shadow-orange);
  background: var(--bg-surface);
  min-height: 520px;
}

.media-display-pane {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

.media-display-pane.active {
  display: block;
}

.hero-main-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-main-card:hover img {
  transform: scale(1.03);
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.1) 0%, rgba(7, 11, 20, 0.85) 100%);
  pointer-events: none;
}

/* 3D Model Viewer Component */
.model-viewer-box {
  width: 100%;
  height: 520px;
  position: relative;
  background: radial-gradient(circle at center, rgba(30, 46, 79, 0.75) 0%, rgba(7, 11, 20, 0.98) 100%);
}

model-viewer {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  outline: none;
}

.viewer-3d-topbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 10;
  pointer-events: auto;
}

.viewer-3d-hint {
  background: rgba(11, 19, 34, 0.85);
  border: 1px solid var(--border-cyan);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyber-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
}

/* Camera presets bar */
.viewer-camera-presets {
  display: flex;
  gap: 6px;
  background: rgba(11, 19, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.camera-preset-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.camera-preset-btn:hover {
  background: rgba(243, 115, 33, 0.2);
  border-color: var(--brand-orange);
  color: var(--text-white);
}

.camera-preset-btn.active {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #FFFFFF;
}

.viewer-3d-toolbar {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(11, 19, 34, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 14px;
  backdrop-filter: blur(14px);
  z-index: 10;
}

.viewer-tools-left {
  display: flex;
  gap: 8px;
  align-items: center;
}

.viewer-tool-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.viewer-tool-btn:hover {
  background: rgba(243, 115, 33, 0.25);
  border-color: var(--brand-orange);
  color: var(--brand-orange-light);
}

.viewer-fusion-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--cyber-cyan);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.viewer-fusion-link:hover {
  background: rgba(0, 210, 255, 0.25);
  border-color: var(--cyber-cyan);
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

.viewer-badge-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand-orange-light);
}

/* 3D Loading Progress */
.model-loading-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.model-loading-bar .update-bar {
  width: 100%;
  height: 100%;
  background: var(--brand-orange-gradient);
  animation: loading-pulse 1.2s infinite ease-in-out;
}

@keyframes loading-pulse {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hero-floating-hud {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(11, 19, 34, 0.85);
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  padding: 16px 20px;
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-item {
  display: flex;
  flex-direction: column;
}

.hud-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyber-cyan);
  text-transform: uppercase;
}

.hud-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
}

/* ==========================================================================
   SERVICES & SPECIALTIES SUITE (BRIGGS OF BURTON INSPIRED)
   ========================================================================== */
.services-suite-section {
  position: relative;
  background: linear-gradient(180deg, var(--bg-darkest) 0%, var(--bg-dark) 50%, var(--bg-darkest) 100%);
}

.services-tabs-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 16px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
  scrollbar-width: none;
}
.services-tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: rgba(20, 31, 54, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn i, .tab-btn svg {
  font-size: 1.1rem;
}

.tab-btn:hover {
  color: var(--text-white);
  border-color: rgba(243, 115, 33, 0.4);
  background: rgba(30, 46, 79, 0.7);
}

.tab-btn.active {
  background: var(--brand-orange-gradient);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(243, 115, 33, 0.35);
}

/* Service Detail View */
.service-pane {
  display: none;
}
.service-pane.active {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  animation: servicePaneTransition 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes servicePaneTransition {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.service-pane-info h3 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--text-white);
}

.service-pane-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.service-feature-list {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(20, 31, 54, 0.4);
  border: 1px solid var(--border-subtle);
  padding: 14px 18px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
  position: relative;
}

.service-feature-item:hover {
  background: rgba(28, 43, 75, 0.6);
  border-color: rgba(243, 115, 33, 0.4);
  transform: translateX(4px);
}

.service-feature-item.active {
  background: linear-gradient(90deg, rgba(243, 115, 33, 0.16) 0%, rgba(20, 31, 54, 0.7) 100%);
  border-color: var(--brand-orange);
  box-shadow: 0 4px 20px rgba(243, 115, 33, 0.18), inset 0 0 0 1px rgba(243, 115, 33, 0.2);
  transform: translateX(6px);
}

.service-feature-item.active::after {
  content: '👁️ Ver foto';
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--brand-orange);
  background: rgba(243, 115, 33, 0.15);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(243, 115, 33, 0.3);
}

.service-feature-item.active .feature-icon-box {
  background: var(--brand-orange);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(243, 115, 33, 0.5);
  transform: scale(1.05);
}

.feature-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(243, 115, 33, 0.15);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.feature-icon-box.cyan {
  background: rgba(0, 210, 255, 0.15);
  color: var(--cyber-cyan);
}

.service-feature-text h4 {
  font-size: 1rem;
  color: var(--text-white);
  margin-bottom: 3px;
}

.service-feature-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   SERVICE MULTI-IMAGE SLIDESHOW COMPONENT
   ========================================================================== */
.service-pane-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  background: var(--bg-surface);
}

.service-slideshow-container {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: hidden;
  border-radius: 18px;
}

.service-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.6s ease;
  z-index: 1;
}

.service-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.service-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 17, 34, 0.05) 0%, rgba(10, 17, 34, 0.25) 50%, rgba(10, 17, 34, 0.9) 100%);
  pointer-events: none;
  z-index: 1;
}

.service-media-badge {
  position: absolute;
  bottom: 48px;
  left: 18px;
  background: rgba(10, 17, 34, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--brand-orange);
  color: var(--brand-orange);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  z-index: 3;
}

.slide-caption {
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: 18px;
  color: var(--text-white);
  font-size: 0.88rem;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 3;
}

/* Slideshow navigation bar & indicators */
.slideshow-nav-bar {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 17, 34, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 10px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  z-index: 5;
}

.slide-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-nav-btn:hover {
  color: var(--brand-orange);
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.15);
}

.slideshow-indicators {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
}

.slide-dot.active {
  width: 22px;
  border-radius: 6px;
  background: var(--brand-orange);
  box-shadow: 0 0 10px rgba(243, 115, 33, 0.6);
}

.slideshow-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 6;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-cyan));
  transition: width 0.1s linear;
}

/* ==========================================================================
   SECTORS & INDUSTRIES
   ========================================================================== */
.sectors-section {
  position: relative;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.sector-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px 30px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sector-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-orange), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.sector-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(243, 115, 33, 0.2);
}

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

.sector-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(243, 115, 33, 0.12);
  border: 1px solid rgba(243, 115, 33, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-orange);
  font-size: 1.7rem;
  margin-bottom: 24px;
}

.sector-title {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.sector-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.55;
}

.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.sector-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* ==========================================================================
   TECHNOLOGIES & BRANDS ECOSYSTEM
   ========================================================================== */
.tech-ecosystem-section {
  background: linear-gradient(180deg, var(--bg-darkest) 0%, #0E172B 100%);
  position: relative;
}

.brand-filters-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.brand-filter-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.brand-filter-btn:hover {
  border-color: var(--brand-orange);
  color: #FFFFFF;
}

.brand-filter-btn.active {
  background: var(--brand-orange-gradient);
  border-color: transparent;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(243, 115, 33, 0.35);
}

.tech-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.brand-tech-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.brand-tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-orange), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.brand-tech-card:hover {
  background: rgba(20, 31, 54, 0.85);
  border-color: rgba(243, 115, 33, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(243, 115, 33, 0.2);
  transform: translateY(-6px);
}

.brand-tech-card:hover::before {
  opacity: 1;
}

.brand-logo-wrap {
  height: 64px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 8px 18px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
}

.brand-tech-card:hover .brand-logo-wrap {
  background: #FFFFFF;
  box-shadow: 0 6px 20px rgba(243, 115, 33, 0.35);
  transform: scale(1.02);
}

.brand-svg-img {
  max-height: 48px;
  max-width: 175px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.brand-tech-card:hover .brand-svg-img {
  transform: scale(1.05);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.brand-platforms {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  line-height: 1.5;
  margin-bottom: 12px;
}

.brand-cert-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyber-cyan);
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ==========================================================================
   INDUSTRIAL PROTOCOLS INTERACTIVE EXPLORER
   ========================================================================== */
.protocols-interactive-container {
  background: rgba(11, 19, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 36px 30px;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.protocol-tabs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.protocol-btn {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 12px 14px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  text-align: left;
}

.protocol-btn .p-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all var(--transition-fast);
}

.protocol-btn:hover {
  background: rgba(0, 210, 255, 0.1);
  border-color: rgba(0, 210, 255, 0.3);
  color: #FFFFFF;
}

.protocol-btn:hover .p-dot {
  background: var(--cyber-cyan);
}

.protocol-btn.active {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--cyber-cyan);
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.25);
}

.protocol-btn.active .p-dot {
  background: var(--cyber-cyan);
  box-shadow: 0 0 8px var(--cyber-cyan);
}

.protocol-detail-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

.protocol-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.protocol-badge-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 6px;
}

.protocol-detail-title {
  font-size: 1.35rem;
  color: var(--text-white);
  font-weight: 700;
  margin: 0;
}

.proto-speed-badge {
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--cyber-cyan);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  white-space: nowrap;
}

.protocol-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.proto-info-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
}

.proto-info-box.warning-border {
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(239, 68, 68, 0.03);
}

.proto-info-box.highlight-border {
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(16, 185, 129, 0.03);
}
  color: #FFFFFF;
}

/* ==========================================================================
   PROJECT DELIVERY METHODOLOGY (EPC MODEL)
   ========================================================================== */
.methodology-section {
  position: relative;
}

.epc-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 50px;
}

.epc-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 5%;
  width: 90%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-orange) 0%, var(--cyber-cyan) 100%);
  z-index: 0;
  opacity: 0.4;
}

.epc-step {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.epc-step:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--brand-orange);
  color: var(--brand-orange-light);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(243, 115, 33, 0.3);
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   INTERACTIVE SIMULATOR / ROI CALCULATOR
   ========================================================================== */
.simulator-section {
  background: radial-gradient(ellipse at center, rgba(22, 34, 59, 0.5) 0%, var(--bg-darkest) 75%);
  position: relative;
}

.calculator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 48px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(243, 115, 33, 0.15);
  backdrop-filter: blur(16px);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.calc-input-group {
  margin-bottom: 24px;
}

.calc-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-white);
  margin-bottom: 8px;
}

.calc-select, .calc-range {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.calc-select:focus {
  border-color: var(--brand-orange);
}

.calc-range-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calc-range-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-orange-light);
  min-width: 60px;
}

/* Results Display */
.calc-results-card {
  background: linear-gradient(145deg, #111C31 0%, #162442 100%);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.15);
}

.calc-results-title {
  font-size: 1.25rem;
  color: var(--cyber-cyan);
  font-family: var(--font-mono);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.results-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.metric-box {
  background: rgba(7, 11, 20, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.metric-val.green { color: #10B981; }
.metric-val.orange { color: var(--brand-orange); }

.metric-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   ABOUT & WHY PRO AIC SOLUTIONS
   ========================================================================== */
.about-section {
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Misión & Visión Interactive Cards */
.about-interactive-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0 22px;
}

.about-card-interactive {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(243, 115, 33, 0.3);
  border-radius: 14px;
  padding: 22px 18px;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.about-card-interactive:hover,
.about-card-interactive.active {
  background: rgba(22, 34, 59, 0.9);
  border-color: var(--brand-orange);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(243, 115, 33, 0.25);
}

.about-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(243, 115, 33, 0.15);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
  border: 1px solid rgba(243, 115, 33, 0.3);
  transition: transform var(--transition-fast);
}

.about-card-interactive:hover .about-card-icon {
  transform: scale(1.12);
}

.about-card-body h4 {
  font-size: 1.05rem;
  color: var(--brand-orange);
  margin-bottom: 6px;
}

.about-card-body p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Valores Fundamentales Interactive Box */
.about-values-interactive-box {
  background: rgba(11, 19, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 22px;
  transition: border-color var(--transition-fast);
}

.about-values-interactive-box:hover {
  border-color: rgba(0, 210, 255, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.about-values-title {
  color: var(--text-white);
  font-size: 0.95rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.value-item-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.value-item-pill:hover {
  background: rgba(0, 210, 255, 0.08);
  border-color: rgba(0, 210, 255, 0.3);
  color: var(--text-white);
  transform: translateX(3px);
}

.value-item-pill strong {
  color: var(--text-white);
}

.value-item-pill.full-width {
  grid-column: 1 / -1;
}

/* Liderazgo & Dirección Bar */
.about-leadership-bar {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.leader-item {
  flex: 1;
}

.leader-role {
  font-size: 0.74rem;
  color: var(--brand-orange);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.leader-role.cyan {
  color: var(--cyber-cyan);
}

.leader-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-white);
}

.leader-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
}

/* Showcase Experience Badge - Clean & Integrated */
.showcase-experience-badge {
  position: relative;
  z-index: 2;
  margin-top: 20px;
  width: 100%;
  background: linear-gradient(135deg, rgba(243, 115, 33, 0.16) 0%, rgba(14, 23, 42, 0.95) 100%);
  border: 1px solid rgba(243, 115, 33, 0.5);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(243, 115, 33, 0.2);
}

.exp-badge-number {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-orange);
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(243, 115, 33, 0.5);
}

.exp-badge-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .about-interactive-cards-grid,
  .about-values-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CONTACT & QUOTE SECTION
   ========================================================================== */
.contact-section {
  background: linear-gradient(180deg, var(--bg-darkest) 0%, #090F1C 100%);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-card-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  transition: all var(--transition-fast);
}

.contact-card-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(243, 115, 33, 0.15);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-text-box h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-text-box p,
.contact-text-box a {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.contact-text-box a:hover {
  color: var(--brand-orange-light);
}

/* Bolsa de Trabajo & Talento Card */
.careers-card-highlight {
  border: 1px solid rgba(0, 210, 255, 0.35);
  background: linear-gradient(135deg, rgba(14, 24, 46, 0.85) 0%, rgba(0, 210, 255, 0.06) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(0, 210, 255, 0.05);
}

.careers-card-highlight:hover {
  border-color: var(--cyber-cyan);
  background: linear-gradient(135deg, rgba(16, 28, 54, 0.95) 0%, rgba(0, 210, 255, 0.12) 100%);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 210, 255, 0.25);
}

.careers-icon {
  background: rgba(0, 210, 255, 0.15) !important;
  color: var(--cyber-cyan) !important;
}

.careers-action-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.careers-main-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--cyber-cyan) 0%, #0099cc 100%);
  color: #070B14 !important;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.35);
  transition: all var(--transition-fast);
}

.careers-main-cta-btn:hover {
  background: linear-gradient(135deg, #33dcff 0%, var(--cyber-cyan) 100%);
  color: #000000 !important;
  box-shadow: 0 0 22px rgba(0, 210, 255, 0.65);
  transform: translateY(-2px);
}

.careers-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.35);
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--text-white) !important;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.careers-email-btn:hover {
  background: rgba(0, 210, 255, 0.22);
  border-color: var(--cyber-cyan);
  color: #FFFFFF !important;
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.4);
  transform: translateY(-1px);
}

.careers-send-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--cyber-cyan);
  color: #070B14;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 999px;
  letter-spacing: 0.3px;
  margin-left: 4px;
}

/* Location Map Card */
.map-embed-container {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  position: relative;
  box-shadow: var(--shadow-md);
  margin-top: 10px;
}

.map-embed-container iframe {
  width: 100%;
  height: 220px;
  border: none;
  display: block;
  filter: invert(90%) hue-rotate(180deg) brightness(85%) contrast(120%);
}

.map-card-footer {
  padding: 12px 16px;
  background: rgba(14, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
}

.map-link-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--brand-orange-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.map-link-btn:hover {
  color: var(--text-white);
  text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}

.form-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 15px rgba(243, 115, 33, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input {
  accent-color: var(--brand-orange);
  width: 16px;
  height: 16px;
}

/* Form Trust & Engineering Assurance Module */
.form-bottom-showcase {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.form-trust-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: rgba(0, 210, 255, 0.04);
  border: 1px solid rgba(0, 210, 255, 0.15);
  border-radius: 12px;
}

.form-trust-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(243, 115, 33, 0.3));
}

.form-trust-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form-trust-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cyber-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-trust-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.form-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.trust-mini-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  transition: all 0.25s ease;
}

.trust-mini-card:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(0, 210, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.trust-mini-icon {
  font-size: 1.25rem;
  line-height: 1;
  padding-top: 2px;
}

.trust-mini-body strong {
  display: block;
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 2px;
  font-weight: 600;
}

.trust-mini-body p {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin: 0;
}

.form-emergency-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(243, 115, 33, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
}

.emergency-radar-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: emergencyPulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes emergencyPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.form-emergency-bar p {
  font-size: 0.82rem;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.4;
}

.emergency-link {
  color: #f87171;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.emergency-link:hover {
  color: #fca5a5;
}

@media (max-width: 768px) {
  .form-trust-grid {
    grid-template-columns: 1fr;
  }
  .form-trust-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
   CLIENTS & INDUSTRIAL TRUST
   ========================================================================== */
.clients-trust-section {
  padding: 50px 0 70px;
  background: rgba(11, 19, 34, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.clients-marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 30px;
  padding: 26px 0;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  position: relative;
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 28px;
  animation: marquee-scroll 40s linear infinite;
  flex-shrink: 0;
  padding: 10px 0;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: 12px 26px;
  border-radius: 14px;
  min-height: 68px;
  min-width: 175px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transform-origin: center center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease,
              background 0.25s ease;
  will-change: transform;
  position: relative;
  z-index: 1;
}

/* Crecimiento exclusivo del logo que tiene el cursor encima */
.client-logo-item:hover {
  background: #FFFFFF;
  border-color: var(--brand-orange);
  transform: translateY(-8px) scale(1.25);
  z-index: 25;
  box-shadow: 0 16px 32px rgba(243, 115, 33, 0.4), 0 0 20px rgba(243, 115, 33, 0.2);
}

.client-svg-logo {
  height: 44px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.client-logo-item:hover .client-svg-logo {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.client-logo-item .client-icon {
  font-size: 1.3rem;
  color: var(--brand-orange);
}

.client-logo-item .client-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-white);
  letter-spacing: 0.03em;
}

.client-logo-item .client-sector {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   INTERACTIVE EPC METHODOLOGY DETAIL DRAWER
   ========================================================================== */
.epc-step-card {
  cursor: pointer;
  transition: all var(--transition-normal);
}

.epc-step-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-orange);
  box-shadow: 0 10px 30px rgba(243, 115, 33, 0.25);
}

.epc-step-card.active {
  border-color: var(--brand-orange);
  background: rgba(243, 115, 33, 0.1);
  box-shadow: 0 0 30px rgba(243, 115, 33, 0.35);
}

.epc-step-card.active .step-num {
  background: var(--brand-orange-gradient);
  color: #FFFFFF;
}

.epc-detail-viewer {
  margin-top: 40px;
  background: var(--bg-surface);
  border: 1px solid rgba(243, 115, 33, 0.35);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--shadow-orange);
  animation: fadeIn 0.4s ease-in-out;
}

.epc-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.epc-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.epc-detail-step-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-orange);
  background: rgba(243, 115, 33, 0.15);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(243, 115, 33, 0.3);
}

.epc-detail-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-white);
}

.epc-detail-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.epc-deliverables-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.epc-deliverables-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.epc-deliverables-list li i {
  color: #10B981;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.epc-norms-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.epc-norm-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyber-cyan);
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
}

.epc-detail-media-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.epc-detail-media-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* ==========================================================================
   CASOS DE ÉXITO & PROYECTOS DESTACADOS
   ========================================================================== */
.case-studies-section {
  padding: 100px 0;
  background: radial-gradient(circle at 80% 20%, rgba(243, 115, 33, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(0, 210, 255, 0.06) 0%, transparent 60%),
              var(--bg-base);
  position: relative;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.case-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.case-card:hover {
  transform: translateY(-8px);
  border-color: rgba(243, 115, 33, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), var(--shadow-orange);
}

.case-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.case-card:hover .case-media img {
  transform: scale(1.08);
}

.case-sector-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 19, 34, 0.85);
  border: 1px solid var(--border-cyan);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyber-cyan);
  backdrop-filter: blur(10px);
}

.case-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.case-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-white);
  margin-bottom: 12px;
  line-height: 1.35;
}

.case-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.case-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px;
  margin-top: auto;
}

.case-metric-box {
  display: flex;
  flex-direction: column;
}

.case-metric-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-orange);
}

.case-metric-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   CENTRO DE CAPACITACIÓN SITRAIN - SIEMENS MÉXICO
   ========================================================================== */
.sitrain-section {
  padding: 100px 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.98) 0%, rgba(15, 23, 42, 0.9) 100%);
  position: relative;
  overflow: hidden;
}

.sitrain-banner-card {
  background: linear-gradient(135deg, rgba(22, 34, 59, 0.8) 0%, rgba(11, 19, 34, 0.95) 100%);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 50px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), var(--shadow-cyan);
  position: relative;
}

.sitrain-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid var(--cyber-cyan);
  padding: 6px 16px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyber-cyan);
  margin-bottom: 18px;
}

.sitrain-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.sitrain-title span {
  color: var(--cyber-cyan);
}

.sitrain-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.sitrain-features-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sitrain-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-white);
}

.sitrain-pill i {
  color: var(--brand-orange);
}

.sitrain-banner-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 210, 255, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.sitrain-banner-media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.sitrain-courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sitrain-course-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.sitrain-course-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyber-cyan);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), var(--shadow-cyan);
}

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.course-code-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyber-cyan);
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
}

.course-duration {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.course-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-white);
  margin-bottom: 12px;
  line-height: 1.35;
}

.course-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.course-topics-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  padding: 0;
}

.course-topics-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-primary);
}

.course-topics-list li::before {
  content: '▸';
  color: var(--brand-orange);
  font-weight: bold;
}

.course-cta-btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.85rem;
}

/* Course Modal Dialog */
.course-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.course-modal-backdrop.active {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

.course-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-cyan);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), var(--shadow-cyan);
}

.course-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.course-modal-close:hover {
  background: var(--brand-orange);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #04070D;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 80px 0 30px;
  position: relative;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 0.92rem;
  margin: 18px 0 24px;
  max-width: 320px;
}

.footer-col-title {
  font-size: 1.1rem;
  color: var(--text-white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--brand-orange);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--brand-orange-light);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

/* ==========================================================================
   TOAST & MODALS
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  color: var(--text-white);
  padding: 16px 24px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg), var(--shadow-orange);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   SECTORS V2 - RICH VISUAL GRADIENT CARDS
   ========================================================================== */
.sectors-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.sector-card-v2 {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 380px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.sector-card-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 15, 29, 0.15) 0%, rgba(8, 15, 29, 0.65) 45%, rgba(8, 15, 29, 0.98) 88%);
  transition: all 0.45s ease;
  z-index: 1;
}

.sector-card-v2:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--brand-orange);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(243, 115, 33, 0.35);
}

.sector-card-v2:hover::before {
  background: linear-gradient(180deg, rgba(243, 115, 33, 0.15) 0%, rgba(8, 15, 29, 0.7) 40%, rgba(8, 15, 29, 0.98) 85%);
}

.sector-badge-top {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(243, 115, 33, 0.5);
  border-radius: 20px;
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-orange-light);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.sector-card-content {
  position: relative;
  z-index: 2;
  transition: transform 0.35s ease;
}

.sector-card-v2:hover .sector-card-content {
  transform: translateY(-4px);
}

.sector-title-v2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.sector-desc-v2 {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.sector-tags-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ==========================================================================
   ABOUT TEAM SHOWCASE CARD (REAL TEAM PHOTOGRAPHY)
   ========================================================================== */
.about-team-showcase-card {
  position: relative;
  background: radial-gradient(circle at 50% 30%, #152238 0%, #080F1D 85%);
  border: 1px solid rgba(243, 115, 33, 0.4);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(243, 115, 33, 0.18);
  transition: all var(--transition-normal);
}

.about-team-showcase-card:hover {
  border-color: var(--brand-orange);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 45px rgba(243, 115, 33, 0.3);
}

.team-photo-container {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.about-team-photo-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-team-showcase-card:hover .about-team-photo-img {
  transform: scale(1.03);
}

.team-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.05) 0%, rgba(7, 11, 20, 0.65) 100%);
  pointer-events: none;
}

.team-photo-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(10, 18, 36, 0.9);
  border: 1px solid rgba(243, 115, 33, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.pulse-beacon-orange {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 0 10px var(--brand-orange);
  animation: beaconPulseOrange 1.8s infinite;
}

@keyframes beaconPulseOrange {
  0% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 14px var(--brand-orange); }
  100% { transform: scale(0.85); opacity: 0.7; }
}

/* ==========================================================================
   ABOUT BRAND SHOWCASE CARD (MODERN PRO AIC LOGO PRESENTATION)
   ========================================================================== */
.about-brand-showcase-card {
  position: relative;
  background: radial-gradient(circle at 50% 30%, #152238 0%, #080F1D 80%);
  border: 1px solid rgba(243, 115, 33, 0.35);
  border-radius: 24px;
  padding: 44px 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(243, 115, 33, 0.15);
}

.brand-showcase-ambient-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(243, 115, 33, 0.28) 0%, rgba(0, 210, 255, 0.12) 60%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(25px);
  animation: pulseGlow 5s ease-in-out infinite alternate;
}

.brand-showcase-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.7;
  pointer-events: none;
}

.brand-logo-hero-wrap {
  position: relative;
  margin-bottom: 24px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-glow-aura {
  position: absolute;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(243, 115, 33, 0.35) 0%, transparent 70%);
  filter: blur(20px);
  border-radius: 50%;
  z-index: 1;
}

.about-hero-logo-img {
  position: relative;
  z-index: 2;
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(243, 115, 33, 0.45));
  transition: transform 0.4s ease;
}

.about-brand-showcase-card:hover .about-hero-logo-img {
  transform: scale(1.04);
}

.brand-tagline-badge {
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 210, 255, 0.4);
  border-radius: 30px;
  padding: 6px 18px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cyber-cyan);
  letter-spacing: 1px;
  margin-bottom: 26px;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.15);
}

.showcase-metrics-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.showcase-mini-pill {
  background: rgba(11, 19, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.84rem;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: all 0.3s ease;
}

.showcase-mini-pill:hover {
  background: rgba(22, 34, 59, 0.9);
  border-color: var(--border-accent);
  transform: translateX(4px);
}

.pill-dot {
  font-size: 0.9rem;
}
.pill-dot.text-orange { color: var(--brand-orange); }
.pill-dot.text-cyan { color: var(--cyber-cyan); }
.pill-dot.text-green { color: #34D399; }

@keyframes pulseGlow {
  0% { transform: translateX(-50%) scale(0.9); opacity: 0.7; }
  100% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .service-pane.active {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .epc-timeline {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .epc-timeline::before {
    display: none;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    background: rgba(7, 11, 20, 0.98);
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .header-actions .status-pill {
    display: none;
  }
  .hero-stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .stat-item {
    border-right: none;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ==========================================================================
   AMBIENT AUDIO FLOATING WIDGET & EQUALIZER ANIMATION
   ========================================================================== */
.audio-floating-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-ambience-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(10, 18, 36, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(243, 115, 33, 0.4);
  border-radius: 999px;
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 12px rgba(243, 115, 33, 0.2);
  transition: all var(--transition-fast);
  user-select: none;
}

.audio-ambience-pill:hover {
  background: rgba(15, 27, 54, 0.95);
  border-color: var(--brand-orange);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(243, 115, 33, 0.4);
  transform: translateY(-2px);
}

.audio-mode-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 18, 36, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 210, 255, 0.4);
  color: var(--cyber-cyan);
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-fast);
  user-select: none;
}

.audio-mode-btn:hover {
  background: rgba(15, 27, 54, 0.95);
  border-color: var(--cyber-cyan);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.3);
  transform: translateY(-2px) rotate(45deg);
}

.audio-ambience-pill.muted {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.audio-ambience-pill.muted:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-secondary);
}

/* Equalizer Bars Animation */
.audio-eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
  width: 14px;
}

.audio-eq-bars .bar {
  display: block;
  width: 2.5px;
  background: var(--brand-orange);
  border-radius: 2px;
  transition: height 0.2s ease, background-color 0.2s ease;
}

.audio-ambience-pill.playing .bar-1 {
  animation: eqBounce1 0.8s ease-in-out infinite alternate;
}

.audio-ambience-pill.playing .bar-2 {
  animation: eqBounce2 0.6s ease-in-out infinite alternate 0.2s;
}

.audio-ambience-pill.playing .bar-3 {
  animation: eqBounce3 0.9s ease-in-out infinite alternate 0.4s;
}

.audio-ambience-pill.muted .bar {
  height: 3px !important;
  background: var(--text-muted);
  animation: none;
}

@keyframes eqBounce1 {
  0% { height: 3px; }
  100% { height: 13px; }
}

@keyframes eqBounce2 {
  0% { height: 12px; }
  100% { height: 4px; }
}

@keyframes eqBounce3 {
  0% { height: 5px; }
  100% { height: 14px; }
}

@media (max-width: 600px) {
  .audio-floating-widget {
    bottom: 16px;
    left: 16px;
  }
  .audio-ambience-pill {
    padding: 6px 12px;
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   PAGE & SECTION TRANSITIONS (CYBER-TRANSITIONS & REVEAL ENGINE)
   ========================================================================== */

/* 1. Top Cyber Progress & Navigation Transition Beam */
.page-transition-beam {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3.5px;
  background: linear-gradient(90deg, #FF6B00 0%, #F37321 35%, #00D2FF 100%);
  box-shadow: 0 0 16px #00D2FF, 0 0 8px #F37321;
  z-index: 999999;
  pointer-events: none;
  opacity: 0;
  transform: translateZ(0);
}

.page-transition-beam.animating {
  opacity: 1;
  animation: beamSweep 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes beamSweep {
  0% {
    width: 0%;
    opacity: 1;
  }
  60% {
    width: 85%;
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 0;
  }
}

/* 2. Micro Cinematic Ambient Flash */
.page-transition-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 30%, rgba(243, 115, 33, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.page-transition-flash.active {
  opacity: 1;
}

/* 3. Target Section Focus Glow */
.section-target-highlight {
  animation: sectionTargetGlow 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sectionTargetGlow {
  0% {
    box-shadow: inset 0 0 0px transparent;
  }
  35% {
    box-shadow: inset 0 0 60px rgba(243, 115, 33, 0.12), 0 0 40px rgba(0, 210, 255, 0.08);
  }
  100% {
    box-shadow: inset 0 0 0px transparent;
  }
}

/* 4. Section Scroll & Navigation Reveal Classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ==========================================================================
   CONTINUOUS SCROLL INTERACTION & DEPTH ENGINE
   ========================================================================== */

/* 1. Global Scroll Progress Meter at Top */
.global-scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 100000;
  pointer-events: none;
}

.scroll-progress-indicator {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FF6B00 0%, #F37321 40%, #00D2FF 100%);
  box-shadow: 0 0 14px #00D2FF, 0 0 7px #F37321;
  transition: width 0.06s linear;
}

/* 2. Floating Scroll-to-Top Widget with Percentage Ring */
.scroll-top-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-top-widget.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top-btn {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(10, 18, 36, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(243, 115, 33, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(243, 115, 33, 0.2);
  transition: all var(--transition-fast);
  color: var(--text-white);
  padding: 0;
}

.scroll-top-btn:hover {
  border-color: var(--brand-orange);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(243, 115, 33, 0.5);
  transform: translateY(-3px) scale(1.06);
}

.scroll-ring-svg {
  position: absolute;
  top: 3px;
  left: 3px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.scroll-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 2.5;
}

.scroll-ring-fill {
  fill: none;
  stroke: var(--brand-orange);
  stroke-width: 2.5;
  stroke-dasharray: 113.1;
  stroke-dashoffset: 113.1;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.08s linear;
  filter: drop-shadow(0 0 4px var(--brand-orange));
}

.scroll-arrow-icon {
  font-size: 0.72rem;
  color: var(--brand-orange);
  line-height: 1;
  margin-top: -2px;
  transition: transform var(--transition-fast);
}

.scroll-top-btn:hover .scroll-arrow-icon {
  transform: translateY(-2px);
  color: #FFFFFF;
}

.scroll-percent-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
  margin-top: 2px;
}

.scroll-top-btn:hover .scroll-percent-text {
  color: var(--cyber-cyan);
}

/* 3. Staggered Grid Transitions */
.stagger-1 { transition-delay: 0.06s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.18s; }
.stagger-4 { transition-delay: 0.24s; }
.stagger-5 { transition-delay: 0.30s; }
.stagger-6 { transition-delay: 0.36s; }

/* 4. Subtle Parallax Depth on Background Glow */
.hero-glow-sphere {
  transition: transform 0.12s ease-out;
  will-change: transform;
}

@media (max-width: 600px) {
  .scroll-top-widget {
    bottom: 16px;
    right: 16px;
  }
}

/* ==========================================================================
   CAREERS PAGE (BOLSA DE TRABAJO & TALENTO) STYLES
   ========================================================================== */
.careers-hero-section {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: 150px 0 70px;
  overflow: hidden;
}

.careers-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.careers-hero-content .hero-buttons {
  justify-content: center;
}

.careers-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  border-radius: 16px;
  margin-top: 48px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Perks Grid */
.careers-perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.perk-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px 24px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.perk-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card-hover);
  background: var(--bg-card-hover);
}

.perk-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(243, 115, 33, 0.12);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  border: 1px solid rgba(243, 115, 33, 0.25);
  transition: all var(--transition-fast);
}

.perk-card:hover .perk-icon-box {
  background: rgba(243, 115, 33, 0.22);
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(243, 115, 33, 0.4);
}

.perk-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text-white);
}

.perk-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Vacancy List Cards */
.vacancies-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.vacancy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition-normal);
  position: relative;
}

.vacancy-card:hover {
  border-color: var(--cyber-cyan);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 210, 255, 0.2);
  transform: translateY(-4px);
}

.vacancy-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.vacancy-title-group h3 {
  font-size: 1.35rem;
  color: var(--text-white);
  margin-bottom: 8px;
}

.vacancy-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.vacancy-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vacancy-meta-badge.highlight {
  color: var(--brand-orange);
  background: rgba(243, 115, 33, 0.12);
  border-color: rgba(243, 115, 33, 0.3);
}

.vacancy-meta-badge.cyan {
  color: var(--cyber-cyan);
  background: rgba(0, 210, 255, 0.1);
  border-color: rgba(0, 210, 255, 0.3);
}

.vacancy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.vacancy-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--cyber-cyan);
  padding: 3px 10px;
  border-radius: 999px;
}

.vacancy-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 20px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vacancy-details h4 {
  font-size: 0.92rem;
  color: var(--brand-orange-light);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vacancy-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vacancy-details li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 18px;
}

.vacancy-details li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--brand-orange);
}

.vacancy-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

/* Selection Process Roadmap */
.roadmap-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.roadmap-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 28px 20px;
  position: relative;
  text-align: center;
  transition: all var(--transition-fast);
}

.roadmap-step-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.roadmap-step-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-orange);
  margin-bottom: 12px;
  text-shadow: 0 0 12px rgba(243, 115, 33, 0.4);
}

.roadmap-step-title {
  font-size: 1.05rem;
  color: var(--text-white);
  margin-bottom: 8px;
}

.roadmap-step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 992px) {
  .careers-perks-grid,
  .roadmap-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .vacancy-details {
    grid-template-columns: 1fr;
  }
  .careers-hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .careers-perks-grid,
  .roadmap-process-grid,
  .careers-hero-stats {
    grid-template-columns: 1fr;
  }
  .vacancy-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .vacancy-actions {
    width: 100%;
    justify-content: stretch;
  }
  .vacancy-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   PORTAL INTERNO / LOGIN STYLES (CYBER-INDUSTRIAL SECURE ACCESS)
   ========================================================================== */
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--cyber-cyan);
  white-space: nowrap;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-login-btn:hover {
  background: rgba(0, 210, 255, 0.2);
  border-color: var(--cyber-cyan);
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.45);
  transform: translateY(-1px);
}

.nav-login-link {
  color: var(--cyber-cyan) !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-login-link:hover {
  color: #FFFFFF !important;
  text-shadow: 0 0 12px rgba(0, 210, 255, 0.7);
}

.portal-page-body {
  background-color: var(--bg-darkest);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
}

.portal-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.portal-header-bar {
  position: relative;
  z-index: 20;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.portal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.portal-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--cyber-cyan);
  letter-spacing: 0.5px;
}

.portal-security-badge .shield-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyber-cyan);
  box-shadow: 0 0 8px var(--cyber-cyan);
  animation: radarPulse 2s infinite;
}

.portal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.portal-back-btn:hover {
  color: #FFFFFF;
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
}

.portal-main-container {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.portal-info-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.portal-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243, 115, 33, 0.12);
  border: 1px solid rgba(243, 115, 33, 0.4);
  color: var(--brand-orange);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.5px;
  width: fit-content;
}

.portal-main-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin: 0;
}

.portal-main-title span {
  background: linear-gradient(135deg, var(--cyber-cyan) 0%, var(--brand-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portal-lead-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.portal-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.portal-feature-item {
  background: rgba(13, 20, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: all var(--transition-fast);
}

.portal-feature-item:hover {
  border-color: rgba(0, 210, 255, 0.3);
  background: rgba(13, 20, 36, 0.85);
  transform: translateY(-2px);
}

.portal-feature-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.portal-feature-text h4 {
  font-size: 0.9rem;
  color: #FFFFFF;
  margin: 0 0 4px 0;
}

.portal-feature-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Card de Login */
.portal-card-wrapper {
  position: relative;
}

.portal-login-card {
  background: rgba(13, 20, 36, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 210, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 210, 255, 0.15);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.portal-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyber-cyan), var(--brand-orange), var(--cyber-cyan));
  background-size: 200% auto;
  animation: gradientFlow 4s linear infinite;
}

.portal-card-tabs {
  display: flex;
  background: rgba(7, 11, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 6px;
}

.portal-tab-btn {
  flex: 1;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.portal-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.portal-tab-btn.active {
  background: rgba(0, 210, 255, 0.15);
  border-color: rgba(0, 210, 255, 0.4);
  color: var(--cyber-cyan);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.2);
}

.portal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .portal-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.portal-card-header {
  text-align: center;
  margin-bottom: 24px;
}

.portal-lock-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px auto;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.25);
}

.portal-card-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 6px 0;
}

.portal-card-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.portal-form-group {
  margin-bottom: 18px;
}

.portal-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.portal-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.portal-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.portal-input {
  width: 100%;
  background: rgba(7, 11, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px 12px 42px;
  color: #FFFFFF;
  font-size: 0.92rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.portal-input:focus {
  outline: none;
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.3);
  background: rgba(7, 11, 20, 0.95);
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.password-toggle-btn:hover {
  color: var(--cyber-cyan);
}

.portal-role-select {
  width: 100%;
  background: rgba(7, 11, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px 12px 42px;
  color: #FFFFFF;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300D2FF' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.portal-role-select:focus {
  outline: none;
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.3);
}

.portal-role-select option {
  background: #070B14;
  color: #FFFFFF;
}

.portal-extra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 0.82rem;
}

.portal-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  cursor: pointer;
}

.portal-forgot-link {
  color: var(--cyber-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.portal-forgot-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Portal Feedback Alerts */
@keyframes slideInDown {
  0% {
    opacity: 0;
    transform: translateY(-12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.portal-alert {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 20px;
  animation: slideInDown 0.3s ease, shakeAlert 0.4s ease 0.1s;
}

@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.portal-alert.error {
  display: flex !important;
  background: rgba(255, 71, 87, 0.18) !important;
  border: 1px solid rgba(255, 71, 87, 0.6) !important;
  color: #ffb8b8 !important;
  box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3) !important;
}

.portal-alert.error strong {
  color: #FFFFFF;
}

.portal-input.input-error,
.portal-role-select.input-error {
  border-color: #ff4757 !important;
  box-shadow: 0 0 15px rgba(255, 71, 87, 0.4) !important;
  background: rgba(255, 71, 87, 0.08) !important;
}

.portal-login-card.card-shake {
  animation: cardShakeAnim 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes cardShakeAnim {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

.portal-alert.success {
  display: flex;
  background: rgba(46, 213, 115, 0.14);
  border: 1px solid rgba(46, 213, 115, 0.45);
  color: #a8ffb2;
  box-shadow: 0 4px 20px rgba(46, 213, 115, 0.2);
}

.portal-alert.warning {
  display: flex;
  background: rgba(243, 115, 33, 0.14);
  border: 1px solid rgba(243, 115, 33, 0.45);
  color: #ffd2a8;
  box-shadow: 0 4px 20px rgba(243, 115, 33, 0.2);
}

.portal-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.3);
}

.portal-demo-btn {
  width: 100%;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(0, 210, 255, 0.4);
  color: var(--cyber-cyan);
  padding: 10px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.portal-demo-btn:hover {
  background: rgba(0, 210, 255, 0.12);
  border-color: var(--cyber-cyan);
  color: #FFFFFF;
}

.portal-module-btn:hover {
  background: rgba(0, 210, 255, 0.22);
  border-color: var(--cyber-cyan);
  color: #FFFFFF;
}

/* Admin Module for RRHH & Direccion */
.portal-admin-module {
  background: linear-gradient(135deg, rgba(13, 20, 36, 0.95), rgba(243, 115, 33, 0.08));
  border: 1px solid rgba(243, 115, 33, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(243, 115, 33, 0.15);
  grid-column: 1 / -1;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.portal-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-orange);
  background: rgba(243, 115, 33, 0.15);
  border: 1px solid rgba(243, 115, 33, 0.35);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.portal-user-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 460px;
  background: rgba(7, 11, 20, 0.75);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 12px;
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.portal-user-table-wrap::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.portal-user-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(0, 210, 255, 0.3);
  border-radius: 4px;
}

.portal-user-table-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--cyber-cyan);
}

.portal-user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.portal-user-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #0d1424;
  color: var(--cyber-cyan);
  padding: 13px 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(0, 210, 255, 0.35);
  white-space: nowrap;
}

.portal-user-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  white-space: nowrap;
  vertical-align: middle;
  transition: background var(--transition-fast);
}

.portal-user-table tr:hover td {
  background: rgba(0, 210, 255, 0.04);
  color: #FFFFFF;
}

.portal-user-table td code {
  background: rgba(0, 210, 255, 0.1);
  color: var(--cyber-cyan);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border: 1px solid rgba(0, 210, 255, 0.25);
}

.status-badge-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46, 213, 115, 0.18);
  color: #2ed573;
  border: 1px solid rgba(46, 213, 115, 0.4);
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 0.76rem;
  font-weight: 600;
}

.status-badge-inactive {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 71, 87, 0.18);
  color: #ff6b81;
  border: 1px solid rgba(255, 71, 87, 0.4);
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 0.76rem;
  font-weight: 600;
}

.portal-action-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-action-deactivate {
  background: rgba(243, 115, 33, 0.14);
  border: 1px solid rgba(243, 115, 33, 0.45);
  color: var(--brand-orange);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-action-deactivate:hover {
  background: rgba(243, 115, 33, 0.35);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(243, 115, 33, 0.3);
}

.btn-action-delete {
  background: rgba(255, 71, 87, 0.14);
  border: 1px solid rgba(255, 71, 87, 0.45);
  color: #ff6b81;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-action-delete:hover {
  background: rgba(255, 71, 87, 0.35);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

/* Department Management for Dirección General */
.portal-dept-manager {
  background: rgba(7, 11, 20, 0.7);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 12px;
  padding: 16px;
  margin-top: 14px;
}

.portal-dept-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.portal-dept-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 20, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.portal-dept-chip:hover {
  border-color: var(--cyber-cyan);
  background: rgba(0, 210, 255, 0.1);
}

.portal-dept-del-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 2px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.portal-dept-del-btn:hover {
  color: #ff6b81;
}

.portal-security-notice {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* Dashboard Unlocked View */
.portal-dashboard-view {
  display: none;
  width: 100%;
  max-width: 1200px;
  animation: fadeIn 0.4s ease;
}

.portal-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(13, 20, 36, 0.85);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.portal-user-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyber-cyan), var(--brand-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #070B14;
  font-size: 1.2rem;
}

.portal-user-info h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #FFFFFF;
}

.portal-user-info p {
  margin: 2px 0 0 0;
  font-size: 0.8rem;
  color: var(--cyber-cyan);
  font-family: var(--font-mono);
}

.portal-dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.portal-dash-stat-card {
  background: rgba(13, 20, 36, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-dash-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--cyber-cyan);
  flex-shrink: 0;
}

.portal-dash-stat-info strong {
  display: block;
  font-size: 1.35rem;
  color: #FFFFFF;
  font-family: var(--font-mono);
}

.portal-dash-stat-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.portal-dash-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portal-module-card {
  background: rgba(13, 20, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.portal-module-card:hover {
  border-color: var(--cyber-cyan);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 210, 255, 0.2);
}

.portal-module-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.portal-module-icon {
  font-size: 1.5rem;
}

.portal-module-header h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #FFFFFF;
}

.portal-module-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.portal-module-items {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-module-items li {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.portal-module-items li::before {
  content: '▸';
  color: var(--cyber-cyan);
}

.portal-module-btn {
  width: 100%;
  padding: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.4);
  color: #FFFFFF;
  transition: all var(--transition-fast);
}

.portal-module-btn:hover {
  background: var(--cyber-cyan);
  color: #070B14;
}

@media (max-width: 992px) {
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .portal-dash-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portal-dash-modules-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .portal-features-grid {
    grid-template-columns: 1fr;
  }
  .portal-login-card {
    padding: 24px 20px;
  }
  .portal-dash-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .portal-dash-stats-grid,
  .portal-dash-modules-grid {
    grid-template-columns: 1fr;
  }
  .portal-security-badge {
    display: none;
  }
}

/* ==========================================================================
   USER PROFILE PHOTO & INTERACTIVE AVATAR STYLES
   ========================================================================== */
.portal-user-avatar {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.25), rgba(243, 115, 33, 0.25));
  border: 2px solid var(--cyber-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #FFFFFF;
  font-size: 1.25rem;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.25);
  flex-shrink: 0;
}

.portal-user-avatar:hover {
  border-color: #FFFFFF;
  transform: scale(1.06);
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.5);
}

.portal-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.portal-avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 11, 20, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 50%;
}

.portal-user-avatar:hover .portal-avatar-overlay {
  opacity: 1;
}

/* Table Avatar thumbnail with name */
.portal-collab-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-table-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.2), rgba(243, 115, 33, 0.2));
  border: 1.5px solid rgba(0, 210, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyber-cyan);
  flex-shrink: 0;
  overflow: hidden;
}

.portal-table-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Photo Upload Dropzone */
.photo-dropzone {
  border: 2px dashed rgba(0, 210, 255, 0.4);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  background: rgba(13, 20, 36, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.photo-dropzone:hover,
.photo-dropzone.dragover {
  border-color: var(--cyber-cyan);
  background: rgba(0, 210, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

.photo-preview-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--cyber-cyan);
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.35);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
  background: #0d1424;
}

.photo-preview-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-action-photo {
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--cyber-cyan);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-action-photo:hover {
  background: rgba(0, 210, 255, 0.25);
  border-color: var(--cyber-cyan);
  color: #FFFFFF;
}

/* ==========================================================================
   PRO AIC ERP ENTERPRISE SUITE - STYLES & MODULAR WORKSPACE
   ========================================================================== */

.erp-app-container {
  display: flex;
  min-height: calc(100vh - 80px);
  width: 100%;
  position: relative;
  background: var(--bg-darkest);
  border-top: 1px solid rgba(0, 210, 255, 0.15);
}

/* --- ERP Sidebar --- */
.erp-sidebar {
  width: 280px;
  min-width: 280px;
  background: #090F1C;
  border-right: 1px solid rgba(0, 210, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: calc(100vh - 80px);
  overflow-y: auto;
  z-index: 50;
  transition: all 0.3s ease;
}

.erp-sidebar-header {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.erp-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(243, 115, 33, 0.15), rgba(0, 210, 255, 0.15));
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cyber-cyan);
  width: 100%;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.erp-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 12px;
  margin-top: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.erp-user-badge:hover {
  border-color: var(--cyber-cyan);
  background: rgba(0, 210, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

#dashUserRoleBadge {
  margin-top: 4px;
  display: flex;
  max-width: 100%;
}

#dashUserRoleBadge .erp-badge {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 6px;
}

.erp-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.erp-nav-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 12px 10px 4px;
  font-family: var(--font-mono);
}

.erp-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.erp-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
}

.erp-nav-item.active {
  background: linear-gradient(135deg, rgba(243, 115, 33, 0.2), rgba(0, 210, 255, 0.15));
  border-color: rgba(0, 210, 255, 0.4);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 12px rgba(0, 210, 255, 0.15);
}

.erp-nav-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.erp-nav-icon {
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.erp-nav-counter {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.erp-nav-item.active .erp-nav-counter {
  background: var(--brand-orange);
  color: #FFFFFF;
}

.erp-sidebar-footer {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.erp-server-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  font-size: 0.74rem;
  color: #10b981;
  font-family: var(--font-mono);
}

/* --- ERP Main Workspace --- */
.erp-workspace {
  flex: 1;
  min-width: 0;
  padding: 24px 32px;
  overflow-y: auto;
  background: radial-gradient(circle at 85% 10%, rgba(0, 210, 255, 0.04) 0%, transparent 60%),
              radial-gradient(circle at 10% 90%, rgba(243, 115, 33, 0.04) 0%, transparent 60%),
              var(--bg-darkest);
}

/* Top Command Bar */
.erp-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.erp-breadcrumb-title h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.erp-breadcrumb-title p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 4px 0 0 0;
}

.erp-command-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.erp-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0d1424;
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 8px 14px;
  border-radius: 10px;
  width: 280px;
  transition: all 0.2s ease;
}

.erp-search-box:focus-within {
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.3);
  width: 320px;
}

.erp-search-box input {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 0.85rem;
  outline: none;
  width: 100%;
}

.erp-search-box input::placeholder {
  color: var(--text-muted);
}

/* Modular Views Container */
.erp-view-section {
  display: none;
  animation: erpFadeIn 0.3s ease;
}

.erp-view-section.active {
  display: block;
}

@keyframes erpFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* KPI Cards Grid */
.erp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.erp-kpi-card {
  background: #0d1424;
  border: 1px solid rgba(0, 210, 255, 0.15);
  border-radius: 14px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.erp-kpi-card:hover {
  border-color: var(--cyber-cyan);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 210, 255, 0.2);
}

.erp-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.erp-kpi-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.erp-kpi-trend {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 6px;
}

.erp-kpi-trend.positive {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.erp-kpi-trend.neutral {
  background: rgba(0, 210, 255, 0.15);
  color: var(--cyber-cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.erp-kpi-trend.warning {
  background: rgba(243, 115, 33, 0.15);
  color: var(--brand-orange);
  border: 1px solid rgba(243, 115, 33, 0.3);
}

.erp-kpi-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: #FFFFFF;
  font-family: var(--font-heading);
  line-height: 1.1;
  margin-bottom: 4px;
}

.erp-kpi-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Tab Navigation inside Modules */
.erp-tab-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
  padding-bottom: 2px;
  overflow-x: auto;
}

.erp-tab-btn {
  background: none;
  border: none;
  padding: 10px 18px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.erp-tab-btn:hover {
  color: #FFFFFF;
}

.erp-tab-btn.active {
  color: var(--cyber-cyan);
  border-bottom-color: var(--cyber-cyan);
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

/* Card Containers */
.erp-card {
  background: #0d1424;
  border: 1px solid rgba(0, 210, 255, 0.15);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
}

.erp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.erp-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

/* Modern Data Table */
.erp-table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.erp-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.erp-data-table th {
  background: #111A2E;
  color: var(--cyber-cyan);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 210, 255, 0.2);
  white-space: nowrap;
}

.erp-data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  vertical-align: middle;
}

.erp-data-table tbody tr {
  transition: all 0.15s ease;
}

.erp-data-table tbody tr:hover {
  background: rgba(0, 210, 255, 0.04);
}

/* Status Badges */
.erp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

.erp-badge.phase-engineering { background: rgba(0, 210, 255, 0.15); color: var(--cyber-cyan); border: 1px solid rgba(0, 210, 255, 0.3); }
.erp-badge.phase-fat { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.erp-badge.phase-sat { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.erp-badge.phase-completed { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.erp-badge.status-critical { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.erp-badge.status-active { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }

/* Progress Bars */
.erp-progress-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.erp-progress-bar {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--brand-orange), var(--cyber-cyan));
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
  transition: width 0.5s ease;
}

/* Action Buttons */
.erp-btn-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.24s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  will-change: transform, box-shadow;
  transform-origin: center center;
}

.erp-btn-action:hover {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--cyber-cyan);
  color: #FFFFFF;
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), 0 0 14px rgba(0, 210, 255, 0.35);
  filter: brightness(1.15);
}

.erp-btn-action:active {
  transform: scale(0.96) translateY(0);
}

.erp-btn-action.primary {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-light));
  border-color: var(--brand-orange);
  color: #FFFFFF;
}

.erp-btn-action.primary:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 0 22px rgba(243, 115, 33, 0.8), 0 8px 22px rgba(0, 0, 0, 0.5);
  filter: brightness(1.2);
}

.erp-btn-action.primary:active {
  transform: scale(0.96) translateY(0);
}

/* Kanban / Grid for Projects */
.erp-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.erp-project-card {
  background: #0e1628;
  border: 1px solid rgba(0, 210, 255, 0.15);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
}

.erp-project-card:hover {
  border-color: var(--cyber-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 210, 255, 0.18);
}

.erp-project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.erp-project-folio {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--cyber-cyan);
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
}

.erp-project-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.erp-project-client {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.erp-project-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.erp-project-metric-item {
  display: flex;
  flex-direction: column;
}

.erp-project-metric-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.erp-project-metric-val {
  font-size: 0.86rem;
  font-weight: 700;
  color: #FFFFFF;
}

.erp-project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Cross Consultation 360 Drawer/Modal */
.erp-detail-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.erp-detail-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.erp-detail-tab-btn.active {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--cyber-cyan);
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.25);
}

@media (max-width: 992px) {
  .erp-app-container {
    flex-direction: column;
  }
  .erp-sidebar {
    width: 100%;
    min-width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid rgba(0, 210, 255, 0.15);
  }
  .erp-workspace {
    padding: 18px 14px;
  }
  .erp-search-box {
    width: 100%;
  }
  .erp-search-box:focus-within {
    width: 100%;
  }
}

/* ==========================================================================
   CHRONOLOGICAL PROJECT LIFECYCLE PIPELINE TRACKER
   ========================================================================== */
.erp-lifecycle-card {
  background: linear-gradient(135deg, rgba(13, 20, 36, 0.95), rgba(10, 16, 28, 0.98));
  border: 1px solid rgba(0, 210, 255, 0.22);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.erp-lifecycle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.erp-lifecycle-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.erp-lifecycle-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  position: relative;
}

.erp-lifecycle-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.erp-lifecycle-step:hover {
  background: rgba(0, 210, 255, 0.08);
  border-color: var(--cyber-cyan);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 210, 255, 0.2);
}

.erp-lifecycle-step.active {
  background: rgba(0, 210, 255, 0.12);
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.25);
}

.erp-lifecycle-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--cyber-cyan);
  background: rgba(0, 210, 255, 0.15);
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.erp-lifecycle-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.erp-lifecycle-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* ==========================================================================
   CRM INDUSTRIAL & COMMERCIAL PIPELINE STYLES
   ========================================================================== */
.crm-kanban-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
  align-items: flex-start;
}

.crm-kanban-col {
  background: rgba(13, 20, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.crm-kanban-cards-wrap {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.crm-kanban-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.crm-kanban-col-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
}

.crm-kanban-card {
  background: rgba(22, 33, 62, 0.65);
  border: 1px solid rgba(0, 210, 255, 0.15);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.crm-kanban-card:hover {
  border-color: var(--cyber-cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 210, 255, 0.2);
}

.crm-kanban-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crm-kanban-client {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.crm-kanban-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.crm-kanban-alcance-box {
  font-size: 0.72rem;
  color: #cbd5e1;
  margin-top: 5px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-left: 3px solid var(--cyber-cyan);
  padding: 6px 9px;
  border-radius: 6px;
  line-height: 1.4;
  max-height: 85px;
  overflow-y: auto;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 210, 255, 0.4) transparent;
}

.crm-kanban-alcance-box::-webkit-scrollbar {
  width: 4px;
}

.crm-kanban-alcance-box::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.crm-kanban-alcance-box::-webkit-scrollbar-thumb {
  background: rgba(0, 210, 255, 0.35);
  border-radius: 4px;
}

.crm-kanban-amount {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--brand-orange);
}

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

.crm-client-card {
  background: rgba(13, 20, 36, 0.8);
  border: 1px solid rgba(0, 210, 255, 0.15);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s ease;
}

.crm-client-card:hover {
  border-color: var(--cyber-cyan);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.15);
}

.crm-proposal-sheet {
  background: #FFFFFF;
  color: #1a1a1a;
  padding: 30px;
  border-radius: 8px;
  font-family: var(--font-body);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  margin: 0 auto;
}

.crm-proposal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.crm-proposal-table th {
  background: #0d1424;
  color: #FFFFFF;
  padding: 8px 12px;
  font-size: 0.8rem;
  text-align: left;
}

.crm-proposal-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.82rem;
  color: #334155;
}

/* CRM Quote Types Badges & Filters */
.erp-filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.erp-filter-pill:hover {
  background: rgba(0, 210, 255, 0.1);
  border-color: var(--cyber-cyan);
  color: #FFFFFF;
}

.erp-filter-pill.active {
  background: rgba(0, 210, 255, 0.18);
  border-color: var(--cyber-cyan);
  color: var(--cyber-cyan);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.crm-type-badge-proyecto {
  background: rgba(0, 210, 255, 0.15);
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.35);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.crm-type-badge-suministro {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.crm-type-badge-servicio {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* CRM Items Table for Services & Spare Parts */
.crm-items-input-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.crm-items-input-table th {
  background: rgba(0, 0, 0, 0.3);
  color: var(--cyber-cyan);
  font-size: 0.72rem;
  text-transform: uppercase;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(0, 210, 255, 0.2);
  text-align: left;
}

.crm-items-input-table td {
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
}

.crm-item-input-sm {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: inherit;
  box-sizing: border-box;
}

.crm-item-input-sm:focus {
  border-color: var(--cyber-cyan);
  outline: none;
}

.crm-item-del-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  border-radius: 4px;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.crm-item-del-btn:hover {
  background: #ef4444;
  color: #FFFFFF;
}

/* ==========================================================================
   CRM PROJECT CUSTOM GROUPS & CONCEPTS STYLES
   ========================================================================== */
.crm-project-group-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(0, 210, 255, 0.22);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
  position: relative;
}

.crm-project-group-card:hover {
  border-color: rgba(0, 210, 255, 0.45);
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.08);
}

.crm-group-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.crm-group-badge {
  background: #0f172a;
  color: var(--cyber-cyan);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.76rem;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 210, 255, 0.3);
  white-space: nowrap;
}

.crm-group-title-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 4px;
  flex: 1;
}

.crm-group-title-input:focus {
  border-color: var(--cyber-cyan);
  outline: none;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.25);
}

.crm-group-subtotal-badge {
  background: rgba(0, 210, 255, 0.15);
  color: #38bdf8;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.84rem;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(0, 210, 255, 0.3);
  white-space: nowrap;
}

.crm-group-del-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.crm-group-del-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

.crm-preset-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.crm-preset-chip:hover {
  background: rgba(0, 210, 255, 0.18);
  border-color: var(--cyber-cyan);
  color: #ffffff;
}

.crm-payment-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.crm-payment-chip:hover, .crm-payment-chip.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #34d399;
  color: #34d399;
}

/* Almacen Picker Item Row */
.almacen-picker-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

.almacen-picker-row:hover {
  background: rgba(0, 210, 255, 0.08);
  border-color: rgba(0, 210, 255, 0.35);
}

/* Percentage Input & Number Inputs Spinners */
.crm-percentage-input::-webkit-outer-spin-button,
.crm-percentage-input::-webkit-inner-spin-button,
.crm-item-input-sm[type="number"]::-webkit-outer-spin-button,
.crm-item-input-sm[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.crm-percentage-input {
  -moz-appearance: textfield;
  width: 68px !important;
  min-width: 60px !important;
  text-align: center !important;
  font-weight: 800 !important;
  font-family: var(--font-mono), monospace !important;
  padding: 4px 6px !important;
}

.crm-item-input-sm[type="number"] {
  -moz-appearance: textfield;
}

.crm-sku-input {
  font-family: var(--font-mono), 'Consolas', 'Courier New', monospace !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #38bdf8 !important;
  min-width: 175px !important;
  width: 100% !important;
  letter-spacing: 0.3px;
  padding: 5px 8px !important;
}

/* ==========================================================================
   KANBAN AUDIT & HISTORY DATABASE TIMELINE (PRO AIC CRM)
   ========================================================================== */
.crm-hist-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.crm-hist-item:hover {
  background: rgba(0, 210, 255, 0.04);
  border-color: rgba(0, 210, 255, 0.3);
  transform: translateY(-1px);
}

.crm-hist-icon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 44px;
}

.crm-hist-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.crm-hist-content {
  flex: 1;
  min-width: 0;
}

.crm-hist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 5px;
}

.crm-hist-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.crm-hist-date {
  font-family: var(--font-mono), monospace;
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 4px;
}

.crm-hist-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 6px;
}

.crm-hist-stage-flow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.crm-hist-notes {
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid var(--cyber-cyan);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-top: 6px;
  line-height: 1.4;
}

.crm-hist-motive-loss {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #fca5a5;
  margin-top: 6px;
  line-height: 1.4;
}

/* ==========================================================================
   PRINT / PDF EXPORT STYLESHEET FOR OFFICIAL PRO AIC QUOTATIONS
   ========================================================================== */
@media print {
  @page {
    size: letter portrait;
    margin: 6mm 8mm 6mm 8mm;
  }

  /* 1. Global Reset for Paper */
  html, body {
    background: #ffffff !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* 2. Hide all direct children of body EXCEPT cotizacionPreviewModal */
  body > *:not(#cotizacionPreviewModal),
  body.proaic-printing-quote-active > *:not(#cotizacionPreviewModal) {
    display: none !important;
    visibility: hidden !important;
  }

  /* 3. Also explicitly hide all application, canvas, audio, and portal wrappers */
  .portal-header,
  .portal-main-container,
  .portal-login-card,
  .portal-dashboard-view,
  .erp-app-container,
  .erp-sidebar,
  .erp-workspace,
  .erp-command-bar,
  .erp-view-section,
  .modal-overlay:not(#cotizacionPreviewModal),
  .modal-close-btn,
  .notification-toast,
  .bg-grid-glow,
  .cyber-cursor,
  .hero-canvas,
  .audio-ambience-widget,
  canvas,
  video,
  audio,
  .btn,
  button {
    display: none !important;
    visibility: hidden !important;
  }

  /* 4. Display ONLY cotizacionPreviewModal and its inner proposal sheet */
  #cotizacionPreviewModal {
    display: block !important;
    position: static !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 99999 !important;
  }

  #cotizacionPreviewModal .modal-card {
    position: static !important;
    max-width: 100% !important;
    width: 100% !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Hide modal buttons container and close button */
  #cotizacionPreviewModal .modal-close-btn,
  #cotizacionPreviewModal .modal-card > div:last-child,
  #cotizacionPreviewModal button {
    display: none !important;
  }

  #cotizacionSheetContainer {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .crm-proposal-sheet,
  .crm-proposal-page {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 0 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    background: #ffffff !important;
    color: #1e293b !important;
    font-size: 7.5pt !important;
    line-height: 1.25 !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .crm-proposal-page.page-break {
    page-break-before: always !important;
    break-before: page !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .crm-proposal-page * {
    box-sizing: border-box;
  }

  .proaic-watermark-overlay {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    opacity: 0.045 !important;
    pointer-events: none !important;
    width: 440px !important;
    max-width: 75% !important;
    z-index: 0 !important;
    text-align: center !important;
  }

  .proaic-watermark-overlay img {
    width: 100% !important;
    display: block !important;
    filter: grayscale(100%) !important;
  }

  .crm-proposal-table {
    margin: 5px 0 !important;
    font-size: 7.2pt !important;
    page-break-inside: avoid !important;
  }

  .crm-proposal-table th,
  .crm-proposal-table td {
    padding: 3px 5px !important;
  }

  .crm-proposal-table th {
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 7.2pt !important;
  }

  .crm-proposal-sheet h2,
  .crm-proposal-page h2 {
    font-size: 1.05rem !important;
    margin-bottom: 1px !important;
  }

  .crm-proposal-sheet p,
  .crm-proposal-sheet div,
  .crm-proposal-page p,
  .crm-proposal-page div {
    font-size: 7.2pt !important;
  }

  .crm-proposal-sheet small,
  .crm-proposal-page small {
    font-size: 6.5pt !important;
  }

  .crm-proposal-page table,
  .crm-proposal-page .crm-partida-block,
  .crm-proposal-page .crm-terms-block {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
}

/* Screen Mode Proposal Page Styling */
.crm-proposal-page {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  background: #ffffff;
  padding: 28px 36px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  max-width: 1000px;
  margin: 0 auto 24px auto;
}

.crm-proposal-page:last-child {
  margin-bottom: 0;
}

.proaic-watermark-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.045;
  pointer-events: none;
  width: 440px;
  max-width: 75%;
  z-index: 0;
  text-align: center;
}

.proaic-watermark-overlay img {
  width: 100%;
  display: block;
  filter: grayscale(100%);
}

.crm-page-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   PRO AIC INDUSTRIAL WIKI & BLOG COMPONENT STYLES
   Knowledge Base · 340 Engineering Questions · ISA-101 / IEC Standards
   ========================================================================== */

.wiki-page-body {
  background-color: var(--bg-darkest);
  min-height: 100vh;
}

.wiki-main-container {
  padding-top: 100px;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.wiki-hero-section {
  padding: 60px 0 40px;
  background: radial-gradient(circle at 50% 10%, rgba(243, 115, 33, 0.12) 0%, rgba(11, 19, 34, 0.95) 70%);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  position: relative;
}

.wiki-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243, 115, 33, 0.12);
  border: 1px solid rgba(243, 115, 33, 0.35);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-orange);
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.wiki-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-white);
  max-width: 950px;
  margin: 0 auto 16px auto;
  background: linear-gradient(135deg, #ffffff 30%, #cbd5e1 70%, #f37321 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wiki-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto 36px auto;
  line-height: 1.7;
}

.wiki-hero-subtitle strong {
  color: var(--brand-orange-light);
  font-weight: 600;
}

/* Live Search Box */
.wiki-search-wrapper {
  max-width: 780px;
  margin: 0 auto 32px auto;
}

.wiki-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(20, 31, 54, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
}

.wiki-search-box:focus-within {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(243, 115, 33, 0.25), 0 12px 36px rgba(0, 0, 0, 0.5);
  background: rgba(26, 41, 71, 0.95);
}

.wiki-search-box .search-icon {
  font-size: 1.3rem;
  padding-left: 20px;
  color: var(--text-muted);
}

.wiki-search-input {
  width: 100%;
  padding: 16px 18px;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-white);
}

.wiki-search-input::placeholder {
  color: #64748b;
  font-size: 0.92rem;
}

.clear-search-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  padding: 10px 18px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.clear-search-btn:hover {
  color: var(--brand-orange);
}

.wiki-search-stats {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 12px;
}

.wiki-search-stats strong {
  color: var(--brand-orange-light);
}

/* Category Filter Pills */
.wiki-pills-filter-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  max-width: 1100px;
  margin: 0 auto;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-orange) transparent;
}

.wiki-filter-pill {
  white-space: nowrap;
  background: rgba(20, 31, 54, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wiki-filter-pill:hover {
  background: rgba(32, 49, 84, 0.9);
  color: var(--text-white);
  border-color: rgba(243, 115, 33, 0.4);
}

.wiki-filter-pill.active {
  background: linear-gradient(135deg, #f37321, #ff8a3d);
  color: #ffffff;
  border-color: #f37321;
  box-shadow: 0 4px 15px rgba(243, 115, 33, 0.35);
}

/* Layout Grid Container */
.wiki-layout-container {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 36px;
  padding: 40px 20px 80px 20px;
  align-items: start;
}

/* Sidebar TOC */
.wiki-sidebar-toc {
  position: sticky;
  top: 110px;
  z-index: 10;
}

.wiki-toc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.wiki-toc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.wiki-toc-header h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wiki-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: calc(100vh - 340px);
  overflow-y: auto;
  padding-right: 6px;
}

.wiki-toc-nav .toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  line-height: 1.35;
}

.wiki-toc-nav .toc-link:hover {
  background: rgba(243, 115, 33, 0.1);
  color: var(--brand-orange-light);
  transform: translateX(4px);
}

.wiki-toc-nav .toc-link.active {
  background: rgba(243, 115, 33, 0.15);
  color: var(--brand-orange);
  font-weight: 700;
  border-left: 3px solid var(--brand-orange);
}

.wiki-toc-nav .toc-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.12);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
}

.wiki-toc-cta-box {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(22, 34, 59, 0.8), rgba(11, 19, 34, 0.9));
  border: 1px dashed rgba(243, 115, 33, 0.35);
  border-radius: 10px;
  text-align: center;
}

.wiki-toc-cta-box h5 {
  color: var(--text-white);
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.wiki-toc-cta-box p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Content Feed & Module Sections */
.wiki-content-feed {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.wiki-module-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  backdrop-filter: blur(12px);
  transition: border-color var(--transition-fast);
}

.wiki-module-section:hover {
  border-color: rgba(243, 115, 33, 0.3);
}

.wiki-module-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.wiki-module-badge-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.wiki-mod-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(243, 115, 33, 0.15);
  color: var(--brand-orange);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wiki-mod-norm-badge {
  background: rgba(0, 210, 255, 0.12);
  color: var(--cyber-cyan);
  border: 1px solid rgba(0, 210, 255, 0.25);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
}

.wiki-module-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 8px;
}

.wiki-module-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 800px;
}

.wiki-module-header-controls {
  display: flex;
  gap: 8px;
}

.wiki-ctrl-btn {
  background: rgba(20, 31, 54, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wiki-ctrl-btn:hover {
  background: var(--bg-surface-light);
  color: var(--text-white);
  border-color: var(--brand-orange);
}

/* Subsections & Question Cards */
.wiki-subsection {
  margin-bottom: 32px;
}

.wiki-subsection:last-child {
  margin-bottom: 0;
}

.wiki-subsection-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 16px;
  padding-left: 10px;
  border-left: 3px solid var(--brand-orange);
}

.wiki-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wiki-q-card {
  background: rgba(11, 19, 34, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.wiki-q-card:hover {
  border-color: rgba(243, 115, 33, 0.35);
  background: rgba(20, 31, 54, 0.75);
}

.wiki-q-card.active {
  border-color: rgba(243, 115, 33, 0.5);
  background: rgba(20, 31, 54, 0.95);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.wiki-q-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}

.wiki-q-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wiki-q-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-orange);
  background: rgba(243, 115, 33, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}

.wiki-q-text {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  margin: 0;
}

.wiki-q-card.active .wiki-q-text {
  color: #ffffff;
}

.wiki-q-toggle-icon {
  color: var(--text-muted);
  transition: transform var(--transition-normal), color var(--transition-fast);
  flex-shrink: 0;
}

.wiki-q-card.active .wiki-q-toggle-icon {
  transform: rotate(180deg);
  color: var(--brand-orange);
}

/* Question Body */
.wiki-q-body {
  display: none;
  padding: 0 20px 20px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.wiki-q-card.active .wiki-q-body {
  display: block;
  animation: fadeInDown 0.25s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wiki-q-content {
  font-size: 0.93rem;
  color: #cbd5e1;
  line-height: 1.7;
  padding-top: 14px;
}

.wiki-q-content strong {
  color: #ffffff;
  font-weight: 700;
}

.wiki-q-content em {
  color: var(--brand-orange-light);
  font-style: normal;
}

.wiki-q-content pre, 
.wiki-q-content code {
  font-family: 'JetBrains+Mono', var(--font-mono);
  background: #060911;
  color: #38bdf8;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.86rem;
}

.wiki-q-content pre {
  padding: 14px 16px;
  margin: 12px 0;
  border: 1px solid rgba(148, 163, 184, 0.15);
  overflow-x: auto;
  line-height: 1.5;
}

.wiki-q-content pre code {
  background: transparent;
  padding: 0;
  color: #f1f5f9;
}

.wiki-q-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(148, 163, 184, 0.12);
  flex-wrap: wrap;
  gap: 12px;
}

.wiki-q-tag {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.wiki-q-tag .tag-dot {
  color: var(--cyber-green);
  font-size: 0.65rem;
}

.wiki-q-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.wiki-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wiki-action-btn:hover {
  background: rgba(243, 115, 33, 0.15);
  color: var(--brand-orange);
  border-color: var(--brand-orange);
}

.wiki-quote-micro-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-orange);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.wiki-quote-micro-btn:hover {
  color: var(--brand-orange-light);
  text-decoration: underline;
}

/* Module CTA In-Feed Banner */
.wiki-module-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(243, 115, 33, 0.12) 0%, rgba(20, 31, 54, 0.8) 100%);
  border: 1px solid rgba(243, 115, 33, 0.3);
  border-radius: 12px;
  flex-wrap: wrap;
}

.wiki-cta-icon-box {
  font-size: 2.2rem;
}

.wiki-cta-text-box {
  flex: 1;
  min-width: 250px;
}

.wiki-cta-text-box h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.wiki-cta-text-box p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin: 0;
}

.wiki-cta-btn {
  flex-shrink: 0;
  font-size: 0.88rem;
  padding: 10px 20px;
}

/* Toast */
.wiki-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--brand-orange);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   BLOG / WIKI VISUAL ENHANCEMENTS, HERO BANNERS & USER INTERACTIONS
   ========================================================================== */

/* View Mode Switcher (Acordeón vs Modo Estudio) */
.wiki-view-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 19, 34, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 10px 18px;
  margin: 20px 0 28px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.wiki-view-mode-group {
  display: flex;
  gap: 8px;
}

.wiki-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 31, 54, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wiki-view-btn:hover {
  background: rgba(0, 210, 255, 0.12);
  color: var(--cyber-cyan);
  border-color: var(--cyber-cyan);
}

.wiki-view-btn.active {
  background: linear-gradient(135deg, rgba(243, 115, 33, 0.2), rgba(243, 115, 33, 0.35));
  border-color: var(--brand-orange);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(243, 115, 33, 0.25);
}

/* Interactive Tags Cloud */
.wiki-tags-cloud {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.wiki-tag-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wiki-tag-chip {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(0, 210, 255, 0.2);
  color: #94a3b8;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.wiki-tag-chip:hover,
.wiki-tag-chip.active {
  background: rgba(0, 210, 255, 0.18);
  border-color: var(--cyber-cyan);
  color: var(--cyber-cyan);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 210, 255, 0.2);
}

/* Photographic Module Hero Showcase Banner */
.wiki-mod-hero-banner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 26px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.wiki-mod-hero-overlay {
  background: linear-gradient(135deg, rgba(8, 14, 26, 0.92) 0%, rgba(8, 14, 26, 0.75) 60%, rgba(15, 23, 42, 0.88) 100%);
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.wiki-mod-hero-info {
  flex: 1;
  min-width: 280px;
}

.wiki-mod-hero-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wiki-mod-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  color: #e2e8f0;
  font-family: var(--font-mono);
}

.wiki-mod-stat-pill strong {
  color: var(--cyber-cyan);
}

.wiki-protocol-logos-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.wiki-protocol-badge-img {
  height: 20px;
  width: auto;
  filter: brightness(0.9) contrast(1.1);
  opacity: 0.9;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.wiki-protocol-badge-img:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* Callout Boxes inside Questions */
.wiki-callout {
  border-radius: 8px;
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 0.88rem;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.wiki-callout-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.wiki-callout.tip {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid #10b981;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  border-right: 1px solid rgba(16, 185, 129, 0.2);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  color: #e2e8f0;
}

.wiki-callout.tip strong {
  color: #10b981;
}

.wiki-callout.warning {
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid #f59e0b;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  border-right: 1px solid rgba(245, 158, 11, 0.2);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  color: #e2e8f0;
}

.wiki-callout.warning strong {
  color: #f59e0b;
}

.wiki-callout.standard {
  background: rgba(0, 210, 255, 0.08);
  border-left: 4px solid #00d2ff;
  border-top: 1px solid rgba(0, 210, 255, 0.2);
  border-right: 1px solid rgba(0, 210, 255, 0.2);
  border-bottom: 1px solid rgba(0, 210, 255, 0.2);
  color: #e2e8f0;
}

.wiki-callout.standard strong {
  color: #00d2ff;
}

/* Question Action Buttons: Thumbs Up, Bookmark & Tool Link */
.wiki-reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wiki-reaction-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: #10b981;
}

.wiki-reaction-btn.reacted {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #ffffff;
  animation: pulseCard 0.4s ease;
}

.wiki-bookmark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wiki-bookmark-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: #f59e0b;
}

.wiki-bookmark-btn.bookmarked {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.wiki-calc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.12), rgba(0, 210, 255, 0.22));
  border: 1px solid rgba(0, 210, 255, 0.4);
  color: var(--cyber-cyan);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.wiki-calc-chip:hover {
  background: rgba(0, 210, 255, 0.35);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
  transform: translateY(-1px);
}

/* Saved Bookmarks Drawer Bar */
.wiki-saved-bar-toggle {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid #f59e0b;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 9990;
  display: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.wiki-saved-bar-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.3);
}

.wiki-saved-bar-toggle.has-items {
  display: inline-flex;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .wiki-layout-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .wiki-sidebar-toc {
    display: none; /* Hide sticky TOC on tablets/mobiles, rely on horizontal pills */
  }
  .wiki-module-section {
    padding: 24px 20px;
  }
  .wiki-mod-hero-overlay {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .wiki-hero-title {
    font-size: 1.8rem;
  }
  .wiki-hero-subtitle {
    font-size: 0.92rem;
  }
  .wiki-module-title {
    font-size: 1.35rem;
  }
  .wiki-module-header-controls {
    width: 100%;
    justify-content: flex-end;
  }
  .wiki-module-cta-banner {
    flex-direction: column;
    text-align: center;
  }
  .wiki-cta-btn {
    width: 100%;
  }
}

/* ==========================================================================
   PRO AIC INDUSTRIAL ENGINEERING TOOLS & CALCULATORS STYLES
   48 Industrial Calculators · Cyber-Industrial High-Tech Interface
   ========================================================================== */

.tools-page-body {
  background-color: var(--bg-darkest);
  min-height: 100vh;
}

.tools-main-container {
  padding-top: 100px;
  position: relative;
  z-index: 1;
}

/* Tool Filter Tabs */
.tool-filter-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 4px;
  max-width: 1150px;
  margin: 0 auto 30px auto;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-orange) transparent;
}

.tool-filter-pill {
  white-space: nowrap;
  background: rgba(20, 31, 54, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tool-filter-pill:hover {
  background: rgba(32, 49, 84, 0.9);
  color: #ffffff;
  border-color: rgba(243, 115, 33, 0.4);
}

.tool-filter-pill.active {
  background: linear-gradient(135deg, #f37321, #ff8a3d);
  color: #ffffff;
  border-color: #f37321;
  box-shadow: 0 4px 15px rgba(243, 115, 33, 0.35);
}

/* Tools Module Sections */
.eng-tools-module-section {
  margin-bottom: 60px;
  scroll-margin-top: 110px;
}

.eng-mod-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 12px;
}

.eng-mod-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eng-mod-icon {
  font-size: 1.8rem;
  background: rgba(243, 115, 33, 0.12);
  color: var(--brand-orange);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(243, 115, 33, 0.25);
}

.eng-mod-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-white);
  margin: 0;
}

.eng-mod-badge {
  font-size: 0.78rem;
  background: rgba(0, 210, 255, 0.12);
  color: var(--cyber-cyan);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 600;
}

/* Container for Tools & Engineering Suite */
.tools-container {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .tools-container {
    padding: 0 16px;
  }
}

/* Calculators Grid */
.eng-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
  gap: 26px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .eng-calc-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 680px) {
  .eng-calc-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Calculator Card */
.eng-calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
  position: relative;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.eng-calc-card * {
  box-sizing: border-box;
}

.eng-calc-card:hover {
  border-color: rgba(243, 115, 33, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

.eng-calc-card.highlight-pulse {
  border-color: var(--brand-orange);
  animation: pulseCard 1.5s infinite;
}

@keyframes pulseCard {
  0%, 100% { box-shadow: 0 0 15px rgba(243, 115, 33, 0.6); }
  50% { box-shadow: 0 0 30px rgba(243, 115, 33, 0.9); }
}

.eng-calc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.eng-calc-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 4px 0;
  line-height: 1.35;
}

.eng-calc-norm {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--cyber-cyan);
}

.eng-calc-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-orange);
  background: rgba(243, 115, 33, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.eng-calc-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 16px;
}

/* Calculator Form Elements */
.eng-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
}

.eng-form-grid.single-col {
  grid-template-columns: minmax(0, 1fr);
}

.eng-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  width: 100%;
}

.eng-input-group.full-width {
  grid-column: 1 / -1;
}

.eng-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  line-height: 1.25;
  min-width: 0;
}

.eng-label span.unit {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.72rem;
  white-space: nowrap;
}

.eng-input,
.eng-select {
  background: rgba(11, 19, 34, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-white);
  padding: 8px 10px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  outline: none;
  transition: all var(--transition-fast);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.eng-select {
  text-overflow: ellipsis;
  cursor: pointer;
}

.eng-input:focus,
.eng-select:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 2px rgba(243, 115, 33, 0.2);
  background: rgba(20, 31, 54, 0.95);
}

/* Results Display Box */
.eng-result-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(20, 31, 54, 0.88));
  border: 1px solid rgba(0, 210, 255, 0.22);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: auto;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.eng-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.12);
  font-size: 0.82rem;
  min-width: 0;
}

.eng-result-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.eng-res-label {
  color: var(--text-secondary);
  min-width: 0;
  word-break: break-word;
  line-height: 1.3;
  font-size: 0.8rem;
}

.eng-res-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--cyber-cyan);
  font-size: 0.90rem;
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

.eng-res-val.highlight {
  color: var(--brand-orange-light);
  font-size: 0.98rem;
}

.eng-res-val.green {
  color: var(--cyber-green);
}

/* Progress bar for scalers */
.eng-meter-wrapper {
  background: rgba(11, 19, 34, 0.9);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  width: 100%;
}

.eng-meter-fill {
  background: linear-gradient(90deg, #00d2ff, #f37321);
  height: 100%;
  width: 50%;
  transition: width 0.2s ease;
}

/* Bit Packing Interactive Switch Board */
.bit-switch-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  margin: 10px 0;
  width: 100%;
}

.bit-switch-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 4px;
  padding: 6px 2px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all var(--transition-fast);
  min-width: 0;
}

.bit-switch-btn .bit-idx {
  font-size: 0.65rem;
  font-family: var(--font-mono);
}

.bit-switch-btn .bit-val {
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.bit-switch-btn:hover {
  border-color: var(--brand-orange);
}

.bit-switch-btn.active {
  background: linear-gradient(135deg, #f37321, #ff8a3d);
  color: #ffffff;
  border-color: #f37321;
  box-shadow: 0 2px 8px rgba(243, 115, 33, 0.4);
}

/* Code Snippet Box */
.eng-code-box {
  background: #060911;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #38bdf8;
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
}

/* Toast Floating Notification */
.tool-toast-floating {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--brand-orange);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.tool-toast-floating.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   INTERACTIVE VISUALIZERS, GAUGES & REAL-TIME DIAGRAMS
   ========================================================================== */

/* Quick Presets Bar */
.eng-presets-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.eng-preset-label {
  font-size: 0.70rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eng-preset-pill {
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--cyber-cyan);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.eng-preset-pill:hover {
  background: rgba(0, 210, 255, 0.2);
  border-color: var(--cyber-cyan);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Interactive Diagram Wrapper */
.eng-vis-box {
  background: rgba(8, 14, 26, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
  position: relative;
}

/* PID Step Response Canvas */
.pid-canvas-wrapper {
  background: #040812;
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 8px;
  padding: 8px;
  margin: 12px 0;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 210, 255, 0.05);
}

.pid-canvas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.pid-canvas-legend {
  display: flex;
  gap: 10px;
}

.pid-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pid-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pid-legend-dot.sp {
  background: #ef4444;
}

.pid-legend-dot.pv {
  background: #00d2ff;
  box-shadow: 0 0 6px #00d2ff;
}

.pid-canvas-el {
  width: 100%;
  height: 120px;
  display: block;
  border-radius: 4px;
}

/* Hydrostatic Tank SVG Visualizer */
.tank-visualizer-box {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 14px;
  background: #060b17;
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 8px;
  padding: 10px;
  margin: 12px 0;
}

.tank-svg-wrap {
  width: 90px;
  height: 110px;
  position: relative;
}

.tank-level-fluid {
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), y 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  fill: url(#tankGradient);
}

.tank-data-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
}

/* Thermal Cabinet Spinning Fan */
.thermal-fan-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #060b17;
  border: 1px solid rgba(243, 115, 33, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 10px 0;
}

.thermal-fan-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  animation: spinFan 1.5s linear infinite;
}

@keyframes spinFan {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Voltage Drop Traffic Light LED */
.voltage-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: var(--font-mono);
  transition: all 0.3s ease;
}

.voltage-status-pill.ok {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.voltage-status-pill.warn {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.voltage-status-pill.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
  animation: pulseCard 1s infinite;
}

/* Motor Speed Dynamic Tachometer Gauge */
.motor-tacho-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #060b17;
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 10px 0;
}

.motor-tacho-bar-wrap {
  flex-grow: 1;
}

.motor-tacho-bar {
  height: 8px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  margin-top: 4px;
}

.motor-tacho-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #00d2ff, #f37321);
  transition: width 0.3s ease;
}

/* Expandable Formula & Standard Accordion */
.formula-accordion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 8px;
  transition: color var(--transition-fast);
}

.formula-accordion-toggle:hover {
  color: var(--cyber-cyan);
}

.formula-accordion-content {
  display: none;
  background: rgba(4, 8, 18, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 6px;
  font-size: 0.75rem;
  color: #cbd5e1;
  font-family: var(--font-mono);
  line-height: 1.5;
}

.formula-accordion-content.show {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .eng-calc-grid {
    grid-template-columns: 1fr;
  }
  .eng-form-grid {
    grid-template-columns: 1fr;
  }
}






