// Main SCSS Entry Point
// Paleta de Colores: Deep Space & Neon
 /* Cian Brillante */



 /* Violeta Tecnológico */

 /* Deep Space */











 /* Cisco Blue */

body {
    font-family: 'Inter', sans-serif;
    background-color: #03060b;
    color: #f1f5f9;
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(11, 18, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 30px rgba(0,0,0,0.5);
    
    @media (max-width: 768px) {
        transform: translateX(-100%);
        &.active {
            transform: translateX(0);
        }
    }
}

.sidebar-header {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    
    .brand {
        font-family: 'Fira Code', monospace;
        font-size: 1.4rem;
        font-weight: 700;
        color: #f1f5f9;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);

        i {
            color: #00f2ff;
            font-size: 1.2rem;
        }
    }
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 0;
    
    ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    li {
        margin-bottom: 0.5rem;
        padding: 0 1rem;
    }
    
    a {
        display: flex;
        align-items: center;
        padding: 0.85rem 1.25rem;
        color: #f1f5f9-light;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        gap: 1rem;
        border-radius: 8px;
        position: relative;
        overflow: hidden;
        
        i {
            width: 20px;
            text-align: center;
            transition: color 0.3s;
        }
        
        &:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.05);
            
            i {
                color: #00f2ff;
                text-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
            }
        }

        &.active {
            background: linear-gradient(90deg, rgba(0, 242, 255, 0.1) 0%, transparent 100%);
            color: #00f2ff;
            font-weight: 600;
            border: 1px solid rgba(0, 242, 255, 0.1);
            
            &::before {
                content: '';
                position: absolute;
                left: 0;
                top: 0;
                height: 100%;
                width: 4px;
                background: #00f2ff;
                box-shadow: 0 0 15px #00f2ff;
                border-radius: 0 4px 4px 0;
            }

            i {
                color: #00f2ff;
            }
        }
        
        &.text-danger:hover {
            color: #ff5f56;
            background: rgba(#ff5f56, 0.1);
            border-color: rgba(#ff5f56, 0.2);
            i { color: #ff5f56; text-shadow: 0 0 10px rgba(#ff5f56, 0.5); }
        }
    }
    
    .nav-header {
        padding: 0.75rem 1.5rem;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #f1f5f9-dim;
        font-weight: 700;
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
        font-family: 'Fira Code', monospace;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    
    @media (max-width: 768px) {
        margin-left: 0;
    }
}

/* Top Navbar */
.top-navbar {
    height: 70px;
    background: rgba(11, 18, 30, 0.7); /* More transparent */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05); /* Subtle border */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 900;
}

/* Sidebar Footer (User Profile) */
.sidebar-footer {
    margin-top: auto;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    
    .user-mini-console {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.75rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.2s;
        text-decoration: none;
        
        &:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.1);
        }
        
        .avatar-frame {
            position: relative;
            
            img {
                width: 40px;
                height: 40px;
                border-radius: 6px; /* Squircle */
                border: 1px solid #00f2ff;
            }
            
            .status-dot {
                position: absolute;
                bottom: -2px;
                right: -2px;
                width: 10px;
                height: 10px;
                background: #27c93f;
                border-radius: 50%;
                border: 2px solid #03060b;
                box-shadow: 0 0 5px #27c93f;
            }
        }
        
        .user-info {
            flex: 1;
            min-width: 0;
            
            .name {
                display: block;
                color: #fff;
                font-family: 'Fira Code', monospace;
                font-size: 0.85rem;
                font-weight: 600;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            
            .role {
                display: block;
                color: #00f2ff;
                font-family: 'Fira Code', monospace;
                font-size: 0.7rem;
                opacity: 0.8;
            }
        }
        
        .logout-btn {
            color: #f1f5f9-dim;
            transition: color 0.2s;
            &:hover { color: #ff5f56; }
        }
    }
}

/* Toggle Sidebar Button (Mobile Only) */
.toggle-sidebar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: none; /* Hidden by default on desktop */
    align-items: center;
    justify-content: center;
    color: #00f2ff;
    cursor: pointer;
    transition: all 0.2s;
    
    &:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    @media (max-width: 768px) {
        display: flex; /* Visible key on mobile */
    }
}

/* Updated Navbar (Simpler) */
.user-menu {
    display: none; /* Hidden in topbar, moved to sidebar */
}

/* Content Wrapper */
.content-wrapper {
    padding: 2rem;
    flex: 1;
    
    @media (max-width: 576px) {
        padding: 1rem;
    }
}

/* Footer */
.footer {
    padding: 1.5rem;
    text-align: center;
    color: #f1f5f9-light;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: #0b121e;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    
    &.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Utilities */
.d-none { display: none !important; }
.d-sm-inline { @media (min-width: 576px) { display: inline !important; } }
.d-md-none { @media (min-width: 768px) { display: none !important; } }
.text-danger { color: #ff5f56 !important; }

.text-center { text-align: center; }
.d-flex { display: flex; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.gap-3 { gap: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

/* --- Premium Access Components (Glassmorphism) --- */

.card {
    background: rgba(19, 28, 45, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;

    &:hover {
        box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
        border-color: rgba(255, 255, 255, 0.15);
    }
}

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    
    h2, h3, h4 {
        margin: 0;
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        color: #f1f5f9;
        letter-spacing: -0.02em;
    }
}

.card-body {
    padding: 2rem;
    color: #f1f5f9-light;
}

.card-footer {
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Modern Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 0.95rem;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #00f2ff 0%, #00bceb 100%);
    color: #03060b;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
    
    &:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 25px rgba(0, 242, 255, 0.4);
        filter: brightness(1.1);
    }

    &:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(0, 242, 255, 0.2);
    }
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    
    &:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: #00f2ff;
        color: #00f2ff;
    }
}

.btn-block {
    display: flex;
    width: 100%;
}

/* --- Floating Inputs --- */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;

    label {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
        font-weight: 500;
        color: #f1f5f9-light;
        transition: color 0.2s;
    }

    &:focus-within label {
        color: #00f2ff;
    }
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #f1f5f9;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;

    &:focus {
        outline: none;
        border-color: #00f2ff;
        background: rgba(0, 0, 0, 0.35);
        box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.1);
    }

    &::placeholder {
        color: rgba(255, 255, 255, 0.2);
    }
}

/* --- Custom File Upload --- */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.file-upload-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #f1f5f9-light;
    text-align: center;
    
    i {
        font-size: 2rem;
        margin-bottom: 1rem;
        color: #00f2ff;
        filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.4));
    }
    
    strong {
        font-size: 1rem;
        color: #f1f5f9;
        margin-bottom: 0.5rem;
    }
    
    span {
        font-size: 0.85rem;
        color: #f1f5f9-dim;
    }

    &:hover {
        background: rgba(0, 0, 0, 0.3);
        border-color: #00f2ff;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
}

.file-upload-input:focus + .file-upload-label {
    border-color: #00f2ff;
    background: rgba(0, 0, 0, 0.3);
}

/* --- Alerts --- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-danger {
    background: rgba(255, 95, 86, 0.1);
    border-color: rgba(255, 95, 86, 0.2);
    color: #ff8a84;
}

.alert-success {
    background: rgba(39, 201, 63, 0.1);
    border-color: rgba(39, 201, 63, 0.2);
    color: #4ade80;
}



/* --- Utilites --- */
.text-center { text-align: center; }

.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px; /* Adjust as needed */
    display: inline-block;
    vertical-align: middle;
}


.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255, 255, 255, 0.02);
    
    h2, h3, h4 {
        margin: 0;
        font-size: 1.25rem;
        color: #f1f5f9;
    }
}

.card-body {
    padding: 2rem;
    color: #f1f5f9-light;
    
    h3, h4 {
        color: #f1f5f9;
        margin-top: 0;
    }
}

.card-footer {
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: #00f2ff;
    color: #000;
    
    &:hover {
        background-color: #00f2ff-dark;
        box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
    }
}

.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.08);
    color: #f1f5f9;
    background: transparent;
    
    &:hover {
        border-color: #00f2ff;
        color: #00f2ff;
    }
}

.btn-outline-danger {
    border: 1px solid #ff5f56;
    color: #ff5f56;
    background: transparent;
    padding: 0.5rem 1rem;
    
    &:hover {
        background: #ff5f56;
        color: white;
    }
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
    
    label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: #f1f5f9;
    }
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    color: #f1f5f9;
    box-sizing: border-box;
    transition: border-color 0.2s;
    
    &:focus {
        outline: none;
        border-color: #00f2ff;
        background: rgba(0, 0, 0, 0.4);
        box-shadow: 0 0 0 1px rgba(0, 242, 255, 0.4);
    }
    
    &::placeholder {
        color: #f1f5f9-dim;
    }
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}

.alert-danger {
    background-color: rgba(#ff5f56, 0.1);
    color: #ff5f56;
    border-color: rgba(#ff5f56, 0.2);
}

.alert-success {
    background-color: rgba(#27c93f, 0.1);
    color: #27c93f;
    border-color: rgba(#27c93f, 0.2);
}

.alert-info {
    background-color: rgba(#00bceb, 0.1);
    color: #00bceb;
    border-color: rgba(#00bceb, 0.2);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-info {
    background-color: rgba(#00bceb, 0.15);
    color: #00bceb;
    border: 1px solid rgba(#00bceb, 0.3);
}

.stat-card {
    background: #131c2d;
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.2s;
    
    &:hover {
        transform: translateY(-2px);
        border-color: #00f2ff;
    }
    
    h4 {
        color: #f1f5f9-light;
        margin: 0;
        font-size: 1rem;
    }
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #00f2ff;
    margin: 0.5rem 0;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

/* --- Responsive Table (Card View) --- */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1rem;
    color: #f1f5f9-light;
    
    th, td {
        padding: 1rem 1.5rem;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    
    th {
        font-weight: 600;
        color: #f1f5f9;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 0.05em;
        background: rgba(255, 255, 255, 0.02);
    }
    
    tbody tr:hover {
        background-color: rgba(255, 255, 255, 0.02);
    }

    /* Mobile Responsive Logic */
    @media screen and (max-width: 768px) {
        border: 0;
        
        thead {
            display: none;
        }
        
        tr {
            display: block;
            margin-bottom: 1.5rem;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.08);
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        
        td {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255,255,255,0.08);
            font-size: 0.95rem;
            text-align: right;
            padding: 1rem;
            
            &:last-child {
                border-bottom: 0;
            }
            
            &::before {
                content: attr(data-label);
                font-weight: 600;
                text-transform: uppercase;
                font-size: 0.75rem;
                color: #f1f5f9-dim;
                text-align: left;
                margin-right: 1rem;
            }
        }
    }
}

// Landing Page Modern Styles & Animations
:root {
    /* Paleta de Colores: Deep Space & Neon (User Defined) */
    --bg-body: #03060b;
    --bg-surface: #0b121e;
    --bg-card: #131c2d;
    
    --primary: #00f2ff; /* Cian Brillante */
    --primary-glow: rgba(0, 242, 255, 0.4);
    
    --secondary: #7b61ff; /* Violeta Tecnológico */
    --cisco-blue: #00bceb; /* Cisco */
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --font-main: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
    
    --border: 1px solid rgba(255,255,255,0.08);
}

body.landing-mode {
    background-color: var(--bg-body) !important;
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* --- Animation Utilities --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    
    &.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
    
    &.visible {
        opacity: 1;
    }
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* --- Navbar (Landing Mode) --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    
    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
        position: relative;
    }
}

.logo {
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: #f1f5f9;
    z-index: 1001; /* Ensure above mobile menu */
    
    span {
        color: #00f2ff;
    }
}

/* Desktop Nav Links */
.nav-links {
    display: flex;
    gap: 2rem;
    
    a {
        text-decoration: none;
        color: #f1f5f9-light;
        font-family: 'Fira Code', monospace;
        font-size: 0.9rem;
        transition: color 0.2s;
        
        &:hover { color: #fff; }
        &.active { color: #00f2ff; }
    }
}

.highlight {
    color: #00f2ff !important;
    font-weight: 600;
}

/* Mobile Menu Button */
/* Mobile Menu Button - Neon Style */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 50%; /* Circular button */
    width: 45px;
    height: 45px;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2000; /* Extremely high z-index */
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    
    &:hover {
        background: rgba(0, 242, 255, 0.1);
        box-shadow: 0 0 15px var(--primary-glow);
        transform: rotate(90deg);
    }

    @media (max-width: 968px) {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile Responsive - Deep Space Overlay */
@media (max-width: 968px) {
    .nav-links {
        position: fixed; /* Fixed viewport */
        top: 0; 
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(3, 6, 11, 0.98); /* Almost solid deep black */
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        gap: 2rem;
        z-index: 1999; /* Just below button */
        
        /* Hidden State */
        opacity: 0;
        visibility: hidden;
        clip-path: circle(0% at 100% 0); /* Cool circular reveal effect */
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        
        &.active {
            opacity: 1;
            visibility: visible;
            clip-path: circle(150% at 100% 0);
        }
        
        a {
            font-size: 1.8rem; /* Large text */
            font-weight: 700;
            color: #fff;
            padding: 10px 0;
            border-bottom: 2px solid transparent;
            width: auto;
            text-align: center;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.3s ease;
            
            &:hover {
                color: var(--primary);
                text-shadow: 0 0 20px var(--primary-glow);
                letter-spacing: 2px;
                background: none;
            }
        }
        
        /* Staggered entry for links when active */
        &.active a {
            opacity: 1;
            transform: translateY(0);
        }
        &.active a:nth-child(1) { transition-delay: 0.1s; }
        &.active a:nth-child(2) { transition-delay: 0.2s; }
        &.active a:nth-child(3) { transition-delay: 0.3s; }
        &.active a:nth-child(4) { transition-delay: 0.4s; }
        &.active a:nth-child(5) { transition-delay: 0.5s; }
    }
}

/* --- Hero Section --- */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    
    @media (max-width: 968px) {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 8rem; /* Prevent Navbar Overlap on Mobile */
        gap: 3rem;
    }
}

.hero-role {
    font-family: 'Fira Code', monospace;
    color: #00f2ff;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
    
    .text-gradient {
        background: -webkit-linear-gradient(0deg, #fff, #00f2ff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        -webkit-box-decoration-break: clone;
        box-decoration-break: clone;
    }

    @media (max-width: 768px) {
        font-size: 2.5rem;
    }

    @media (max-width: 480px) {
        font-size: 2rem; /* Fix overflow for "Construyendo" */
        word-wrap: break-word;
    }
}

.hero-desc {
    color: #f1f5f9-light;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-group {
    display: flex;
    gap: 1rem;
    @media (max-width: 968px) {
        justify-content: center;
    }
}

/* --- Terminal Component --- */
.terminal-container {
    background: rgba(11, 18, 30, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.terminal-bar {
    background: #1e293b;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    
    .win-btn {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        
        &.close { background: #ff5f56; }
        &.min { background: #facc15; }
        &.max { background: #27c93f; }
    }
    
    .win-title {
        margin-left: auto;
        margin-right: auto;
        color: #f1f5f9-dim;
        font-size: 0.8rem;
    }
}

.terminal-content {
    padding: 1.5rem;
    color: #f1f5f9;
    min-height: 300px;
    
    .line {
        margin-bottom: 0.8rem;
    }
    
    .pr { color: #27c93f; margin-right: 0.5rem; }
    .cmd { color: #00f2ff; }
    .output { color: #f1f5f9-light; margin-left: 1rem; display: block; margin-top: 0.5rem; }
    
    .cursor {
        display: inline-block;
        width: 8px;
        height: 15px;
        background: #f1f5f9;
        animation: blink 1s infinite;
        vertical-align: middle;
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Timeline --- */
.section-padding {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.project-section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    border-bottom: 2px solid rgba(255,255,255,0.08);
    display: inline-block;
    padding-bottom: 0.5rem;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    
    &::before {
        content: '';
        position: absolute;
        left: 20px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: rgba(255,255,255,0.08);
    }
}

.timeline-item {
    margin-bottom: 3rem;
    padding-left: 60px;
    position: relative;
    
    .timeline-dot {
        position: absolute;
        left: 11px;
        top: 5px;
        width: 20px;
        height: 20px;
        background: #0b121e;
        border: 2px solid #00f2ff;
        border-radius: 50%;
        z-index: 2;
        box-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
    }
    
    .timeline-date {
        font-family: 'Fira Code', monospace;
        color: #00f2ff;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .timeline-role {
        font-size: 1.25rem;
        margin: 0 0 0.25rem 0;
    }
    
    .timeline-company {
        color: #f1f5f9-light;
        margin-bottom: 1rem;
    }
    
    p {
        color: #f1f5f9-dim;
        font-size: 0.95rem;
    }
}

/* --- Projects Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* --- Extreme Effects (User Requested) --- */

/* 3D Tilt Effect on Hover */
.project-card {
    background: rgba(19, 28, 45, 0.4); /* More transparent */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    
    /* 3D Settings */
    transform-style: preserve-3d;
    perspective: 1000px;
    
    &:hover {
        transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
        box-shadow: 
            0 20px 50px rgba(0,0,0,0.5),
            0 0 30px rgba(0, 242, 255, 0.1); /* Neon Ambient */
        border-color: var(--primary);
        
        /* Inner lighting */
        background: linear-gradient(135deg, rgba(19, 28, 45, 0.7) 0%, rgba(0, 242, 255, 0.05) 100%);

        .p-icon {
            transform: translateZ(20px) scale(1.1);
            text-shadow: 0 0 20px currentColor; /* Glowing Icon */
        }
        
        .p-title {
            transform: translateZ(10px);
            color: #fff;
        }
    }
}

/* --- Cisco Badges (Premium Holo Design) --- */
.cisco-badge {
    background: linear-gradient(160deg, rgba(11, 18, 30, 0.9) 0%, rgba(0, 188, 235, 0.05) 100%);
    border: 1px solid rgba(0, 188, 235, 0.2);
    border-left: 4px solid #00bceb; /* Strong accent */
    padding: 2.5rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 8px; /* Slightly squarer for tech look */

    h4 {
        margin: 1.5rem 0 0.5rem 0;
        color: #fff;
        font-family: var(--font-main);
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        font-size: 1.1rem;
    }

    .code-font {
        font-family: var(--font-code);
        color: #00bceb;
        font-size: 0.85rem;
        background: rgba(0, 188, 235, 0.1);
        padding: 4px 10px;
        border-radius: 4px;
        margin-bottom: 1rem;
        display: inline-block;
    }

    p:last-child {
        color: var(--text-muted);
        font-size: 0.9rem;
        line-height: 1.5;
        max-width: 90%;
    }

    /* Hover State */
    &:hover {
        transform: translateY(-8px) scale(1.02);
        background: linear-gradient(160deg, rgba(11, 18, 30, 0.95) 0%, rgba(0, 188, 235, 0.15) 100%);
        box-shadow: 0 10px 40px -10px rgba(0, 188, 235, 0.3);
        border-color: #00bceb;
        
        i {
            color: #00bceb !important;
            filter: drop-shadow(0 0 10px #00bceb);
            transform: scale(1.1) rotate(5deg);
        }
    }
    
    i { transition: 0.4s; }
}

/* --- Tech Arsenal (Skill Orbs/Pills) --- */
.skills-section-container {
    position: relative;
    z-index: 2;
}

.section-subtitle {
    font-size: 2rem;
    margin-bottom: 4rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.skill-group {
    margin-bottom: 4rem;
    text-align: center;

    h4 {
        margin-bottom: 1.5rem;
        font-family: var(--font-code);
        font-size: 1rem;
        letter-spacing: 2px;
        opacity: 0.9;
        display: inline-block;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* Category Specific Colors */
.skill-core h4 { color: var(--secondary); border-color: var(--secondary); }
.skill-infra h4 { color: var(--cisco-blue); border-color: var(--cisco-blue); }
.skill-front h4 { color: #27c93f; border-color: #27c93f; }

.skill-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.skill-pill {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);

    &:hover {
        transform: translateY(-3px);
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }
}

/* Specific Glows based on Parent Category */
.skill-core .skill-pill:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(123, 97, 255, 0.4);
    text-shadow: 0 0 10px rgba(123, 97, 255, 0.4);
}

.skill-infra .skill-pill:hover {
    border-color: var(--cisco-blue);
    box-shadow: 0 0 20px rgba(0, 188, 235, 0.4);
    text-shadow: 0 0 10px rgba(0, 188, 235, 0.4);
}

.skill-front .skill-pill:hover {
    border-color: #27c93f;
    box-shadow: 0 0 20px rgba(39, 201, 63, 0.4);
    text-shadow: 0 0 10px rgba(39, 201, 63, 0.4);
}

/* ================================================
   DOCUMENTACIÓN JOSSECURITY - DISEÑO MEJORADO CON ELEMENTOS SÓLIDOS
   ================================================ */

.docs-container {
    display: flex;
    gap: 3rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* ================================================
   SIDEBAR CON FONDO SÓLIDO
   ================================================ */
.docs-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: rgba(10, 14, 26, 0.95);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    &::-webkit-scrollbar {
        width: 4px;
    }
    
    &::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #00f2ff, #667eea);
        border-radius: 10px;
    }
}

.docs-nav {
    h3 {
        font-size: 1.1rem;
        font-weight: 600;
        color: #00f2ff;
        margin: 0 0 1.5rem 0;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid rgba(0, 242, 255, 0.3);
    }
}

.nav-section {
    margin-bottom: 2rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(100, 116, 139, 0.1);
    
    h4 {
        font-size: 0.75rem;
        font-weight: 600;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 1.2px;
        margin: 0 0 0.75rem 0;
        padding-left: 0.5rem;
    }
    
    ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    li {
        margin-bottom: 0.25rem;
    }
    
    a {
        display: block;
        padding: 0.6rem 0.75rem;
        color: #94a3b8;
        text-decoration: none;
        font-size: 0.9rem;
        border-radius: 6px;
        border-left: 2px solid transparent;
        transition: all 0.2s ease;
        font-family: 'Inter', sans-serif;
        
        &:hover {
            color: #f1f5f9;
            background: rgba(0, 242, 255, 0.08);
            border-left-color: #00f2ff;
            transform: translateX(2px);
        }
        
        &.active {
            color: #00f2ff;
            background: rgba(0, 242, 255, 0.15);
            border-left-color: #00f2ff;
            font-weight: 500;
            box-shadow: 0 2px 8px rgba(0, 242, 255, 0.2);
        }
    }
}

/* ================================================
   CONTENIDO CON FONDO SÓLIDO
   ================================================ */
.docs-content {
    flex: 1;
    min-width: 0;
    padding-bottom: 4rem;
    background: rgba(10, 14, 26, 0.95);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.docs-breadcrumb {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 242, 255, 0.2);
    font-family: 'Inter', sans-serif;
    background: rgba(15, 23, 42, 0.5);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    
    a {
        color: #00f2ff;
        text-decoration: none;
        transition: opacity 0.2s ease;
        font-weight: 500;
        
        &:hover {
            opacity: 0.8;
        }
    }
}

/* ================================================
   MARKDOWN CONTENT CON ELEMENTOS SÓLIDOS
   ================================================ */
.markdown-content {
    line-height: 1.7;
    color: #f1f5f9;
    font-family: 'Inter', sans-serif;
    
    // Headings con cajas de fondo
    h1 {
        font-size: 2.5rem;
        font-weight: 700;
        color: #f1f5f9;
        margin: 0 0 2rem 0;
        line-height: 1.2;
        background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), rgba(102, 126, 234, 0.1));
        padding: 1.5rem;
        border-radius: 8px;
        border-left: 4px solid #00f2ff;
        
        &::before {
            content: '';
            display: inline-block;
            width: 6px;
            height: 40px;
            background: linear-gradient(135deg, #00f2ff, #667eea);
            margin-right: 1rem;
            border-radius: 3px;
            vertical-align: middle;
        }
    }
    
    h2 {
        font-size: 1.875rem;
        font-weight: 600;
        color: #f1f5f9;
        margin: 3rem 0 1.5rem 0;
        padding: 1rem 1.25rem;
        background: rgba(15, 23, 42, 0.6);
        border-radius: 8px;
        border-left: 3px solid #00f2ff;
    }
    
    h3 {
        font-size: 1.5rem;
        font-weight: 600;
        color: #00f2ff;
        margin: 2.5rem 0 1rem 0;
        padding-left: 1rem;
        border-left: 3px solid rgba(0, 242, 255, 0.5);
    }
    
    h4 {
        font-size: 1.25rem;
        font-weight: 600;
        color: #94a3b8;
        margin: 2rem 0 1rem 0;
    }
    
    p {
        margin: 1.25rem 0;
        color: #cbd5e1;
        font-size: 1rem;
        line-height: 1.7;
    }
    
    // Links
    a {
        color: #00f2ff;
        text-decoration: none;
        border-bottom: 1px dashed rgba(0, 242, 255, 0.3);
        transition: all 0.2s ease;
        
        &:hover {
            border-bottom-color: #00f2ff;
            background: rgba(0, 242, 255, 0.05);
            padding: 0 2px;
        }
    }
    
    // Listas con cajas
    ul, ol {
        margin: 1.5rem 0;
        padding-left: 0;
        color: #cbd5e1;
        
        li {
            margin: 0.75rem 0;
            line-height: 1.6;
            padding: 0.75rem 1rem;
            background: rgba(15, 23, 42, 0.4);
            border-radius: 6px;
            border-left: 3px solid rgba(0, 242, 255, 0.3);
            list-style: none;
            position: relative;
            padding-left: 2.5rem;
            
            &:before {
                content: '▸';
                position: absolute;
                left: 1rem;
                color: #00f2ff;
                font-weight: bold;
            }
        }
    }
    
    ol li {
        counter-increment: item;
        
        &:before {
            content: counter(item);
            background: linear-gradient(135deg, #00f2ff, #667eea);
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: 600;
        }
    }
    
    ol {
        counter-reset: item;
    }
    
    // Código inline simple
    code {
        background: rgba(100, 116, 139, 0.2);
        color: #e2e8f0;
        padding: 0.2em 0.4em;
        border-radius: 3px;
        font-size: 0.9em;
        font-family: 'Fira Code', monospace;
    }
    
    // Bloques de código simple estilo GitHub
    pre {
        background: #161b22;
        border: 1px solid rgba(100, 116, 139, 0.2);
        border-radius: 6px;
        padding: 16px;
        overflow: auto;
        margin: 16px 0;
        line-height: 1.45;
        
        code {
            background: transparent;
            border: none;
            padding: 0;
            color: #e6edf3;
            font-size: 13px;
            display: block;
        }
    }
    
    // Blockquotes con caja sólida
    blockquote {
        margin: 2rem 0;
        padding: 1.5rem 1.75rem;
        border-left: 4px solid #00f2ff;
        background: linear-gradient(135deg, rgba(0, 242, 255, 0.08), rgba(102, 126, 234, 0.05));
        color: #cbd5e1;
        border-radius: 0 8px 8px 0;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(0, 242, 255, 0.2);
        border-left: 4px solid #00f2ff;
        
        p {
            margin: 0.5rem 0;
            
            &:first-child {
                margin-top: 0;
            }
            
            &:last-child {
                margin-bottom: 0;
            }
        }
    }
    
    // Tablas con diseño sólido
    table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        margin: 2rem 0;
        font-size: 0.9375rem;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid rgba(0, 242, 255, 0.2);
        background: rgba(10, 14, 26, 0.6);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
    
    table th {
        background: linear-gradient(135deg, rgba(0, 242, 255, 0.2), rgba(102, 126, 234, 0.2));
        color: #00f2ff;
        font-weight: 600;
        padding: 1rem 1.25rem;
        text-align: left;
        border-bottom: 2px solid rgba(0, 242, 255, 0.3);
        text-transform: uppercase;
        font-size: 0.8125rem;
        letter-spacing: 0.5px;
    }
    
    table td {
        padding: 0.875rem 1.25rem;
        border-bottom: 1px solid rgba(100, 116, 139, 0.2);
        color: #cbd5e1;
        background: rgba(15, 23, 42, 0.3);
    }
    
    table tr {
        transition: background 0.2s ease;
        
        &:hover td {
            background: rgba(0, 242, 255, 0.05);
        }
    }
    
    table tr:last-child td {
        border-bottom: none;
    }
    
    // HR con estilo sólido
    hr {
        border: none;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.5), transparent);
        margin: 3rem 0;
        box-shadow: 0 1px 4px rgba(0, 242, 255, 0.3);
    }
    
    // Strong y em
    strong {
        color: #00f2ff;
        font-weight: 600;
        background: rgba(0, 242, 255, 0.05);
        padding: 0 4px;
        border-radius: 2px;
    }
    
    em {
        color: #94a3b8;
        font-style: italic;
    }
    
    // Imágenes con marco
    img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 2rem 0;
        border: 2px solid rgba(0, 242, 255, 0.2);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 968px) {
    .docs-container {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .docs-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        margin-bottom: 2rem;
    }
    
    .markdown-content {
        h1 {
            font-size: 2rem;
            padding: 1rem;
        }
        
        h2 {
            font-size: 1.5rem;
        }
        
        h3 {
            font-size: 1.25rem;
        }
    }
}

@media (max-width: 640px) {
    .docs-container {
        margin: 1rem auto;
    }
    
    .docs-content {
        padding: 1.5rem;
    }
    
    .markdown-content {
        font-size: 0.9375rem;
        
        h1 {
            font-size: 1.75rem;
        }
        
        h2 {
            font-size: 1.375rem;
        }
        
        pre {
            padding: 1rem;
            font-size: 0.85rem;
        }
        
        table {
            font-size: 0.875rem;
        }
        
        ul li, ol li {
            padding: 0.5rem 0.75rem;
            padding-left: 2rem;
        }
    }
}