/* ===================== NAVIGATOR DESKTOP ===================== */
.navigator-desktop {
    position: relative;
    background: linear-gradient(
        180deg,
        var(--bg-card) 0%,
        var(--bg-darker) 100%
    );
    border-right: 2px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Efecto cyber decorativo */
.cyber-content {
    position: absolute;
    right: -30px;
    bottom: 200px;
    width: 200px;
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    pointer-events: none;
    z-index: 1;
}

.cyber-line {
    position: absolute;
    width: 80px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-primary),
        transparent
    );
    border-radius: 20px;
    transform: rotate(310deg);
    animation: flash 3s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes flash {
    0%,
    100% {
        opacity: 0.3;
        box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.6);
    }
}

.cyber-line:nth-child(odd) {
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-accent),
        transparent
    );
}

.cyber-line:nth-child(1) {
    bottom: 90px;
    right: 130px;
    animation-delay: 0s;
}
.cyber-line:nth-child(2) {
    top: 240px;
    right: 100px;
    animation-delay: 0.5s;
}
.cyber-line:nth-child(3) {
    bottom: -70px;
    right: 50px;
    animation-delay: 1s;
}
.cyber-line:nth-child(4) {
    bottom: 140px;
    right: 60px;
    animation-delay: 1.5s;
}
.cyber-line:nth-child(5) {
    bottom: 170px;
    right: 0px;
    animation-delay: 2s;
}
.cyber-line:nth-child(6) {
    bottom: 10px;
    right: 50px;
    animation-delay: 2.5s;
}
.cyber-line:nth-child(7) {
    bottom: 10px;
    right: 180px;
    animation-delay: 0.3s;
}
.cyber-line:nth-child(8) {
    top: 190px;
    right: 20px;
    animation-delay: 0.8s;
}
.cyber-line:nth-child(9) {
    bottom: -30px;
    right: 120px;
    animation-delay: 1.3s;
}
.cyber-line:nth-child(10) {
    bottom: 0px;
    right: 0px;
    animation-delay: 1.8s;
}

/* Foto de perfil */
.nav-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

.nav-photo img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-primary);
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.nav-photo img:hover {
    transform: scale(1.05);
    border-color: var(--color-accent);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

/* Contenedor de items de navegación */
.nav-item-container {
    display: flex;
    flex-direction: column;
    height: 55vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    margin: 0.375rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--color-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateX(8px);
}

.nav-item:hover::before {
    transform: scaleY(1);
}

.nav-item.active {
    background: linear-gradient(
        90deg,
        var(--color-primary) 0%,
        transparent 100%
    );
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-item i {
    font-size: 1.25rem;
    min-width: 24px;
    margin-right: 0.75rem;
}

.nav-item button {
    background: none;
    border: none;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    flex: 1;
    padding: 0;
}

/* Links sociales */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.link-item:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.link-item i {
    font-size: 1.125rem;
    min-width: 24px;
    margin-right: 0.75rem;
    color: var(--color-primary);
}

.link-item a {
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
}

.link-item:hover a {
    color: var(--text-primary);
}

/* ===================== MOBILE COMPONENTS ===================== */
/* Header Mobile - Oculto en desktop */
.mobile-header {
    display: none;
}

/* Navigator Mobile - Oculto en desktop */
.navigator-mobile {
    display: none;
}

/* Overlay del menú - Oculto en desktop */
.menu-overlay {
    display: none;
}

/* ===================== TABLETS (768px - 1024px) ===================== */
@media (max-width: 1024px) {
    .nav-photo img {
        width: 120px;
        height: 120px;
    }

    .nav-item {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .nav-item i {
        font-size: 1.125rem;
    }
}

/* ===================== MOBILE (hasta 768px) ===================== */
@media (max-width: 768px) {
    /* Ocultar navigator desktop completamente */
    .navigator-desktop {
        display: none;
    }

    /* Mostrar header mobile */
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.25rem;
        background: linear-gradient(
            180deg,
            var(--bg-card) 0%,
            var(--bg-darker) 100%
        );
        border-bottom: 2px solid var(--border-color);
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: var(--shadow-md);
    }

    .mobile-header-content {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .mobile-profile-pic {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--color-primary);
        box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
    }

    .mobile-info h3 {
        font-size: 1rem;
        color: var(--text-primary);
        margin: 0;
        font-weight: 600;
    }

    .mobile-info p {
        font-size: 0.8125rem;
        color: var(--text-muted);
        margin: 0;
    }

    /* Botón hamburguesa */
    .hamburger-btn {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        display: flex;
        flex-direction: column;
        gap: 5px;
        z-index: 1001;
        transition: all 0.3s ease;
    }

    .hamburger-btn span {
        display: block;
        width: 28px;
        height: 3px;
        background: var(--color-primary);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .hamburger-btn:hover span {
        background: var(--color-accent);
    }

    .hamburger-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .hamburger-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Overlay oscuro */
    .menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
        backdrop-filter: blur(4px);
    }

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

    /* Navigator Mobile como sidebar */
    .navigator-mobile {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(
            180deg,
            var(--bg-card) 0%,
            var(--bg-darker) 100%
        );
        z-index: 999;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: var(--shadow-lg);
    }

    .navigator-mobile.active {
        left: 0;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .mobile-nav-content {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 1.5rem 0;
    }

    /* Título del menú mobile */
    .mobile-nav-content::before {
        content: "Menú de Navegación";
        display: block;
        padding: 0 1.5rem 1rem;
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--color-primary);
        border-bottom: 2px solid var(--border-color);
        margin-bottom: 1rem;
    }

    /* Items de navegación mobile */
    .navigator-mobile .nav-item-container {
        height: auto;
        flex: 1;
        padding: 0 1rem;
        overflow-y: auto;
    }

    .navigator-mobile .nav-item {
        padding: 1rem 1.25rem;
        margin: 0.5rem 0;
        font-size: 1rem;
    }

    .navigator-mobile .nav-item:hover {
        transform: translateX(4px);
    }

    /* Links sociales mobile */
    .navigator-mobile .links-container {
        margin-top: auto;
        padding: 1.5rem 1rem;
        border-top: 2px solid var(--border-color);
    }

    .navigator-mobile .link-item {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
    }
}

/* ===================== MOBILE PEQUEÑO (hasta 480px) ===================== */
@media (max-width: 480px) {
    .mobile-header {
        padding: 0.875rem 1rem;
    }

    .mobile-profile-pic {
        width: 45px;
        height: 45px;
    }

    .mobile-info h3 {
        font-size: 0.9375rem;
    }

    .mobile-info p {
        font-size: 0.75rem;
    }

    .navigator-mobile {
        width: 260px;
    }

    .hamburger-btn span {
        width: 25px;
    }

    .mobile-nav-content::before {
        font-size: 1.125rem;
        padding: 0 1.25rem 0.875rem;
    }

    .navigator-mobile .nav-item {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
}

/* ===================== EXTRA SMALL (hasta 360px) ===================== */
@media (max-width: 360px) {
    .mobile-header {
        padding: 0.75rem 0.875rem;
    }

    .mobile-profile-pic {
        width: 40px;
        height: 40px;
    }

    .mobile-info h3 {
        font-size: 0.875rem;
    }

    .mobile-info p {
        font-size: 0.6875rem;
    }

    .navigator-mobile {
        width: 240px;
    }

    .hamburger-btn span {
        width: 23px;
        height: 2.5px;
    }

    .mobile-nav-content::before {
        font-size: 1rem;
    }

    .navigator-mobile .nav-item {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }
}
