/* ==========================================================================
   SISTEMAS FÉNIX // ESTILO RETRO-ELECTRÓNICO BINARIO + FUEGO VIVIENTE
   Paleta: Verde Fósforo (#00FF66) + Fuego Viviente (#FF1E00, #FF6A00, #FFEE55)
   ========================================================================== */

:root {
  --bg-deep: #040705;
  --bg-panel: rgba(8, 15, 11, 0.88);
  --bg-panel-solid: #09120d;
  --bg-card: rgba(10, 19, 14, 0.86);
  --bg-card-hover: rgba(24, 14, 9, 0.92);

  --green-neon: #00ff66;
  --green-mid: #00c44f;
  --green-dim: rgba(0, 255, 102, 0.22);
  --green-glow: 0 0 12px rgba(0, 255, 102, 0.55), 0 0 28px rgba(0, 255, 102, 0.2);

  --fire-red: #ff1e00;
  --fire-orange: #ff6a00;
  --fire-amber: #ffae00;
  --fire-yellow: #ffee55;
  --fire-dim: rgba(255, 90, 0, 0.28);
  --fire-glow: 0 0 14px rgba(255, 90, 0, 0.7), 0 0 34px rgba(255, 30, 0, 0.35);

  --text-main: #e6f7ec;
  --text-muted: #8ab098;
  --border-green: rgba(0, 255, 102, 0.34);
  --border-fire: rgba(255, 106, 0, 0.65);

  --font-display: 'Orbitron', 'Share Tech Mono', monospace;
  --font-mono: 'JetBrains Mono', 'Share Tech Mono', monospace;
  --font-retro: 'VT323', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-mono);
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Selección de texto estilo Fénix */
::selection {
  background: var(--fire-orange);
  color: #050806;
}

/* Lienzo de Fondo Binario + Brasas */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Rejilla Cibernética Retro */
.cyber-grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(0, 255, 102, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 90, 0, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, black 35%, transparent 90%);
}

/* Scanlines CRT y Viñeta */
.crt-scanlines {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 15, 6, 0.28) 3px,
    rgba(0, 0, 0, 0.36) 4px
  );
}

.crt-vignette {
  position: fixed;
  inset: 0;
  z-index: 901;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(circle at center, transparent 62%, rgba(0, 0, 0, 0.68) 100%);
}

body.crt-enabled .crt-scanlines,
body.crt-enabled .crt-vignette {
  opacity: 1;
}

/* ==========================================================================
   FUEGO VERDE-ROJO TENUE EN EL CURSOR (CSS)
   ========================================================================== */
.cursor-flame {
  position: fixed;
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  z-index: 850;
  pointer-events: none;
  transform: translate3d(-200px, -200px, 0);
  will-change: transform;
  transition: opacity 0.3s ease;
  opacity: 0.52;
  mix-blend-mode: screen;
}

.cursor-flame.flame-off {
  opacity: 0;
}

.cursor-flame-core {
  position: absolute;
  inset: 14px;
  border-radius: 50% 42% 52% 46%;
  background: radial-gradient(
    circle,
    rgba(255, 70, 15, 0.42) 0%,
    rgba(0, 255, 102, 0.25) 55%,
    transparent 100%
  );
  filter: blur(6px);
  animation: cursorFlamePulse 1.6s infinite alternate ease-in-out;
}

.cursor-flame-wisp {
  position: absolute;
  inset: 6px;
  border-radius: 55% 45% 60% 40%;
  filter: blur(9px);
}

.cursor-flame-wisp.wisp-green {
  background: radial-gradient(circle at 35% 35%, rgba(0, 255, 102, 0.32), transparent 72%);
  animation: wispDrift 2.4s infinite alternate ease-in-out;
}

.cursor-flame-wisp.wisp-red {
  background: radial-gradient(circle at 65% 60%, rgba(255, 35, 0, 0.34), rgba(255, 106, 0, 0.16) 55%, transparent 78%);
  animation: wispDrift 1.9s infinite alternate-reverse ease-in-out;
}

@keyframes cursorFlamePulse {
  0% {
    transform: scale(0.88) rotate(-6deg);
    opacity: 0.72;
  }
  100% {
    transform: scale(1.14) rotate(8deg);
    opacity: 1;
  }
}

@keyframes wispDrift {
  0% {
    transform: translateY(2px) scale(0.92) rotate(0deg);
  }
  100% {
    transform: translateY(-6px) scale(1.08) rotate(18deg);
  }
}

@keyframes spinRing {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   SECUENCIA DE ARRANQUE (BOOT SCREEN)
   ========================================================================== */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: radial-gradient(circle at center, #0a140e 0%, #030504 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.boot-screen.boot-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-terminal {
  width: 100%;
  max-width: 680px;
  background: rgba(6, 12, 9, 0.96);
  border: 1px solid var(--green-neon);
  box-shadow: var(--green-glow), inset 0 0 30px rgba(255, 90, 0, 0.12);
  padding: 1.75rem;
  position: relative;
}

.boot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--border-green);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.boot-chip {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--green-neon);
  color: var(--green-neon);
  background: rgba(0, 255, 102, 0.08);
}

.boot-chip.fire {
  border-color: var(--fire-orange);
  color: var(--fire-amber);
  background: rgba(255, 106, 0, 0.14);
}

.boot-log {
  min-height: 150px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green-neon);
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.boot-progress-wrap {
  margin-bottom: 1.2rem;
}

.boot-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--fire-amber);
  margin-bottom: 0.4rem;
}

.boot-progress-bar {
  width: 100%;
  height: 12px;
  background: #060d09;
  border: 1px solid var(--border-fire);
  overflow: hidden;
}

.boot-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green-neon), var(--fire-amber), var(--fire-red));
  box-shadow: 0 0 12px var(--fire-orange);
  transition: width 0.12s linear;
}

/* ==========================================================================
   UTILIDADES Y TIPOGRAFÍA
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 5;
}

.text-green {
  color: var(--green-neon);
}

.text-green-glow {
  color: var(--green-neon);
  text-shadow: var(--green-glow);
}

.text-fire {
  background: linear-gradient(90deg, var(--fire-yellow), var(--fire-orange), var(--fire-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 90, 0, 0.45));
}

.binary-pill {
  font-size: 0.74rem;
  padding: 0.18rem 0.55rem;
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid var(--green-neon);
  color: var(--green-neon);
  letter-spacing: 1px;
}

/* ==========================================================================
   HEADER HUD & NAVEGACIÓN
   ========================================================================== */
.hud-header {
  position: sticky;
  top: 0;
  z-index: 800;
  background: rgba(4, 8, 6, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-green);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
}

.hud-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 1.5rem;
  background: rgba(0, 20, 9, 0.65);
  border-bottom: 1px solid rgba(0, 255, 102, 0.16);
  font-size: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hud-telemetry {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.telemetry-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.pulse-green {
  background: var(--green-neon);
  box-shadow: 0 0 8px var(--green-neon);
  animation: blinkDot 1.4s infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hud-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hud-ctrl-btn {
  background: rgba(8, 18, 12, 0.9);
  color: var(--text-main);
  border: 1px solid var(--border-green);
  padding: 0.24rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-ctrl-btn:hover,
.hud-ctrl-btn.active-fire {
  border-color: var(--fire-orange);
  color: var(--fire-yellow);
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.35);
  background: rgba(40, 14, 4, 0.85);
}

.hud-ctrl-btn.active-green {
  border-color: var(--green-neon);
  color: var(--green-neon);
}

.hud-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-emblem {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(255, 90, 0, 0.22), rgba(0, 255, 102, 0.14));
  border: 1px solid var(--fire-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--fire-glow);
}

.emblem-icon {
  font-size: 1.45rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.brand-sub {
  font-size: 0.66rem;
  color: var(--green-neon);
  letter-spacing: 0.8px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.45rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-hex {
  color: var(--green-neon);
  font-size: 0.7rem;
  opacity: 0.85;
}

.nav-link:hover {
  border-color: var(--green-neon);
  background: rgba(0, 255, 102, 0.08);
  color: var(--green-neon);
}

.nav-link.nav-cta {
  border-color: var(--fire-orange);
  background: linear-gradient(90deg, rgba(255, 90, 0, 0.22), rgba(255, 30, 0, 0.3));
  color: var(--fire-yellow);
  box-shadow: 0 0 12px rgba(255, 90, 0, 0.3);
}

.nav-link.nav-cta:hover {
  background: linear-gradient(90deg, var(--fire-orange), var(--fire-red));
  color: #050806;
  font-weight: 700;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--green-neon);
  color: var(--green-neon);
  padding: 0.4rem 0.75rem;
  font-family: var(--font-mono);
  cursor: pointer;
}

/* ==========================================================================
   BOTONES RETRO-ELECTRÓNICOS
   ========================================================================== */
.btn-fire,
.btn-terminal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.45rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.6px;
  transition: all 0.22s ease;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-fire {
  background: linear-gradient(135deg, var(--fire-amber) 0%, var(--fire-orange) 45%, var(--fire-red) 100%);
  color: #060907;
  border: 1px solid var(--fire-yellow);
  box-shadow: var(--fire-glow);
}

.btn-fire:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 0 22px rgba(255, 120, 0, 0.9), 0 0 40px rgba(0, 255, 102, 0.4);
}

.btn-terminal {
  background: rgba(0, 255, 102, 0.09);
  color: var(--green-neon);
  border: 1px solid var(--green-neon);
  box-shadow: inset 0 0 12px rgba(0, 255, 102, 0.15);
}

.btn-terminal:hover {
  background: var(--green-neon);
  color: #040806;
  box-shadow: var(--green-glow);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.48rem 0.9rem;
  font-size: 0.78rem;
}

.full-width {
  width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 4.2rem 1.5rem 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2.8rem;
  align-items: center;
}

.terminal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid var(--border-green);
  border-left: 3px solid var(--fire-orange);
  font-size: 0.78rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.badge-prefix {
  color: var(--green-neon);
  font-weight: 700;
}

.badge-fire {
  color: var(--fire-amber);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 1.25rem;
  letter-spacing: 1px;
}

.glitch-fire {
  position: relative;
  display: inline-block;
  color: var(--fire-amber);
  text-shadow: 0 0 14px var(--fire-red), 2px 0 0 var(--green-neon);
  animation: fireGlitch 3.5s infinite;
}

@keyframes fireGlitch {
  0%, 92%, 100% {
    transform: translate(0);
    text-shadow: 0 0 14px var(--fire-red), 2px 0 0 var(--green-neon);
  }
  94% {
    transform: translate(-2px, 1px);
    text-shadow: -3px 0 var(--fire-red), 3px -1px var(--green-neon);
  }
  96% {
    transform: translate(2px, -1px);
    text-shadow: 3px 1px var(--fire-yellow), -3px 0 var(--green-neon);
  }
}

.hero-description {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 1.85rem;
  max-width: 640px;
}

.hero-description strong {
  color: var(--text-main);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.3rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-green);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.metric-card:hover {
  border-color: var(--fire-orange);
  transform: translateY(-3px);
}

.metric-code {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0.15rem 0;
}

.metric-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Reactor Visual en el Hero */
.reactor-frame {
  background: var(--bg-panel);
  border: 1px solid var(--border-green);
  box-shadow: var(--green-glow), inset 0 0 40px rgba(255, 80, 0, 0.12);
  overflow: hidden;
}

.frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(0, 255, 102, 0.08);
  border-bottom: 1px solid var(--border-green);
  font-size: 0.75rem;
}

.frame-dots {
  display: flex;
  gap: 6px;
}

.frame-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: var(--fire-red); box-shadow: 0 0 6px var(--fire-red); }
.dot-amber { background: var(--fire-amber); box-shadow: 0 0 6px var(--fire-amber); }
.dot-green { background: var(--green-neon); box-shadow: 0 0 6px var(--green-neon); }

.reactor-stage {
  height: 310px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(255, 80, 0, 0.2) 0%, rgba(0, 255, 102, 0.06) 52%, transparent 75%);
}

.reactor-ring {
  position: absolute;
  border-radius: 50%;
}

.ring-outer {
  width: 245px;
  height: 245px;
  border: 1.5px dashed var(--green-neon);
  animation: spinRing 18s linear infinite;
}

.ring-middle {
  width: 190px;
  height: 190px;
  border: 2px solid rgba(255, 106, 0, 0.65);
  border-left-color: transparent;
  border-right-color: transparent;
  animation: spinRing 8s linear infinite reverse;
}

.ring-inner {
  width: 136px;
  height: 136px;
  border: 1.5px dotted var(--fire-yellow);
  animation: spinRing 5s linear infinite;
}

.reactor-center {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a0800 0%, #07120b 85%);
  border: 2px solid var(--fire-orange);
  box-shadow: var(--fire-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Llamas CSS Vivientes en el núcleo */
.flame-layers {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  pointer-events: none;
}

.flame {
  position: absolute;
  inset: 0;
  border-radius: 50% 42% 54% 46%;
  mix-blend-mode: screen;
  opacity: 0.65;
}

.flame.f1 {
  border: 2px solid var(--fire-red);
  animation: spinRing 2.6s linear infinite;
}

.flame.f2 {
  border: 2px solid var(--fire-orange);
  animation: spinRing 3.4s linear infinite reverse;
}

.flame.f3 {
  border: 1.5px solid var(--green-neon);
  animation: spinRing 4.2s linear infinite;
}

.reactor-symbol {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--fire-yellow);
  text-shadow: 0 0 10px var(--fire-red);
}

.reactor-sub {
  font-size: 0.58rem;
  color: var(--green-neon);
  letter-spacing: 1px;
}

.node-tag {
  position: absolute;
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  background: rgba(5, 12, 8, 0.9);
  border: 1px solid var(--border-green);
  color: var(--green-neon);
}

.pos-tl { top: 14px; left: 14px; }
.pos-tr { top: 14px; right: 14px; border-color: var(--fire-orange); color: var(--fire-amber); }
.pos-bl { bottom: 14px; left: 14px; border-color: var(--fire-orange); color: var(--fire-amber); }
.pos-br { bottom: 14px; right: 14px; }

.reactor-console {
  padding: 0.85rem 1rem;
  background: rgba(3, 7, 5, 0.95);
  border-top: 1px solid var(--border-green);
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.c-green { color: var(--green-neon); font-weight: 700; }
.c-fire { color: var(--fire-orange); font-weight: 700; }

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */
section {
  padding: 4.5rem 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.8rem;
}

.section-eyebrow {
  color: var(--green-neon);
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ==========================================================================
   CATÁLOGO DE SERVICIOS (TARJETAS DE CIRCUITO / FUEGO)
   ========================================================================== */
.service-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.4rem;
}

.filter-btn {
  background: rgba(8, 16, 11, 0.85);
  border: 1px solid var(--border-green);
  color: var(--text-muted);
  padding: 0.55rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--fire-orange);
  color: var(--fire-yellow);
  background: rgba(255, 90, 0, 0.16);
  box-shadow: var(--fire-glow);
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-green);
  padding: 1.6rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.28s ease;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--green-neon), var(--fire-orange), var(--fire-red));
  opacity: 0.75;
  transition: height 0.25s ease, opacity 0.25s ease;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--fire-orange);
  transform: translateY(-5px);
  box-shadow: var(--fire-glow);
}

.service-card:hover::before {
  height: 5px;
  opacity: 1;
}

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.service-code {
  font-size: 0.74rem;
  color: var(--green-neon);
  border: 1px solid var(--border-green);
  padding: 0.15rem 0.55rem;
  background: rgba(0, 255, 102, 0.08);
}

.service-power {
  font-size: 0.72rem;
  color: var(--fire-amber);
}

.service-icon-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.service-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 90, 0, 0.14);
  border: 1px solid var(--fire-orange);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-main);
}

.service-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.service-features {
  list-style: none;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.service-features li {
  font-size: 0.82rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.service-features li::before {
  content: '01>';
  color: var(--green-neon);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 2px;
}

.service-card:hover .service-features li::before {
  content: '🔥>';
  color: var(--fire-amber);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.3rem;
}

.tech-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  background: rgba(0, 255, 102, 0.07);
  border: 1px solid rgba(0, 255, 102, 0.25);
  color: var(--green-neon);
}

.service-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(0, 255, 102, 0.22);
}

/* ==========================================================================
   CONSOLA DE DIAGNÓSTICO INTERACTIVO
   ========================================================================== */
.diagnostic-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.8rem;
  align-items: stretch;
}

.symptom-panel,
.terminal-window {
  background: var(--bg-panel);
  border: 1px solid var(--border-green);
  display: flex;
  flex-direction: column;
}

.panel-header-bar,
.terminal-topbar {
  padding: 0.7rem 1rem;
  background: rgba(0, 255, 102, 0.08);
  border-bottom: 1px solid var(--border-green);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.symptom-list {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.symptom-btn {
  width: 100%;
  text-align: left;
  background: rgba(10, 20, 14, 0.85);
  border: 1px solid rgba(0, 255, 102, 0.28);
  padding: 0.8rem 0.95rem;
  color: var(--text-main);
  font-family: var(--font-mono);
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  transition: all 0.2s ease;
}

.symptom-btn:hover,
.symptom-btn.active {
  border-color: var(--fire-orange);
  background: rgba(40, 15, 6, 0.85);
  box-shadow: inset 3px 0 0 var(--fire-orange);
}

.symptom-code {
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
  background: rgba(255, 90, 0, 0.18);
  border: 1px solid var(--fire-orange);
  color: var(--fire-yellow);
  flex-shrink: 0;
}

.symptom-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.symptom-info strong {
  font-size: 0.86rem;
  color: var(--text-main);
}

.symptom-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-title {
  color: var(--green-neon);
  font-size: 0.78rem;
}

.terminal-clear-btn {
  background: transparent;
  border: 1px solid var(--border-green);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  cursor: pointer;
}

.terminal-clear-btn:hover {
  border-color: var(--fire-orange);
  color: var(--fire-amber);
}

.terminal-output {
  flex: 1;
  min-height: 360px;
  max-height: 430px;
  overflow-y: auto;
  padding: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: rgba(3, 7, 5, 0.94);
}

.term-line {
  line-height: 1.5;
  word-break: break-word;
}

.term-box {
  margin-top: 0.4rem;
  padding: 0.75rem;
  border: 1px dashed var(--fire-orange);
  background: rgba(255, 80, 0, 0.08);
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-green);
  background: rgba(6, 13, 9, 0.96);
}

.terminal-prompt {
  color: var(--green-neon);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--fire-yellow);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}

/* ==========================================================================
   EL CICLO DEL FÉNIX (TIMELINE)
   ========================================================================== */
.cycle-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.cycle-step {
  background: var(--bg-card);
  border: 1px solid var(--border-green);
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.cycle-step:hover {
  border-color: var(--fire-orange);
  transform: translateY(-4px);
  box-shadow: var(--fire-glow);
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.step-binary {
  font-family: var(--font-retro);
  font-size: 1.8rem;
  color: var(--green-neon);
  letter-spacing: 2px;
}

.step-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--green-neon);
  color: var(--green-neon);
}

.step-tag.fire {
  border-color: var(--fire-orange);
  color: var(--fire-amber);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
  color: var(--text-main);
}

.step-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.step-footer {
  font-size: 0.72rem;
  color: var(--fire-amber);
  border-top: 1px dashed rgba(255, 106, 0, 0.35);
  padding-top: 0.65rem;
}

/* ==========================================================================
   CASOS DE ÉXITO ("SISTEMAS RENACIDOS")
   ========================================================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-green);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.case-card:hover {
  border-color: var(--fire-orange);
  box-shadow: var(--fire-glow);
}

.case-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 90, 0, 0.14);
  border: 1px solid var(--fire-orange);
  color: var(--fire-amber);
  margin-bottom: 0.75rem;
}

.case-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin-bottom: 1rem;
}

.case-comparison {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.case-before,
.case-after {
  padding: 0.75rem;
  font-size: 0.82rem;
}

.case-before {
  background: rgba(255, 30, 0, 0.08);
  border-left: 3px solid var(--fire-red);
  color: var(--text-muted);
}

.case-after {
  background: rgba(0, 255, 102, 0.08);
  border-left: 3px solid var(--green-neon);
  color: var(--text-main);
}

.comp-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: 0.8px;
}

.case-before .comp-label { color: var(--fire-orange); }
.case-after .comp-label { color: var(--green-neon); }

.case-metrics {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--fire-yellow);
  border-top: 1px dashed var(--border-green);
  padding-top: 0.75rem;
}

/* ==========================================================================
   COTIZADOR & MANIFIESTO DE ORDEN
   ========================================================================== */
.quote-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.quote-form,
.quote-preview-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-green);
  padding: 1.6rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  color: var(--green-neon);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.quote-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.quote-check-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.75rem;
  background: rgba(10, 20, 14, 0.9);
  border: 1px solid rgba(0, 255, 102, 0.25);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.quote-check-item:hover,
.quote-check-item.checked {
  border-color: var(--fire-orange);
  background: rgba(45, 16, 6, 0.85);
  color: var(--fire-yellow);
}

.quote-check-item input {
  accent-color: var(--fire-orange);
  width: 16px;
  height: 16px;
}

.form-control {
  width: 100%;
  background: rgba(4, 10, 7, 0.95);
  border: 1px solid var(--border-green);
  color: var(--text-main);
  padding: 0.7rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--fire-orange);
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.35);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--border-green);
  font-size: 0.82rem;
  color: var(--fire-amber);
}

.preview-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 0.35rem 0;
  border-bottom: 1px dotted rgba(0, 255, 102, 0.15);
}

.p-key { color: var(--text-muted); }
.p-val { font-weight: 700; text-align: right; }

.preview-divider {
  margin: 1rem 0 0.6rem;
  font-size: 0.75rem;
  color: var(--green-neon);
  letter-spacing: 1px;
}

.prev-modules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  min-height: 75px;
}

.prev-modules-list li {
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 90, 0, 0.12);
  border-left: 3px solid var(--fire-orange);
  display: flex;
  justify-content: space-between;
}

.preview-summary-box {
  background: rgba(3, 8, 5, 0.95);
  border: 1px solid var(--border-fire);
  padding: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.8rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   MODAL Y TOAST
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(2, 5, 3, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-window {
  width: 100%;
  max-width: 680px;
  background: var(--bg-panel-solid);
  border: 1px solid var(--fire-orange);
  box-shadow: var(--fire-glow);
  padding: 1.6rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-green);
  margin-bottom: 1.1rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  flex: 1;
}

.modal-close {
  background: transparent;
  border: 1px solid var(--fire-orange);
  color: var(--fire-amber);
  padding: 0.25rem 0.6rem;
  font-family: var(--font-mono);
  cursor: pointer;
}

.modal-body {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.sys-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1800;
  background: rgba(8, 16, 11, 0.96);
  border: 1px solid var(--fire-orange);
  border-left: 4px solid var(--green-neon);
  color: var(--text-main);
  padding: 0.85rem 1.2rem;
  font-size: 0.84rem;
  box-shadow: var(--fire-glow);
  max-width: 380px;
}

.sys-toast.hidden {
  display: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.hud-footer {
  background: rgba(3, 6, 4, 0.96);
  border-top: 1px solid var(--border-green);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
  position: relative;
  z-index: 5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin: 0.65rem 0;
  max-width: 420px;
}

.footer-binary {
  font-size: 0.72rem;
  color: var(--green-neon);
  letter-spacing: 1px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--fire-amber);
  margin-bottom: 0.8rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col a,
.link-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.84rem;
  background: none;
  border: none;
  font-family: var(--font-mono);
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.footer-col a:hover,
.link-btn:hover {
  color: var(--green-neon);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.2rem;
  border-top: 1px dashed rgba(0, 255, 102, 0.2);
  font-size: 0.76rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .diagnostic-layout,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .cycle-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .hide-tablet {
    display: none;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 10, 7, 0.98);
    border-bottom: 1px solid var(--fire-orange);
    flex-direction: column;
    padding: 1rem;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .cycle-timeline,
  .quote-checkbox-grid,
  .form-row-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hide-mobile {
    display: none;
  }
}


/* ==========================================================================
   AUTENTICACIÓN (GOOGLE OAUTH + REGISTRO CON CORREO) & HUD DE USUARIO
   ========================================================================== */
.hidden {
  display: none !important;
}

.auth-hud-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.user-Session-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.65rem;
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid var(--border-green);
  font-size: 0.74rem;
  color: var(--text-main);
}

.role-badge {
  font-size: 0.65rem;
  padding: 0.08rem 0.4rem;
  background: rgba(0, 255, 102, 0.18);
  color: var(--green-neon);
  border: 1px solid var(--green-neon);
  font-weight: 700;
}

.role-badge.is-admin {
  background: rgba(255, 90, 0, 0.25);
  color: var(--fire-yellow);
  border-color: var(--fire-orange);
}

.notif-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--fire-red);
  color: #fff;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 800;
}

.nav-admin-link {
  border-color: var(--fire-orange) !important;
  color: var(--fire-yellow) !important;
  background: rgba(255, 90, 0, 0.12);
}

.auth-modal-window,
.google-chooser-window {
  max-width: 540px;
}

.service-editor-window {
  max-width: 780px;
  max-height: 92vh;
  overflow-y: auto;
}

.btn-google-oauth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.82rem 1.2rem;
  background: #ffffff;
  color: #111613;
  border: 2px solid var(--green-neon);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-google-oauth:hover {
  background: #f2fff7;
  box-shadow: 0 0 18px rgba(0, 255, 102, 0.65);
  transform: translateY(-1px);
}

.gsi-official-container {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.auth-divider {
  text-align: center;
  margin: 1.1rem 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  position: relative;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.auth-tab-btn {
  background: rgba(8, 18, 12, 0.9);
  border: 1px solid var(--border-green);
  color: var(--text-muted);
  padding: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  border-color: var(--fire-orange);
  background: rgba(255, 90, 0, 0.18);
  color: var(--fire-yellow);
  font-weight: 700;
}

.auth-pane.hidden {
  display: none;
}

.auth-error-box {
  background: rgba(255, 30, 0, 0.16);
  border: 1px solid var(--fire-red);
  color: #ffb3a7;
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  margin-bottom: 0.9rem;
}

.demo-credentials-box {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border-green);
}

.demo-title {
  display: block;
  font-size: 0.72rem;
  color: var(--green-neon);
  margin-bottom: 0.5rem;
}

.demo-btns-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* Selector de Cuentas Google */
.google-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.google-account-item {
  width: 100%;
  background: rgba(10, 22, 16, 0.92);
  border: 1px solid var(--border-green);
  padding: 0.75rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-main);
  font-family: var(--font-mono);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.google-account-item:hover {
  border-color: var(--fire-orange);
  background: rgba(40, 16, 8, 0.9);
}

.g-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.g-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.g-info strong {
  font-size: 0.86rem;
}

.g-info span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PANEL ADMINISTRATIVO (GESTIÓN DE SERVICIOS, PRECIOS Y COTIZACIONES)
   ========================================================================== */
.admin-section {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

.admin-console-frame {
  background: rgba(7, 14, 10, 0.95);
  border: 2px solid var(--fire-orange);
  box-shadow: var(--fire-glow), inset 0 0 35px rgba(0, 255, 102, 0.08);
  padding: 1.75rem;
}

.admin-console-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-green);
  margin-bottom: 1.4rem;
}

.admin-console-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.admin-header-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-kpi-card {
  background: rgba(12, 24, 17, 0.9);
  border: 1px solid var(--border-green);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0.2rem 0;
}

.kpi-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--border-green);
  padding-bottom: 0.8rem;
}

.admin-tab-btn {
  background: rgba(10, 20, 14, 0.9);
  border: 1px solid var(--border-green);
  color: var(--text-muted);
  padding: 0.6rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.admin-tab-btn.active,
.admin-tab-btn:hover {
  border-color: var(--fire-orange);
  color: var(--fire-yellow);
  background: rgba(255, 90, 0, 0.18);
  font-weight: 700;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 255, 102, 0.05);
  border: 1px dashed var(--border-green);
}

.admin-help-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.admin-toolbar-btns,
.admin-filter-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Lista Administrativa de Servicios */
.admin-services-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-service-row {
  background: rgba(10, 20, 14, 0.92);
  border: 1px solid var(--border-green);
  padding: 1rem 1.2rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr auto;
  gap: 1rem;
  align-items: center;
}

.admin-service-row.is-inactive {
  opacity: 0.58;
  border-style: dashed;
}

.admin-srv-main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.admin-srv-info h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.admin-srv-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-srv-price-box {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.quick-price-row {
  display: flex;
  gap: 0.4rem;
}

.quick-price-input {
  background: #040906;
  border: 1px solid var(--border-fire);
  color: var(--fire-yellow);
  padding: 0.35rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  width: 190px;
}

.admin-srv-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

/* Lista Administrativa de Cotizaciones / Mensajes */
.admin-quotes-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.admin-quote-card {
  background: rgba(10, 19, 14, 0.94);
  border: 1px solid var(--border-green);
  border-left: 4px solid var(--fire-orange);
  padding: 1.25rem;
}

.admin-quote-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(0, 255, 102, 0.22);
  margin-bottom: 0.85rem;
}

.quote-status-pill {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--green-neon);
}

.status-pendiente { background: rgba(255, 30, 0, 0.2); border-color: var(--fire-red); color: #ff9e8f; }
.status-en_revision { background: rgba(255, 174, 0, 0.2); border-color: var(--fire-amber); color: var(--fire-yellow); }
.status-cotizado { background: rgba(0, 255, 102, 0.18); border-color: var(--green-neon); color: var(--green-neon); }
.status-completado { background: rgba(0, 200, 255, 0.18); border-color: #00d9ff; color: #8beeff; }
.status-cancelado { background: rgba(120, 120, 120, 0.2); border-color: #777; color: #aaa; }

.admin-quote-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.25rem;
}

.admin-quote-details p {
  font-size: 0.83rem;
  margin-bottom: 0.35rem;
}

.admin-quote-controls {
  background: rgba(4, 9, 6, 0.9);
  border: 1px solid rgba(255, 106, 0, 0.35);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Usuarios y Configuración Google */
.admin-users-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.4rem;
}

.admin-subtitle {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--green-neon);
  margin-bottom: 0.85rem;
}

.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.admin-user-row {
  background: rgba(10, 20, 14, 0.9);
  border: 1px solid var(--border-green);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

/* Historial del cliente en el cotizador */
.my-quotes-box {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--border-green);
}

.my-quotes-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 250px;
  overflow-y: auto;
}

.my-quote-item {
  background: rgba(6, 14, 10, 0.92);
  border: 1px solid var(--border-green);
  padding: 0.65rem 0.8rem;
  font-size: 0.78rem;
}

@media (max-width: 1024px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-service-row,
  .admin-quote-body,
  .admin-users-layout,
  .form-row-3 {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   EDITOR ADMINISTRATIVO DEL BANNER PRINCIPAL & BARRA RÁPIDA EN HERO
   ========================================================================== */
.hero-admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 90, 0, 0.14);
  border: 1px dashed var(--fire-orange);
  font-size: 0.78rem;
  color: var(--fire-yellow);
}

.hero-grid.single-col {
  grid-template-columns: 1fr;
  max-width: 920px;
}

.banner-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

.banner-editor-box {
  background: rgba(10, 20, 14, 0.9);
  border: 1px solid var(--border-green);
  padding: 1.15rem;
}

.bn-metrics-editor-list,
.bn-nodes-editor-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.bn-metric-row {
  display: grid;
  grid-template-columns: auto 82px 95px 1fr 90px auto;
  gap: 0.45rem;
  align-items: center;
  background: rgba(5, 11, 8, 0.92);
  border: 1px solid rgba(0, 255, 102, 0.25);
  padding: 0.5rem 0.65rem;
}

.bn-metric-row.is-hidden {
  opacity: 0.52;
  border-style: dashed;
}

.bn-node-row {
  display: grid;
  grid-template-columns: auto 95px 1fr;
  gap: 0.55rem;
  align-items: center;
  background: rgba(5, 11, 8, 0.92);
  border: 1px solid rgba(255, 106, 0, 0.28);
  padding: 0.45rem 0.65rem;
}

.bn-node-row.is-hidden {
  opacity: 0.52;
  border-style: dashed;
}

.bn-mini-input {
  width: 100%;
  background: #030705;
  border: 1px solid var(--border-green);
  color: var(--text-main);
  padding: 0.35rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

@media (max-width: 1024px) {
  .banner-editor-grid {
    grid-template-columns: 1fr;
  }
  .bn-metric-row {
    grid-template-columns: 1fr 1fr;
  }
}


/* ==========================================================================
   EDITOR ADMINISTRATIVO DEL NAVBAR / BARRA DE OPCIONES
   ========================================================================== */
.nv-items-editor-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.nv-item-row {
  background: rgba(5, 11, 8, 0.94);
  border: 1px solid rgba(0, 255, 102, 0.28);
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nv-item-row.is-hidden {
  opacity: 0.52;
  border-style: dashed;
}

.nv-item-top-inputs {
  display: grid;
  grid-template-columns: 75px 1fr 1fr auto;
  gap: 0.45rem;
  align-items: center;
}

.nv-item-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  font-size: 0.74rem;
  color: var(--text-muted);
  padding-top: 0.35rem;
  border-top: 1px dotted rgba(0, 255, 102, 0.16);
}

.nv-item-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nv-item-toggles input[type='checkbox'] {
  accent-color: var(--fire-orange);
}

@media (max-width: 768px) {
  .nv-item-top-inputs {
    grid-template-columns: 1fr 1fr;
  }
}
