/* ==========================================================================
   AES STREAM - INNOVACIÓN TECNOLÓGICA
   Design System & Styling Rules
   ========================================================================== */

:root {
    /* Color Palette - Dark Theme (Default) */
    --bg-main: #0a0d18;
    --bg-secondary: #121729;
    --bg-card: rgba(22, 28, 48, 0.65);
    --bg-card-hover: rgba(30, 38, 66, 0.85);
    --border-color: rgba(120, 80, 240, 0.2);
    --border-color-hover: rgba(160, 100, 255, 0.45);
    
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    
    /* Brand Gradients */
    --brand-primary: #635BFF;
    --brand-purple: #8E35EF;
    --brand-magenta: #D926EF;
    --gradient-primary: linear-gradient(135deg, #635BFF 0%, #8E35EF 50%, #D926EF 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 91, 255, 0.3) 0%, rgba(217, 38, 239, 0.3) 100%);
    
    /* Functional Colors */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    --color-info: #3B82F6;
    --color-cyan: #06B6D4;
    
    /* Glassmorphism & Shadows */
    --glass-bg: rgba(18, 23, 41, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --neon-glow: 0 0 20px rgba(142, 53, 239, 0.35);
    
    /* Font Families */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-main: #F4F6FB;
    --bg-secondary: #E2E8F0;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --border-color: rgba(99, 91, 255, 0.15);
    --border-color-hover: rgba(142, 53, 239, 0.35);
    
    --text-main: #0F172A;
    --text-muted: #475569;
    --text-dim: #94A3B8;
    
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: 1px solid rgba(99, 91, 255, 0.12);
    --glass-shadow: 0 8px 24px 0 rgba(99, 91, 255, 0.08);
    --neon-glow: 0 0 15px rgba(99, 91, 255, 0.2);
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Global Background Graphic Effects */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.5;
}

.bg-glow-1 {
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(142, 53, 239, 0.4) 0%, rgba(99, 91, 255, 0) 70%);
}

.bg-glow-2 {
    top: 40%;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(217, 38, 239, 0.3) 0%, rgba(6, 182, 212, 0) 70%);
}

.bg-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: -1;
    pointer-events: none;
}

[data-theme="light"] .bg-grid-overlay {
    background-image: radial-gradient(rgba(99, 91, 255, 0.08) 1px, transparent 1px);
}

/* Typography & Utility Helper Classes */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
}

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

.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-primary { color: var(--brand-primary) !important; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-purple);
    background: rgba(142, 53, 239, 0.1);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(142, 53, 239, 0.2);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--border-color-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(142, 53, 239, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(142, 53, 239, 0.55);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--brand-purple);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(142, 53, 239, 0.1);
    border-color: var(--brand-purple);
    color: var(--text-main);
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-full {
    width: 100%;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-live { background: rgba(239, 68, 68, 0.25); color: #FF4D4D; border: 1px solid #EF4444; }
.badge-dark { background: rgba(0, 0, 0, 0.4); color: var(--text-muted); border: 1px solid var(--border-color); }

/* Pulse Indicator Dot */
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.pulse-dot.online {
    background-color: var(--color-success);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--glass-border);
    transition: background var(--transition-normal);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-svg-wrapper {
    height: 52px;
    display: flex;
    align-items: center;
}

.aes-logo-svg {
    height: 52px;
    width: auto;
}

.system-status-ticker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.ticker-divider {
    color: var(--text-dim);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color var(--transition-fast);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
    background: rgba(142, 53, 239, 0.1);
}

.btn-nav-cta {
    background: rgba(142, 53, 239, 0.15);
    color: var(--text-main);
    border: 1px solid rgba(142, 53, 239, 0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    background: rgba(142, 53, 239, 0.2);
    border-color: var(--brand-purple);
    transform: rotate(15deg);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.88rem;
    transition: all var(--transition-fast);
}

.user-pill:hover {
    border-color: var(--brand-purple);
    background: rgba(142, 53, 239, 0.12);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #FFF;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.4rem;
    cursor: pointer;
}

/* User Dropdown Menu */
.user-dropdown-menu {
    position: fixed;
    top: 80px;
    right: 2rem;
    width: 280px;
    background: var(--bg-secondary);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    padding: 1.25rem;
    z-index: 1050;
    transition: all var(--transition-normal);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-large {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #FFF;
}

.user-info small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.dropdown-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0.9rem 0;
}

.dropdown-list {
    list-style: none;
}

.dropdown-list a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.dropdown-list a:hover {
    color: var(--text-main);
    background: rgba(142, 53, 239, 0.1);
}

.btn-logout {
    width: 100%;
    padding: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all var(--transition-fast);
}

.btn-logout:hover {
    background: var(--color-danger);
    color: #FFF;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 5rem 0 4rem;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1rem;
    background: rgba(99, 91, 255, 0.1);
    border: 1px solid rgba(99, 91, 255, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-purple);
    margin-bottom: 1.5rem;
}

.pulse-ring {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-magenta);
    box-shadow: 0 0 10px var(--brand-magenta);
}

.hero-title {
    font-size: 3.2rem;
    letter-spacing: -0.5px;
    margin-bottom: 1.25rem;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 580px;
}

.tech-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-main);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
}

/* Hero Circuit Visualization */
.hero-interactive-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}

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

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

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.card-title-sm {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.circuit-diagram {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
    overflow: hidden;
}

.circuit-core {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 0 40px rgba(142, 53, 239, 0.6);
    position: relative;
}

.core-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFF;
    font-weight: 800;
    font-size: 0.85rem;
}

.core-logo i {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.circuit-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    z-index: 5;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.node-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--brand-purple);
    box-shadow: var(--glass-shadow);
}

.node-top { top: 15px; }
.node-bottom { bottom: 15px; }
.node-left { left: 20px; }
.node-right { right: 20px; }

.circuit-lines-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.wire {
    stroke: var(--brand-purple);
    stroke-width: 2px;
    stroke-dasharray: 6;
    animation: dashPulse 2s linear infinite;
}

@keyframes dashPulse {
    from { stroke-dashoffset: 24; }
    to { stroke-dashoffset: 0; }
}

.card-footer-info {
    display: flex;
    justify-content: space-between;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.info-item small {
    display: block;
    color: var(--text-dim);
}

.info-item strong {
    color: var(--text-main);
    font-family: var(--font-mono);
}

/* ==========================================================================
   HUB DE SISTEMAS / LAUNCHER
   ========================================================================== */
.systems-hub-section {
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.hub-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    background: var(--glass-bg);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    border: var(--glass-border);
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

.search-box input {
    width: 100%;
    padding: 0.7rem 2.5rem 0.7rem 2.6rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    outline: none;
    transition: all var(--transition-fast);
}

.search-box input:focus {
    border-color: var(--brand-purple);
    box-shadow: 0 0 12px rgba(142, 53, 239, 0.25);
}

.clear-search-btn {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.filter-btn {
    padding: 0.45rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    color: var(--text-main);
    border-color: var(--brand-purple);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: #FFF;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(142, 53, 239, 0.3);
}

.toolbar-actions {
    display: flex;
    gap: 0.6rem;
}

/* Systems Grid */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.system-card {
    position: relative;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    min-height: 220px;
    border-radius: var(--radius-lg);
}

.system-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(142, 53, 239, 0.25);
}

.card-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.sys-icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--gradient-glow);
    border: 1px solid rgba(142, 53, 239, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand-purple);
}

.icon-purple { color: #A855F7; }
.icon-cyan { color: #06B6D4; }
.icon-red { color: #EF4444; }
.icon-blue { color: #3B82F6; }
.icon-green { color: #10B981; }

.sys-fav-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.sys-fav-btn:hover, .sys-fav-btn.is-fav {
    color: var(--color-warning);
}

.system-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}

.system-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.card-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.sys-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
}

.ping-badge {
    font-family: var(--font-mono);
    color: var(--text-dim);
}

.btn-launch {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-purple);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap var(--transition-fast);
}

.system-card:hover .btn-launch {
    gap: 0.5rem;
    color: var(--brand-magenta);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 3.5rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

/* ==========================================================================
   SERVICES SHOWCASE
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.feature-highlight {
    border-color: var(--brand-purple);
    box-shadow: 0 10px 40px rgba(142, 53, 239, 0.25);
    position: relative;
}

.service-badge-top {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: #FFF;
    background: rgba(239, 68, 68, 0.85);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    z-index: 10;
}

.service-card-banner {
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.banner-purple { background: linear-gradient(135deg, rgba(99, 91, 255, 0.2), rgba(142, 53, 239, 0.1)); }
.banner-live { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(217, 38, 239, 0.2)); }
.banner-blue { background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 91, 255, 0.1)); }
.banner-cyan { background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.1)); }

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--brand-purple);
}

.service-tag {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.tag-live { color: var(--color-danger); }

.service-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-body h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.service-lead {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.service-checklist {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.service-checklist li i {
    color: var(--color-success);
    margin-top: 0.2rem;
}

.service-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.service-tech-stack span {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

/* ==========================================================================
   STREAMING & MONITOR WIDGET
   ========================================================================== */
.monitor-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

.stream-demo-card {
    padding: 1.5rem;
}

.video-player-box {
    position: relative;
    width: 100%;
    height: 320px;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.video-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.animated-stream-canvas {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #1a0b36 0%, #05040a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stream-waves-bg {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px stroke var(--brand-purple);
    box-shadow: 0 0 50px rgba(142, 53, 239, 0.4);
    animation: wavePulse 3s infinite ease-out;
}

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

.play-pulse-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #FFF;
    box-shadow: 0 0 30px rgba(142, 53, 239, 0.8);
    cursor: pointer;
    z-index: 10;
}

/* Audio Spectrum Visualizer Bar */
.audio-spectrum {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 6px;
    align-items: flex-end;
    height: 40px;
}

.audio-spectrum .bar {
    width: 6px;
    background: var(--brand-magenta);
    border-radius: 3px;
    animation: barBounce 1.2s infinite ease-in-out alternate;
}

.bar-1 { height: 30%; animation-delay: 0.1s; }
.bar-2 { height: 80%; animation-delay: 0.3s; }
.bar-3 { height: 100%; animation-delay: 0.2s; }
.bar-4 { height: 50%; animation-delay: 0.4s; }
.bar-5 { height: 90%; animation-delay: 0.15s; }
.bar-6 { height: 40%; animation-delay: 0.35s; }
.bar-7 { height: 75%; animation-delay: 0.25s; }

@keyframes barBounce {
    0% { height: 15%; }
    100% { height: 100%; }
}

.player-top-bar {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
}

.stream-live-tag, .stream-bitrate-tag {
    background: rgba(0, 0, 0, 0.6);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

.player-controls {
    height: 52px;
    background: rgba(12, 15, 26, 0.95);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    font-size: 0.85rem;
}

.player-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
}

.volume-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-box input {
    width: 70px;
    accent-color: var(--brand-purple);
}

.time-display {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.live-dot-sm {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-danger);
    display: inline-block;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quality-select {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
}

.stream-metrics-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
}

.metric-item small {
    display: block;
    color: var(--text-dim);
}

/* Server Health Gauges */
.server-health-card {
    padding: 1.5rem;
}

.gauges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.gauge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.gauge-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--brand-purple) calc(var(--percent) * 1%), rgba(255, 255, 255, 0.08) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
    position: relative;
}

.gauge-inner {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-value {
    font-weight: 800;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

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

/* Terminal Log View */
.terminal-box {
    background: #060810;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.4rem 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dim);
}

.terminal-body {
    padding: 0.75rem;
    max-height: 140px;
    overflow-y: auto;
}

.log-line {
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    word-break: break-all;
}

.log-time { color: var(--text-dim); }
.log-tag { font-weight: 700; padding: 0 0.3rem; border-radius: 3px; font-size: 0.7rem; }
.tag-info { background: rgba(59, 130, 246, 0.2); color: #60A5FA; }
.tag-success { background: rgba(16, 185, 129, 0.2); color: #34D399; }

/* ==========================================================================
   COBERTURA & INFRAESTRUCTURA
   ========================================================================== */
.coverage-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.coverage-card {
    padding: 2rem 1.5rem;
    text-align: center;
}

.cov-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-glow);
    border: 1px solid rgba(142, 53, 239, 0.3);
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--brand-purple);
}

.coverage-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.coverage-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ==========================================================================
   CONTACTO & COTIZACIÓN
   ========================================================================== */
.contact-wrapper {
    padding: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}

.contact-info-col h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.contact-info-col p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.c-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.c-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(142, 53, 239, 0.1);
    border: 1px solid rgba(142, 53, 239, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-purple);
    font-size: 1.1rem;
}

.c-detail-item small {
    display: block;
    color: var(--text-dim);
    font-size: 0.78rem;
}

.c-detail-item strong {
    font-size: 0.95rem;
}

.social-links-row {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: #FFF;
    border-color: transparent;
    transform: translateY(-3px);
}

/* Contact Form Styling */
.contact-form {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    font-size: 1.35rem;
    margin-bottom: 0.3rem;
}

.form-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

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

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: border var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--brand-purple);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background: #05070e;
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
}

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

.aes-logo-svg-sm {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-domain {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-domain a {
    color: var(--brand-purple);
    text-decoration: none;

}

.footer-links-col h4, .footer-contact-col h4 {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.footer-links-col ul {
    list-style: none;
}

.footer-links-col li {
    margin-bottom: 0.6rem;
}

.footer-links-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color var(--transition-fast);
}

.footer-links-col a:hover {
    color: var(--brand-purple);
}

.footer-contact-col p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.legal-links a {
    color: var(--text-dim);
    text-decoration: none;
}

.legal-links a:hover {
    color: var(--text-muted);
}

/* ==========================================================================
   MODALS & BACKDROP
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 14, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: opacity var(--transition-normal);
}

.modal-backdrop.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    width: 100%;
    max-width: 580px;
    padding: 2rem;
    position: relative;
    background: var(--bg-secondary);
    border: var(--glass-border);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.modal-sys-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--gradient-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--brand-purple);
}

.modal-badges {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.modal-info-box {
    background: rgba(0, 0, 0, 0.25);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.m-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.m-info-row:last-child { margin-bottom: 0; }

.m-info-row span { color: var(--text-dim); }

.m-info-row code {
    background: rgba(142, 53, 239, 0.15);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    color: var(--brand-magenta);
}

.launch-progress-box {
    margin-top: 1.2rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.2s linear;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--brand-purple);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    color: var(--text-main);
    font-size: 0.88rem;
    min-width: 280px;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-success i { color: var(--color-success); }
.toast-info i { color: var(--color-info); }

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-title {
        font-size: 2.6rem;
    }

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

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

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 76px;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 1.5rem;
        border-bottom: var(--glass-border);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

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

    .hub-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

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

    .footer-container {
        grid-template-columns: 1fr;
    }
}
