/* ========================================
   NAVBAR LATERAL - DISEÑO PROFESIONAL
   ======================================== */

:root {
    --primary-color: #1a1a2e;
    --accent-color: #00d9ff;
    --text-light: #ffffff;
    --text-muted: #8892b0;
    --bg-dark: #0a0a0f;
    --navbar-width: 85px;
    --navbar-width-hover: 245px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* Navbar lateral */
.navbar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--navbar-width);
    height: 100vh;
    background: linear-gradient(180deg, #0d0d12 0%, #1a1a2e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    z-index: 1000;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar:hover {
    width: var(--navbar-width-hover);
}

/* Logo */
.navbar-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-color), #7b2cbf);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 50px;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
}

/* Links */
.navbar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.navbar-links li {
    width: 100%;
}

.navbar-links a {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 25px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.navbar-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.04);
}

.navbar-links a:hover::before,
.navbar-links a.active::before {
    transform: scaleY(1);
}

/* Dock hover effect */
.navbar-links li {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.navbar-links:has(li:hover) li {
    transform: scale(0.82) translateY(4px);
    opacity: 0.45;
}

.navbar-links li:hover {
    transform: scale(1.18) translateY(0) !important;
    opacity: 1 !important;
}

.navbar-links li:hover ~ li {
    transform: scale(0.82) translateY(7px) !important;
}

.navbar-links:has(li:nth-child(2):hover) li:nth-child(1) {
    transform: scale(0.82) translateY(-7px) !important;
}
.navbar-links:has(li:nth-child(3):hover) li:nth-child(1),
.navbar-links:has(li:nth-child(3):hover) li:nth-child(2) {
    transform: scale(0.82) translateY(-7px) !important;
}
.navbar-links:has(li:nth-child(4):hover) li:nth-child(1),
.navbar-links:has(li:nth-child(4):hover) li:nth-child(2),
.navbar-links:has(li:nth-child(4):hover) li:nth-child(3) {
    transform: scale(0.82) translateY(-7px) !important;
}

.navbar-links a.active i {
    color: var(--accent-color);
    filter: drop-shadow(0 0 6px rgba(0, 217, 255, 0.5));
}

.navbar-links a i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    color: var(--accent-color);
}

.navbar-links a span {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.navbar:hover .navbar-links a span {
    opacity: 1;
    transform: translateX(0);
}

/* Footer */
.navbar-footer {
    margin-top: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.navbar-footer a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(0.85);
    opacity: 0.6;
}

.navbar:hover .navbar-footer a {
    transform: scale(1.25);
    opacity: 1;
    color: var(--accent-color);
}

.navbar-footer a:hover {
    transform: scale(1.45) !important;
    color: var(--accent-color);
    filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.6));
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        width: 100%;
        height: 70px;
        flex-direction: row;
        padding: 0 20px;
        position: fixed;
        bottom: 0;
        top: auto;
        justify-content: space-between;
    }

    .navbar:hover {
        width: 100%;
    }

    .navbar-logo {
        margin-bottom: 0;
        margin-right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .navbar-links {
        flex-direction: row;
        justify-content: space-around;
        width: auto;
        flex: 1;
    }

    .navbar-links a {
        padding: 8px 12px;
        flex-direction: column;
        gap: 4px;
        font-size: 0.65rem;
    }

    .navbar-links a span {
        opacity: 1;
        transform: none;
    }

    .navbar-links a::before {
        display: none;
    }

    .navbar-footer {
        display: none;
    }

    /* Disable dock effect on mobile */
    .navbar-links:has(li:hover) li,
    .navbar-links li:hover,
    .navbar-links li:hover ~ li,
    .navbar-links:has(li:nth-child(2):hover) li:nth-child(1),
    .navbar-links:has(li:nth-child(3):hover) li:nth-child(1),
    .navbar-links:has(li:nth-child(3):hover) li:nth-child(2),
    .navbar-links:has(li:nth-child(4):hover) li:nth-child(1),
    .navbar-links:has(li:nth-child(4):hover) li:nth-child(2),
    .navbar-links:has(li:nth-child(4):hover) li:nth-child(3) {
        transform: none !important;
        opacity: 1 !important;
    }
}
