/* --- CONFIGURACIÓN BASE --- */
.navbar {
    background: rgba(15, 23, 42, 0.95); /* Un poco más opaco para legibilidad */
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* IMPORTANTE: Cambiado de 90% a 100% para que no se corte */
    box-sizing: border-box; /* Evita que el padding ensanche la barra */
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00d2ff;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.dot {
    height: 10px;
    width: 10px;
    background-color: #00d2ff;
    border-radius: 50%;
}

/* --- LINKS PARA ESCRITORIO --- */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #cbd5e1;
    transition: 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: #00d2ff;
}

.btn-contact {
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
}

/* --- ICONO DE HAMBURGUESA (Visibilidad corregida) --- */
.menu-icon {
    display: none; /* Se oculta en PC */
    flex-direction: column;
    justify-content: space-between;
    width: 30px; /* Ancho del botón */
    height: 20px; /* Alto del botón */
    cursor: pointer;
    z-index: 1100;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: #ffffff; /* Color blanco sólido para que resalte */
    border-radius: 10px;
    transition: 0.3s ease-in-out;
}

/* --- MEDIA QUERY (Móviles y Tablets) --- */
@media (max-width: 992px) {
    .menu-icon {
        display: flex; /* APARECE AQUÍ */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido por defecto a la derecha */
        height: 100vh;
        width: 80%; /* Ancho del panel lateral */
        background: #0f172a; /* Azul sólido para cubrir el fondo */
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    /* Clase que activa el JS al hacer click */
    .nav-links.active {
        right: 0; /* Entra el menú lateral */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.4rem;
        display: block;
        padding: 10px;
    }

    /* Animación de las barras a forma de X */
    .menu-icon.open .bar:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
    .menu-icon.open .bar:nth-child(2) { opacity: 0; }
    .menu-icon.open .bar:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
}


/* --- ICONOS SOCIALES EN EL MENÚ MÓVIL --- */
.social-mobile {
    display: block; /* Solo se ve en el panel lateral */
}

.social-icons-mobile {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-icons-mobile a {
    color: #cbd5e1;
    font-size: 1.5rem;
    transition: 0.3s;
    text-decoration: none;
}

.social-icons-mobile a:hover {
    color: #00d2ff;
    transform: scale(1.2);
}

/* Aseguramos que en escritorio estos iconos no se vean */
@media (min-width: 993px) {
    .social-mobile {
        display: none;
    }
}