/* =====================================================================
   ROJU SYSTEMS — Tron Executive (overrides Bootstrap 5.3)
   80s tech nostalgia for B2B 50-70 demo
   Paleta: Vintage Cream + IBM Blue + Atari Orange (light)
           Deep Space Navy + Phosphor Cyan + Atari Orange (dark)
   ===================================================================== */

/* ====== Fuentes ====== */
:root {
  --font-display: 'Chakra Petch', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --font-vt: 'VT323', 'Courier New', monospace;

  /* ====== MODO CLARO (default) ====== */
  --roju-bg: #FAF7F0;            /* Vintage cream */
  --roju-fg: #1A1F3A;            /* Deep navy text */
  --roju-card: #FFFFFF;
  --roju-primary: #0033A0;       /* IBM Blue */
  --roju-primary-fg: #FAF7F0;
  --roju-accent: #E55934;         /* Atari Orange */
  --roju-accent-fg: #FAF7F0;
  --roju-muted: #6B6354;
  --roju-border: #D8D2C4;
  --roju-tron: #0085A2;
  --roju-tron-glow: rgba(0, 133, 162, 0.20);
  --roju-grid-line: rgba(0, 51, 160, 0.07);
  --roju-scanline: rgba(0, 0, 0, 0.025);
  --roju-rainbow: linear-gradient(90deg, #FF6B35 0%, #FFD23F 25%, #4ADE80 50%, #00D9FF 75%, #B47CFF 100%);
}

/* ====== MODO OSCURO ====== */
[data-bs-theme="dark"] {
  --roju-bg: #0A0E27;
  --roju-fg: #E8F1FF;
  --roju-card: #131838;
  --roju-primary: #00D9FF;
  --roju-primary-fg: #0A0E27;
  --roju-accent: #FF6B35;
  --roju-accent-fg: #0A0E27;
  --roju-muted: #8B97C7;
  --roju-border: #2A3270;
  --roju-tron: #00D9FF;
  --roju-tron-glow: rgba(0, 217, 255, 0.40);
  --roju-grid-line: rgba(0, 217, 255, 0.10);
  --roju-scanline: rgba(0, 0, 0, 0.15);
}

/* ====== Bootstrap overrides ====== */
body {
  background: var(--roju-bg);
  color: var(--roju-fg);
  font-family: var(--font-body);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}

[data-bs-theme="dark"] body {
  background: var(--roju-bg);
  color: var(--roju-fg);
}

::selection {
  background: var(--roju-accent);
  color: var(--roju-accent-fg);
}
[data-bs-theme="dark"] ::selection {
  background: var(--roju-primary);
  color: var(--roju-primary-fg);
}

/* ====== Tipografía utilitaria ====== */
.font-display { font-family: var(--font-display) !important; }
.font-mono { font-family: var(--font-mono) !important; }
.font-vt { font-family: var(--font-vt) !important; }
.text-primary { color: var(--roju-primary) !important; }
.text-accent { color: var(--roju-accent) !important; }
.text-muted { color: var(--roju-muted) !important; }
.bg-primary { background-color: var(--roju-primary) !important; color: var(--roju-primary-fg) !important; }
.bg-accent { background-color: var(--roju-accent) !important; color: var(--roju-accent-fg) !important; }
.bg-roju-card { background: var(--roju-card) !important; }
.maxw-md { max-width: 32rem; }
.maxw-lg { max-width: 48rem; }
.hover-primary:hover { color: var(--roju-primary) !important; }
.leading-none { line-height: 1; }
.lh-lg { line-height: 1.7; }

/* ====== Header ====== */
.roju-header {
  background: color-mix(in srgb, var(--roju-bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--roju-border);
  z-index: 1030;
}

.roju-brand-logo {
  height: 40px;
  width: 40px;
  border-radius: 6px;
  object-fit: cover;
  filter: drop-shadow(0 0 6px var(--roju-tron-glow));
  transition: transform 0.2s ease;
}
.roju-brand-logo:hover { transform: scale(1.06); }

.roju-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.roju-brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--roju-muted);
  margin-top: 2px;
}

.roju-nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--roju-muted) !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 6px;
  transition: all 0.2s;
}
.roju-nav-link:hover {
  color: var(--roju-fg) !important;
  background: color-mix(in srgb, var(--roju-primary) 8%, transparent);
}

/* Theme toggle: show only active icon */
.sun-icon, .moon-icon { transition: opacity 0.2s, transform 0.2s; }
[data-bs-theme="light"] .sun-icon { display: none; }
[data-bs-theme="light"] .moon-icon { display: inline-block; color: var(--roju-fg); }
[data-bs-theme="dark"] .sun-icon { display: inline-block; color: var(--roju-primary); }
[data-bs-theme="dark"] .moon-icon { display: none; }

.btn-ghost-icon {
  background: transparent;
  border: 1px solid transparent;
  color: var(--roju-fg);
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.2s;
}
.btn-ghost-icon:hover {
  background: color-mix(in srgb, var(--roju-primary) 10%, transparent);
  color: var(--roju-primary);
  border-color: color-mix(in srgb, var(--roju-primary) 30%, transparent);
}

.btn-roju-cta {
  background: var(--roju-primary);
  color: var(--roju-primary-fg) !important;
  border: none;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-roju-cta:hover {
  background: color-mix(in srgb, var(--roju-primary) 90%, black);
  color: var(--roju-primary-fg) !important;
  box-shadow: 0 0 0 2px var(--roju-tron), 0 0 20px var(--roju-tron-glow);
}

.btn-primary {
  background: var(--roju-primary);
  color: var(--roju-primary-fg);
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--roju-primary) 88%, black);
  color: var(--roju-primary-fg);
  box-shadow: 0 0 20px var(--roju-tron-glow);
}

.btn-outline-primary {
  border-color: color-mix(in srgb, var(--roju-primary) 50%, transparent);
  color: var(--roju-fg);
  font-family: var(--font-display);
}
.btn-outline-primary:hover {
  background: color-mix(in srgb, var(--roju-primary) 8%, transparent);
  color: var(--roju-primary);
  border-color: var(--roju-primary);
}

/* ====== Rainbow stripe ====== */
.rainbow-stripe-top {
  height: 3px;
  width: 100%;
  background: var(--roju-rainbow);
}

/* ====== Tron grid background ====== */
.tron-grid-bg {
  background-image:
    linear-gradient(var(--roju-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--roju-grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
}

/* ====== Scanlines overlay ====== */
.scanlines { position: relative; }
.scanlines::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    var(--roju-scanline) 0px,
    var(--roju-scanline) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 1;
}

/* ====== Neon text/box ====== */
.neon-text {
  text-shadow: 0 0 8px var(--roju-tron-glow), 0 0 16px var(--roju-tron-glow);
}
[data-bs-theme="dark"] .neon-text {
  text-shadow: 0 0 10px var(--roju-tron-glow), 0 0 20px var(--roju-tron-glow), 0 0 40px rgba(0, 217, 255, 0.25);
}
.neon-box {
  box-shadow: 0 0 0 1px var(--roju-tron), 0 0 12px var(--roju-tron-glow), inset 0 0 12px rgba(0, 217, 255, 0.05);
}

/* ====== Shimmer text (hero) ====== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-text {
  background: linear-gradient(90deg,
    var(--roju-fg) 0%,
    var(--roju-tron) 25%,
    var(--roju-fg) 50%,
    var(--roju-accent) 75%,
    var(--roju-fg) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

/* ====== Terminal cursor ====== */
.terminal-cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.05em;
  background: var(--roju-tron);
  vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ====== Hero pulse ====== */
@keyframes hero-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}
.hero-pulse { animation: hero-pulse 4s ease-in-out infinite; }

/* ====== Marquee ====== */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

/* ====== Custom scrollbar ====== */
.custom-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.custom-scroll::-webkit-scrollbar-track { background: color-mix(in srgb, var(--roju-primary) 5%, transparent); }
.custom-scroll::-webkit-scrollbar-thumb { background: var(--roju-primary); border-radius: 4px; }

/* ====== Card ====== */
.card {
  background: var(--roju-card);
  border: 1px solid var(--roju-border);
  color: var(--roju-fg);
  border-radius: 0.5rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: color-mix(in srgb, var(--roju-primary) 40%, var(--roju-border)); }
.card-header, .card-footer { border-color: var(--roju-border); }
.form-control, .form-select {
  background: var(--roju-card);
  border: 1px solid var(--roju-border);
  color: var(--roju-fg);
}
.form-control:focus, .form-select:focus {
  border-color: var(--roju-primary);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--roju-primary) 18%, transparent);
  background: var(--roju-card);
  color: var(--roju-fg);
}
.form-control::placeholder { color: var(--roju-muted); }
.form-label { color: var(--roju-fg); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ====== Hero section ====== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}
@media (min-width: 768px) {
  .hero-section { padding: 6rem 0; }
}
.hero-terminal {
  background: var(--roju-card);
  border: 1px solid color-mix(in srgb, var(--roju-primary) 30%, var(--roju-border));
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
}
.hero-terminal-bar {
  background: color-mix(in srgb, var(--roju-primary) 8%, var(--roju-card));
  border-bottom: 1px solid var(--roju-border);
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-terminal-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-terminal-bar .dot.red { background: #FF6B35; }
.hero-terminal-bar .dot.yellow { background: #FFD23F; }
.hero-terminal-bar .dot.green { background: #4ADE80; }
.hero-terminal-body {
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  min-height: 260px;
}

/* ====== Stat block ====== */
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.stat-label { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--roju-muted); }

/* ====== Section spacing ====== */
.section { padding: 5rem 0; }
.section-bordered { border-top: 1px solid var(--roju-border); border-bottom: 1px solid var(--roju-border); }
.section-card-bg { background: var(--roju-card); }

/* ====== Module card accent bar ====== */
.module-card { position: relative; overflow: hidden; }
.module-card .accent-bar {
  height: 4px;
  width: 100%;
  background: var(--roju-primary);
}
.module-card.accent-orange .accent-bar { background: var(--roju-accent); }
.module-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: color-mix(in srgb, var(--roju-primary) 12%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--roju-primary) 25%, transparent);
  color: var(--roju-primary);
  font-size: 1.4rem;
}
.module-icon.accent-orange {
  background: color-mix(in srgb, var(--roju-accent) 12%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--roju-accent) 25%, transparent);
  color: var(--roju-accent);
}

/* ====== Cases metric badge ====== */
.case-metric {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--roju-primary);
}
[data-bs-theme="dark"] .case-metric { text-shadow: 0 0 10px var(--roju-tron-glow); }

/* ====== Catalog preview header ====== */
.catalog-preview-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.catalog-product-card {
  border: 1px solid var(--roju-border);
  border-radius: 6px;
  padding: 0.75rem;
  background: var(--roju-card);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s;
}
.catalog-product-card:hover { border-color: color-mix(in srgb, var(--roju-primary) 40%, var(--roju-border)); }
.catalog-product-img {
  height: 80px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

/* ====== Quoter line ====== */
.quoter-line {
  background: var(--roju-card);
  border: 1px solid var(--roju-border);
  border-radius: 6px;
  padding: 0.75rem;
}

/* ====== Footer ====== */
.roju-footer {
  background: var(--roju-card);
  border-top: 1px solid var(--roju-border);
}
.roju-footer-logo {
  height: 48px;
  width: 48px;
  border-radius: 6px;
  object-fit: cover;
  filter: drop-shadow(0 0 6px var(--roju-tron-glow));
}

/* ====== Eyebrow tag ====== */
.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--roju-border);
  background: var(--roju-card);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--roju-primary);
}

/* ====== Hero glow orbs ====== */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* ====== Smooth scroll ====== */
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

/* ====== Offcanvas dark mode ====== */
[data-bs-theme="dark"] .offcanvas { background: var(--roju-card); color: var(--roju-fg); }
[data-bs-theme="dark"] .offcanvas .btn-close { filter: invert(1) grayscale(1) brightness(2); }
[data-bs-theme="dark"] .navbar-toggler { color: var(--roju-fg); }

/* ====== Color input reset ====== */
input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--roju-border);
  border-radius: 4px;
  padding: 0;
  background: var(--roju-card);
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 2px; }

/* ====== Hide number input arrows (cleaner) ====== */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* =====================================================================
   MISS PAC-MAN 80s LOADER
   Aparece al generar cotización / descargar PDF.
   Pure CSS — Miss Pac-Man con moño rojo persigue pellets, fantasma Blinky la sigue.
   Loop 1.5s. Mínimo visible 1.5s para que se vea completo el ciclo.
   ===================================================================== */

.pacman-loader {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 39, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.pacman-loader.active {
  opacity: 1;
  pointer-events: auto;
}

/* Subtle scanlines for arcade CRT feel */
.pacman-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.18) 0px,
    rgba(0, 0, 0, 0.18) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 0;
}

.pacman-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #00D9FF;
  text-align: center;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
}

.pacman-scene {
  position: relative;
  width: 280px;
  height: 50px;
  overflow: hidden;
  z-index: 1;
}

/* Subtle track line under pellets */
.pacman-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #00D9FF;
  transform: translateY(-50%);
  opacity: 0.18;
}

/* Pellets — each has its own keyframe with calibrated "eaten" moment */
.pellet {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFD23F;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(255, 210, 63, 0.6);
}
.pellet.p1 { left: 10%; animation: pellet-eat-1 4.5s linear infinite; }
.pellet.p2 { left: 25%; animation: pellet-eat-2 4.5s linear infinite; }
.pellet.p3 { left: 40%; animation: pellet-eat-3 4.5s linear infinite; }
.pellet.p4 { left: 55%; animation: pellet-eat-4 4.5s linear infinite; }
.pellet.p5 { left: 70%; animation: pellet-eat-5 4.5s linear infinite; }
.pellet.p6 { left: 85%; animation: pellet-eat-6 4.5s linear infinite; }

/* Pac-Man reaches pellet N at N% of 1.5s timeline (calibrated to mouth position) */
@keyframes pellet-eat-1 {
  0%, 1.5%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  2%, 100%   { opacity: 0; transform: translate(-50%, -50%) scale(0); }
}
@keyframes pellet-eat-2 {
  0%, 18%    { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  19%, 100%  { opacity: 0; transform: translate(-50%, -50%) scale(0); }
}
@keyframes pellet-eat-3 {
  0%, 34%    { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  35%, 100%  { opacity: 0; transform: translate(-50%, -50%) scale(0); }
}
@keyframes pellet-eat-4 {
  0%, 51%    { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  52%, 100%  { opacity: 0; transform: translate(-50%, -50%) scale(0); }
}
@keyframes pellet-eat-5 {
  0%, 67%    { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  68%, 100%  { opacity: 0; transform: translate(-50%, -50%) scale(0); }
}
@keyframes pellet-eat-6 {
  0%, 84%    { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  85%, 100%  { opacity: 0; transform: translate(-50%, -50%) scale(0); }
}

/* ====== Miss Pac-Man ====== */
.pacman {
  position: absolute;
  top: 50%;
  left: 0;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  animation: pacman-move 4.5s linear infinite;
  z-index: 3;
}
@keyframes pacman-move {
  0%   { left: 0; }
  100% { left: calc(100% - 24px); }
}

/* Body: pie shape with mouth wedge cut from right side */
.pacman-body {
  width: 100%;
  height: 100%;
  background: #FFD23F;
  border-radius: 50%;
  clip-path: polygon(100% 38%, 58% 50%, 100% 62%, 100% 100%, 0 100%, 0 0, 100% 0);
  animation: chomp 0.3s steps(2, end) infinite alternate;
  box-shadow: 0 0 10px rgba(255, 210, 63, 0.5);
  position: relative;
}
@keyframes chomp {
  0%   { clip-path: polygon(100% 38%, 58% 50%, 100% 62%, 100% 100%, 0 100%, 0 0, 100% 0); }
  100% { clip-path: polygon(100% 18%, 50% 50%, 100% 82%, 100% 100%, 0 100%, 0 0, 100% 0); }
}

/* Eye */
.pacman-eye {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 3px;
  height: 3px;
  background: #000;
  border-radius: 50%;
  z-index: 4;
}

/* Miss Pac-Man's signature red bow on top */
.pacman-bow {
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 5px;
  background: #FF6B35;
  /* Bow shape: two triangles pointing outward */
  clip-path: polygon(50% 50%, 0 0, 0 100%, 50% 50%, 100% 0, 100% 100%, 50% 50%);
  z-index: 2;
}

/* ====== Ghost (Blinky, red) ====== */
.ghost {
  position: absolute;
  top: 50%;
  left: -32px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  background: #FF4444;
  border-radius: 50% 50% 0 0;
  animation: ghost-move 4.5s linear infinite;
  z-index: 2;
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.4);
}
@keyframes ghost-move {
  0%   { left: -32px; }
  100% { left: calc(100% - 32px); }
}

/* Ghost wavy bottom (skirt-like feet) */
.ghost::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background:
    radial-gradient(circle at 16.67% 0, transparent 2.5px, #FF4444 2.5px),
    radial-gradient(circle at 50% 0, transparent 2.5px, #FF4444 2.5px),
    radial-gradient(circle at 83.33% 0, transparent 2.5px, #FF4444 2.5px);
  background-color: #FF4444;
}

.ghost-eye {
  position: absolute;
  top: 5px;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}
.ghost-eye.left  { left: 3px; }
.ghost-eye.right { right: 3px; }
.ghost-pupil {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 3px;
  height: 3px;
  background: #000;
  border-radius: 50%;
}

/* Loader text */
.pacman-text {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #E8F1FF;
  letter-spacing: 0.08em;
  text-align: center;
  position: relative;
  z-index: 1;
}
.pacman-text .terminal-cursor {
  background: #00D9FF;
  box-shadow: 0 0 6px rgba(0, 217, 255, 0.6);
}

/* =====================================================================
   MU/TH/UR 6000 TERMINAL LOADER (Alien 1979 — Nostromo mainframe)
   Aparece al enviar el formulario de contacto.
   Estética: verde fósforo sobre negro puro, scanlines CRT fuertes,
   tipografía monospace, secuencia de arranque tipo teletype.
   Pure CSS — sin imágenes ni SVG.
   ===================================================================== */

.muthur-loader {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow: hidden;
}
.muthur-loader.active {
  opacity: 1;
  pointer-events: auto;
}

/* Heavy CRT scanlines — más intensas que Pac-Man, feels like Nostromo monitor */
.muthur-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.35) 0px,
    rgba(0, 0, 0, 0.35) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 2;
}

/* Subtle green phosphor vignette */
.muthur-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.6) 90%);
  z-index: 1;
}

.muthur-screen {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 540px;
  padding: 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: #00FF66;
  text-shadow: 0 0 4px rgba(0, 255, 102, 0.7), 0 0 12px rgba(0, 255, 102, 0.35);
  letter-spacing: 0.04em;
}

.muthur-header {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #00FF66;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 6px rgba(0, 255, 102, 0.8), 0 0 16px rgba(0, 255, 102, 0.4);
  animation: muthur-flicker 4s infinite;
}
@keyframes muthur-flicker {
  0%, 100% { opacity: 1; }
  92%, 94% { opacity: 0.85; }
  96% { opacity: 1; }
}

.muthur-divider {
  border: none;
  border-top: 1px solid #00FF66;
  margin: 0.5rem 0 1rem 0;
  opacity: 0.5;
}

.muthur-line {
  margin-bottom: 0.3rem;
  opacity: 0;
  animation: muthur-type 4s steps(1, end) forwards;
}
.muthur-line.l1 { animation-delay: 0.3s; }
.muthur-line.l2 { animation-delay: 1.0s; }
.muthur-line.l3 { animation-delay: 1.7s; }
.muthur-line.l4 { animation-delay: 2.4s; }
.muthur-line.l5 { animation-delay: 3.1s; }
.muthur-line.l6 { animation-delay: 3.8s; }
.muthur-line.l7 { animation-delay: 4.5s; }

@keyframes muthur-type {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.muthur-line .prefix {
  color: #00AA44;
  margin-right: 0.3rem;
}
.muthur-line .ok {
  color: #00FF66;
  margin-left: 0.3rem;
  text-shadow: 0 0 4px rgba(0, 255, 102, 0.7);
}
.muthur-line .warn {
  color: #FFB800;
  margin-left: 0.3rem;
  text-shadow: 0 0 4px rgba(255, 184, 0, 0.6);
}

.muthur-final {
  margin-top: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #00FF66;
  text-shadow: 0 0 6px rgba(0, 255, 102, 0.8), 0 0 20px rgba(0, 255, 102, 0.5);
}

/* Phosphor cursor */
.muthur-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: #00FF66;
  vertical-align: text-bottom;
  animation: muthur-blink 1s steps(2) infinite;
  box-shadow: 0 0 6px rgba(0, 255, 102, 0.7);
}
@keyframes muthur-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Corner brackets — feels like targeting reticle / Nostromo monitor corners */
.muthur-bracket {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: #00FF66;
  opacity: 0.6;
  z-index: 3;
  box-shadow: 0 0 6px rgba(0, 255, 102, 0.5);
}
.muthur-bracket.tl { top: 20px; left: 20px; border-top: 2px solid; border-left: 2px solid; }
.muthur-bracket.tr { top: 20px; right: 20px; border-top: 2px solid; border-right: 2px solid; }
.muthur-bracket.bl { bottom: 20px; left: 20px; border-bottom: 2px solid; border-left: 2px solid; }
.muthur-bracket.br { bottom: 20px; right: 20px; border-bottom: 2px solid; border-right: 2px solid; }

/* Bottom status bar */
.muthur-status {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #00FF66;
  opacity: 0.7;
  text-shadow: 0 0 4px rgba(0, 255, 102, 0.5);
}

/* Pulse warning dot */
.muthur-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00FF66;
  vertical-align: middle;
  margin-right: 0.5rem;
  animation: muthur-pulse 1s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(0, 255, 102, 0.8);
}
@keyframes muthur-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}


