body{
    margin: 0;
    background-color: #212121;

}

/* Estilos generales del navbar */
.navbar {
    padding: 0px;
    height: 50px;
    background-color: #212021; /* Color de fondo del navbar */
}

#Logo{
    width: 255px;
    height: 80px
}

.container{
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.navbar-brand {
    align-items: center;
    gap: 10px;
}


/* Menú lateral mejorado */
.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    height: 100%;
    background: rgba(33, 32, 33, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease-in-out;
    z-index: 999; /* Siempre por encima */
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    align-items: center;
}

/* Botón de cerrar menú */
.close-menu {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Se muestra el menú al abrir */
.nav-menu.open {
    transform: translateX(0);
}
.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 20px 0;
    height: 100%;
    flex-direction: column;
    margin: 105px 0 0 0;
    width: 100%;
}

.nav-item {
    padding: 15px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: normal;
    margin: 6px 0;
}

.nav-link {
    font-family: 'Poppins';
    text-decoration: none;
    color: #fff; /* Color de los enlaces */
    font-size: 18px;
}

.nav-link i {
    margin-right: 10px;
    font-size: 18px;
}


/* Botón Códipre con un diseño más llamativo */
.codipre {
    font-weight: bold;
    color: white;
    background-color: #e63946; /* Rojo llamativo */
    padding: 12px 25px;
    border-radius: 50px 15px 50px 15px; /* Bordes curvados de forma asimétrica */
    text-align: center;
    display: inline-block;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.5); /* Sombra para dar efecto 3D */
}

.dropdown-menu {
    opacity: 0;
    max-height: 0;
    pointer-events: none; /* Evita que sea clickeable */
    list-style: none;
    text-align: left;
    padding: 0px;
    border-radius: 30px 15px 30px 15px;
    background-color: #282828b3;
    box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.3);
    z-index: 100;
    width: 100%;
    transition: opacity 0.4s ease, max-height 0.4s ease;
}

/* Cuando se activa el dropdown */
.dropdown-menu.show {
    opacity: 1;
    max-height: 500px;
    pointer-events: auto; /* Ahora sí permite interacción */
}


/* Estilos del botón de menú */
.menu {
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    padding: 0;
    position: relative;
    z-index: 2; /* Asegura que el botón esté sobre el menú */
}

.line {
    fill: none;
    stroke: white; /* Cambié el color de las líneas a blanco */
    stroke-width: 6;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line1 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
}

.line2 {
    stroke-dasharray: 60 60;
    stroke-width: 6;
}

.line3 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
}

.opened .line1 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
}

.opened .line2 {
    stroke-dasharray: 1 60;
    stroke-dashoffset: -30;
    stroke-width: 6;
}

.opened .line3 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
}



/* En dispositivos móviles el submenú aparecerá justo debajo del item principal */
@media screen and (max-width: 1024px) {
    .dropdown-menu {
        position: relative;
        width: 100%; /* Para que el submenú ocupe todo el ancho del contenedor */
        top: 0; /* Justo debajo del link principal */
    }
    
    .dropdown-item {
        padding: 12px;
        font-size: 16px;
    }

    /* Diseño de los enlaces */
    .dropdown-link {
        text-decoration: none;
        color: white;
        transition: background-color 0.3s ease;
    }

    .dropdown-link:hover {
        background-color: #ff4f5e; /* Cambio de fondo al hacer hover */
    }
}
/* Ocultar el botón de menú en pantallas grandes */
@media screen and (min-width: 724px) {

    .navbar{
        padding: 5px;
    }

    .menu {
        display: none;
    }

    .close-menu{
        display: none;
    }
    /* Ajustar el menú para PC */
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: none;
        box-shadow: none;
        transform: none;
        transition: none;
        opacity: 1;
        background: transparent;
        backdrop-filter: blur(0px);
        padding: 0;
    }

    .navbar-nav {
        display: flex;
        flex-direction: row;
        gap: 10px;
        margin: 0;
        padding: 0;
    }

    .nav-item {
        padding: 0;
    }

    .nav-item i{
        display: none;
    }
    
    .nav-link {
        font-size: 14px;
        color: #fff;
        text-decoration: none;
        padding: 10px 15px;
        transition: color 0.3s ease-in-out;
    }

    .nav-link:hover {
        color: #e63946;
    }

    /* Ajustar el botón Códipre */
    .codipre {
        margin-left: 20px;
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 15px 50px 15px 50px;
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
        background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
        color 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
        border-radius 0.3s cubic-bezier(0.76, 0, 0.24, 1);
    }
    
    .codipre:hover {
        border-radius: 50px 10px 50px 15px;
        color: #212021;
        background-color: #ff4f5e; /* Un rojo más claro al hacer hover */
        transform: scale(1.04); /* Aumento más sutil */
    }

    .dropdown-menu {
        position: absolute;
        background-color: #212021d9;
        border-radius: 10px 10px 10px 10px; /* Bordes curvados de forma asimétrica */        
        padding: 10px;
        width: 200px;
        box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.3);
    }

    .dropdown-item{
        padding: 6px 0;
        
    }

    
    .dropdown-link{
        color: white;
        text-decoration: none;
        transition:color 0.3s ease-out;
    }
    

    .dropdown-link:hover{
        color: #e63946;
    }
}