/* ==========================================================================
   ASTER Soluciones Técnicas - Futuristic Industrial Cryogenic Interface
   Strict Icy Color Palette: Pure White, Steel Gray, Cryo Blue, Deep Black
   Inspired by PS2 Startup Interface & Industrial Refrigeration Systems
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Rajdhani:wght@500;600;700&family=Share+Tech+Mono&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Strict Icy Color Palette */
    --color-black-deep: #020509;
    --color-black-space: #040913;
    --color-black-card: #08121f;
    --color-black-panel: #0d1a29;

    --color-gray-dark: #1b2636;
    --color-gray-steel: #2e3d50;
    --color-gray-mid: #5c6e84;
    --color-gray-light: #9db1c9;
    --color-gray-silver: #d1deed;

    --color-blue-deep: #0a2540;
    --color-blue-cyan: #00d2ff;
    --color-blue-neon: #00f0ff;
    --color-blue-ice: #9be2ff;
    --color-blue-glow: rgba(0, 210, 255, 0.45);

    --color-white-pure: #ffffff;
    --color-white-frost: #f0f7ff;

    --color-alert-red: #ff3366;
    --color-alert-amber: #ffaa00;
    --color-success-cyan: #00ffcc;

    /* Fonts */
    --font-orbitron: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-rajdhani: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Share Tech Mono', 'Courier New', monospace;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Z-Index */
    --header-height: 72px;
    --z-background: 0;
    --z-3d-canvas: 10;
    --z-hud-overlay: 20;
    --z-header: 30;
    --z-modal: 50;
    --z-crt: 90;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--color-black-deep);
    color: var(--color-white-frost);
    font-family: var(--font-rajdhani);
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    cursor: default;
}

/* --------------------------------------------------------------------------
   3D Canvas Container
   -------------------------------------------------------------------------- */
#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: var(--z-3d-canvas);
    background: radial-gradient(circle at 50% 50%, #061122 0%, #03070f 75%, #010307 100%);
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   CRT / Scanline Effect Overlay (Toggleable)
   -------------------------------------------------------------------------- */
#crt-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-crt);
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.4) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 6px 100%;
}

#crt-screen-overlay.active {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Industrial Visor Outer Frame & Icicle Borders
   -------------------------------------------------------------------------- */
.hud-visor-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-hud-overlay);
}

/* Side metallic pillars */
.hud-pillar-left, .hud-pillar-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 38px;
    background: linear-gradient(90deg, #0e1724 0%, #172435 50%, rgba(14, 23, 36, 0) 100%);
    border-right: 1px solid rgba(0, 210, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 90px 6px 40px;
}

.hud-pillar-right {
    right: 0;
    left: auto;
    background: linear-gradient(270deg, #0e1724 0%, #172435 50%, rgba(14, 23, 36, 0) 100%);
    border-right: none;
    border-left: 1px solid rgba(0, 210, 255, 0.2);
}

.pillar-bolt {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #475a72;
    border: 1px solid #758ea8;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.8), 0 0 4px rgba(0,210,255,0.4);
    margin: 8px auto;
}

.pillar-vents {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.pillar-vent-slot {
    width: 16px;
    height: 2px;
    background: rgba(0, 210, 255, 0.35);
}

/* Hanging Icicles SVG Overlay at Top */
.top-icicles-svg {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 38px;
    pointer-events: none;
    z-index: 25;
    filter: drop-shadow(0 4px 6px rgba(0, 210, 255, 0.35));
}

/* --------------------------------------------------------------------------
   Top Industrial Metallic Control Panel (Header)
   -------------------------------------------------------------------------- */
.top-industrial-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: var(--z-header);
    background: linear-gradient(180deg, #1b2636 0%, #121c29 70%, #0c1521 100%);
    border-bottom: 2px solid var(--color-blue-cyan);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 210, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

/* Metallic texture highlights */
.top-industrial-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

/* Logo: ASTER Soluciones Técnicas */
.header-logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.logo-cryo-icon {
    width: 38px;
    height: 38px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #16263a 0%, #081422 100%);
    border: 1.5px solid var(--color-blue-cyan);
    box-shadow: 0 0 12px var(--color-blue-glow);
    transform: rotate(45deg);
}

.logo-cryo-icon svg {
    transform: rotate(-45deg);
    width: 22px;
    height: 22px;
    fill: var(--color-blue-cyan);
    filter: drop-shadow(0 0 4px #00d2ff);
}

.logo-text-block {
    display: flex;
    flex-direction: column;
}

.logo-brand-name {
    font-family: var(--font-orbitron);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2.5px;
    color: var(--color-white-pure);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-brand-name .logo-prefix {
    color: var(--color-blue-cyan);
    font-weight: 700;
}

.logo-tagline {
    font-family: var(--font-rajdhani);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--color-blue-ice);
    opacity: 0.85;
}

/* Header Navigation Buttons */
.header-nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-tech-btn {
    position: relative;
    background: linear-gradient(180deg, #1c2b3e 0%, #121c29 100%);
    border: 1px solid rgba(0, 210, 255, 0.35);
    color: var(--color-gray-silver);
    font-family: var(--font-orbitron);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 8px 18px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
}

.nav-tech-btn .nav-idx {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-blue-cyan);
    opacity: 0.8;
}

.nav-tech-btn:hover {
    background: linear-gradient(180deg, #243c58 0%, #162a3f 100%);
    color: var(--color-white-pure);
    border-color: var(--color-blue-cyan);
    box-shadow: 0 0 16px rgba(0, 210, 255, 0.5), inset 0 0 8px rgba(0, 210, 255, 0.3);
    transform: translateY(-1px);
}

.nav-tech-btn:active {
    transform: translateY(1px);
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
}

/* Alert badge for Averías */
.nav-tech-btn.urgent-indicator {
    border-color: rgba(255, 60, 90, 0.6);
}

.nav-tech-btn.urgent-indicator::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-alert-red);
    box-shadow: 0 0 8px var(--color-alert-red);
    animation: blink-urgent 1.2s infinite;
}

@keyframes blink-urgent {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

/* Header Utilities: Sound, CRT, Clock */
.header-system-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.system-tool-btn {
    background: #0f1926;
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: var(--color-blue-ice);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.system-tool-btn:hover {
    border-color: var(--color-blue-cyan);
    color: var(--color-white-pure);
    background: #17273d;
}

/* Mini Audio Equalizer Visualizer */
.eq-bars-mini {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.eq-bar {
    width: 2px;
    background: var(--color-blue-cyan);
    border-radius: 1px;
    animation: eq-anim 0.8s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 90%; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { height: 100%; animation-delay: 0.4s; }

@keyframes eq-anim {
    0% { height: 25%; }
    100% { height: 100%; }
}

/* Digital Live Clock */
.header-clock-module {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: rgba(8, 18, 31, 0.85);
    border: 1px solid rgba(0, 210, 255, 0.25);
    padding: 4px 12px;
    border-radius: 2px;
}

.clock-digits {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-white-pure);
    letter-spacing: 1px;
    text-shadow: 0 0 6px var(--color-blue-cyan);
}

.clock-date {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--color-gray-light);
    letter-spacing: 0.5px;
}

/* Mobile menu toggle */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--color-blue-cyan);
    color: var(--color-blue-cyan);
    padding: 6px 10px;
    font-size: 18px;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   HUD & Telemetry Edge Panels (Matching reference.jpg)
   -------------------------------------------------------------------------- */
.hud-corner-panel {
    position: fixed;
    z-index: var(--z-hud-overlay);
    background: rgba(6, 15, 27, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 0 12px rgba(0, 210, 255, 0.08);
    pointer-events: auto;
}

/* Industrial Corner Brackets for HUD */
.hud-corner-panel::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--color-blue-cyan);
    border-left: 2px solid var(--color-blue-cyan);
}

.hud-corner-panel::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid var(--color-blue-cyan);
    border-right: 2px solid var(--color-blue-cyan);
}

.hud-panel-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-blue-cyan);
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
    padding-bottom: 4px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 1. TOP-LEFT PANEL */
.hud-top-left {
    top: calc(var(--header-height) + 18px);
    left: 48px;
    width: 250px;
}

.telemetry-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-gray-silver);
    margin-bottom: 6px;
}

.telemetry-bar-wrap {
    flex: 1;
    height: 6px;
    background: rgba(20, 35, 55, 0.8);
    border: 1px solid rgba(0, 210, 255, 0.3);
    margin: 0 10px;
    overflow: hidden;
}

.telemetry-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0088cc, #00d2ff);
    box-shadow: 0 0 4px #00d2ff;
}

.telemetry-val {
    color: var(--color-white-pure);
    font-weight: 700;
}

/* 2. BOTTOM-LEFT PANEL (Lecturas & PS2 Controller Prompts) */
.hud-bottom-left {
    bottom: 24px;
    left: 48px;
    width: 270px;
}

.sensor-spectrum-container {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 44px;
    margin: 10px 0;
    padding: 6px;
    background: rgba(10, 22, 38, 0.6);
    border: 1px solid rgba(0, 210, 255, 0.15);
}

.hud-bar-col {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.hud-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #00f0ff 0%, #0077b6 100%);
    box-shadow: 0 0 6px rgba(0, 210, 255, 0.5);
    transition: height 0.18s ease-out;
}

/* PS2 Controller Legend */
.ps2-controller-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    border-top: 1px solid rgba(0, 210, 255, 0.2);
    padding-top: 8px;
}

.ps2-btn-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-orbitron);
    font-size: 10px;
    font-weight: 700;
    color: var(--color-gray-silver);
    letter-spacing: 1px;
}

.ps2-glyph {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    background: #112033;
    border: 1px solid #4a678a;
}

.ps2-glyph.cross {
    color: #4facfe;
    border-color: #00d2ff;
    box-shadow: 0 0 4px #00d2ff;
}

.ps2-glyph.circle {
    color: #ff5e7e;
    border-color: #ff3366;
}

/* 3. TOP-RIGHT PANEL (Telemetry & Frequencies) */
.hud-top-right {
    top: calc(var(--header-height) + 18px);
    right: 48px;
    width: 250px;
}

.hud-mini-spectrum {
    display: flex;
    gap: 3px;
    height: 22px;
    align-items: flex-end;
    margin-bottom: 8px;
}

.hud-mini-bar {
    flex: 1;
    background: var(--color-blue-cyan);
    opacity: 0.75;
}

.diag-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-gray-silver);
}

.diag-grid span strong {
    color: var(--color-white-pure);
}

/* 4. BOTTOM-RIGHT PANEL (Oscilloscope & Refrigerant Flow) */
.hud-bottom-right {
    bottom: 24px;
    right: 48px;
    width: 280px;
}

#osc-canvas {
    width: 100%;
    height: 64px;
    display: block;
    border: 1px solid rgba(0, 210, 255, 0.25);
    background: #050b14;
    margin: 6px 0;
}

.refrig-circuit-meter {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-blue-ice);
    display: flex;
    justify-content: space-between;
}

/* 5. BOTTOM-CENTER STATUS CAPSULE */
.hud-bottom-center {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-hud-overlay);
    background: rgba(6, 17, 31, 0.9);
    border: 1.5px solid var(--color-blue-cyan);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.45);
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    clip-path: polygon(12px 0%, calc(100% - 12px) 0%, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0% 50%);
    pointer-events: auto;
}

.cooling-status-pill {
    font-family: var(--font-orbitron);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-white-pure);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cooling-status-pill .status-highlight {
    color: var(--color-success-cyan);
    text-shadow: 0 0 8px var(--color-success-cyan);
}

.cooling-pulse-bar {
    width: 80px;
    height: 6px;
    background: #0f2238;
    border: 1px solid rgba(0, 210, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.cooling-pulse-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #00f0ff, transparent);
    animation: pulse-stream 1.5s infinite linear;
}

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

.current-hover-target {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-blue-ice);
    letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   Interactive Modals & Windows
   -------------------------------------------------------------------------- */
.aster-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: var(--z-modal);
    background: rgba(2, 6, 12, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
}

.aster-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.aster-modal-window {
    width: 100%;
    max-width: 840px;
    max-height: 85vh;
    background: linear-gradient(180deg, #121d2d 0%, #0a1320 100%);
    border: 2px solid var(--color-blue-cyan);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 210, 255, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: scale(0.96) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.aster-modal-overlay.active .aster-modal-window {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header-bar {
    background: linear-gradient(90deg, #1b2a3f 0%, #111e2e 100%);
    border-bottom: 1px solid rgba(0, 210, 255, 0.4);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-sec-code {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-blue-cyan);
    background: rgba(0, 210, 255, 0.12);
    padding: 2px 8px;
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.modal-title {
    font-family: var(--font-orbitron);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-white-pure);
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
}

.modal-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white-frost);
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    border-color: var(--color-alert-red);
    color: var(--color-alert-red);
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

/* Modal Body */
.modal-content-body {
    padding: 24px 28px;
    overflow-y: auto;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-gray-silver);
}

.modal-content-body::-webkit-scrollbar {
    width: 6px;
}

.modal-content-body::-webkit-scrollbar-track {
    background: #09121d;
}

.modal-content-body::-webkit-scrollbar-thumb {
    background: var(--color-blue-cyan);
    border-radius: 3px;
}

/* Modal Subtitle / Intro */
.modal-intro-text {
    font-family: var(--font-rajdhani);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-blue-ice);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Forms in Modals */
.form-tech-group {
    margin-bottom: 16px;
}

.form-tech-group label {
    display: block;
    font-family: var(--font-rajdhani);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-white-pure);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.form-tech-input, .form-tech-select, .form-tech-textarea {
    width: 100%;
    background: #081321;
    border: 1px solid rgba(0, 210, 255, 0.35);
    color: var(--color-white-pure);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-tech-input:focus, .form-tech-select:focus, .form-tech-textarea:focus {
    border-color: var(--color-blue-cyan);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.4);
}

.form-tech-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Action Buttons in Modals */
.btn-action-primary {
    background: linear-gradient(90deg, #0088cc 0%, #00d2ff 100%);
    border: none;
    color: #030812;
    font-family: var(--font-orbitron);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 12px 24px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(0, 210, 255, 0.5);
    transition: all 0.2s ease;
}

.btn-action-primary:hover {
    background: linear-gradient(90deg, #00a3f5 0%, #38e0ff 100%);
    box-shadow: 0 0 24px rgba(0, 210, 255, 0.8);
    transform: translateY(-1px);
}

/* Result Box for Triage / Repair */
.result-success-box {
    background: rgba(0, 255, 204, 0.08);
    border: 1px solid var(--color-success-cyan);
    padding: 20px;
    margin-top: 16px;
    border-radius: 2px;
    text-align: center;
}

.result-success-box .result-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.result-success-box h4 {
    font-family: var(--font-orbitron);
    color: var(--color-success-cyan);
    margin-bottom: 8px;
    font-size: 16px;
}

.result-success-box .ticket-id {
    font-family: var(--font-mono);
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--color-white-pure);
}

.result-success-box .result-telemetry {
    display: flex;
    justify-content: space-around;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-blue-ice);
    margin-top: 14px;
    border-top: 1px solid rgba(0, 255, 204, 0.2);
    padding-top: 10px;
}

/* --------------------------------------------------------------------------
   Retrofit / Sustituir Calculator Styles
   -------------------------------------------------------------------------- */
.retrofit-summary-card {
    background: rgba(8, 20, 34, 0.9);
    border: 1px solid var(--color-blue-cyan);
    padding: 18px;
    margin-top: 20px;
}

.retrofit-badge {
    font-family: var(--font-orbitron);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-blue-cyan);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.retrofit-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-card {
    background: rgba(14, 28, 46, 0.7);
    padding: 10px 14px;
    border-left: 2px solid var(--color-blue-cyan);
}

.stat-card .label {
    display: block;
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--color-gray-light);
    margin-bottom: 4px;
}

.stat-card .val {
    font-family: var(--font-rajdhani);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-white-pure);
}

.stat-card .val.highlight {
    color: var(--color-blue-cyan);
}

.retrofit-cta {
    margin-top: 12px;
    font-size: 12px;
    color: var(--color-blue-ice);
    font-style: italic;
}

/* --------------------------------------------------------------------------
   SLA Contracts Cards (Mantenimiento / Contratos)
   -------------------------------------------------------------------------- */
.contracts-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.contract-card {
    background: rgba(10, 20, 32, 0.85);
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.contract-card:hover {
    border-color: var(--color-blue-cyan);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
    transform: translateY(-2px);
}

.contract-card.featured {
    border-color: var(--color-blue-cyan);
    background: linear-gradient(180deg, #13243a 0%, #0d1a29 100%);
    box-shadow: 0 0 16px rgba(0, 210, 255, 0.25);
}

.contract-card .tier-name {
    font-family: var(--font-orbitron);
    font-size: 14px;
    font-weight: 800;
    color: var(--color-white-pure);
    margin-bottom: 6px;
}

.contract-card .tier-sla {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-blue-cyan);
    margin-bottom: 14px;
}

.contract-card ul {
    list-style: none;
    font-size: 12px;
    color: var(--color-gray-silver);
    margin-bottom: 16px;
}

.contract-card ul li {
    margin-bottom: 8px;
    padding-left: 14px;
    position: relative;
}

.contract-card ul li::before {
    content: '❄';
    position: absolute;
    left: 0;
    color: var(--color-blue-cyan);
    font-size: 9px;
}

/* --------------------------------------------------------------------------
   Shop Catalog Styles (Tienda)
   -------------------------------------------------------------------------- */
.shop-controls-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.shop-filter-btn {
    background: #0f1c2d;
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: var(--color-gray-silver);
    font-family: var(--font-rajdhani);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shop-filter-btn.active, .shop-filter-btn:hover {
    background: #172c47;
    border-color: var(--color-blue-cyan);
    color: var(--color-white-pure);
}

.shop-search-input {
    flex: 1;
    min-width: 200px;
    background: #081321;
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: #fff;
    padding: 6px 12px;
    font-family: var(--font-body);
    font-size: 13px;
}

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

.product-card {
    background: rgba(10, 20, 33, 0.9);
    border: 1px solid rgba(0, 210, 255, 0.25);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--color-success-cyan);
    margin-bottom: 4px;
}

.product-ref {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-gray-mid);
}

.product-title {
    font-family: var(--font-rajdhani);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-white-pure);
    margin: 6px 0;
}

.product-desc {
    font-size: 12px;
    color: var(--color-gray-silver);
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 210, 255, 0.15);
    padding-top: 10px;
}

.product-price {
    font-family: var(--font-orbitron);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-blue-cyan);
}

.btn-quote-req {
    background: #14283f;
    border: 1px solid var(--color-blue-cyan);
    color: var(--color-blue-cyan);
    font-family: var(--font-rajdhani);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-quote-req:hover {
    background: var(--color-blue-cyan);
    color: #030812;
}

/* --------------------------------------------------------------------------
   Responsive Design & Mobile Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hud-pillar-left, .hud-pillar-right {
        display: none;
    }
    .hud-top-left, .hud-bottom-left {
        left: 18px;
    }
    .hud-top-right, .hud-bottom-right {
        right: 18px;
    }
    .contracts-tier-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .header-nav-buttons {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: #0f1c2d;
        flex-direction: column;
        padding: 16px;
        border-bottom: 2px solid var(--color-blue-cyan);
    }
    .header-nav-buttons.mobile-open {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hud-top-left, .hud-top-right {
        display: none;
    }
    .shop-grid {
        grid-template-columns: 1fr;
    }
    .hud-bottom-left, .hud-bottom-right {
        width: calc(50% - 24px);
    }
}

@media (max-width: 580px) {
    .hud-bottom-left, .hud-bottom-right {
        display: none;
    }
    .hud-bottom-center {
        width: 90%;
        font-size: 10px;
    }
}
