@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');


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

body{
    font-family: 'Poppins', sans-serif;
}

.menu{
    background-color: #084488;
    color: #fff;
    height: 70px;
}

.menu__container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
}

.menu__links{
    height: 100%;
    transition: transform .5s;
    display: flex;
}

.menu__item{
    list-style: none;
    position: relative;
    height: 100%;
    --clip: polygon(0 0, 100% 0, 100% 0, 0 0);
    --transform: rotate(-90deg);
}

.menu__item:hover{
    --clip: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    --transform: rotate(0);
}

.menu__link{
    color: #fff;
    text-decoration: none;
    padding: 0 30px;
    display: flex;
    height: 100%;
    align-items: center;
}

.menu__link:hover{
    background-color: #5e7094;
}


.menu__arrow{
    transform: var(--transform);
    transition: transform .3s;
    display: block;
    margin-left: 3px;
}

.menu__nesting{
    list-style: none;
    transition:clip-path .3s;
    clip-path: var(--clip);
    position: absolute;
    right: 0;
    bottom: 0;
    width: max-content;
    transform: translateY(100%);
    background-color: #084488;
}

.menu__link--inside{
    padding: 30px 100px 30px 20px;
}

.menu__link--inside:hover{
    background-color: #798499;
}

.menu__hamburguer{
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    cursor: pointer;
    display: none;
}

.menu__img{
    display: block;
    width: 36px;
}



@media (max-width:800px){
    .menu__hamburguer{
        display: flex;
    }

    .menu__item{
        --clip:0;
        overflow:hidden ;
    }

    .menu__item--active{
        --transform: rotate(0);
        --background: #5e7094;
    }

    .menu__item--show{
        background-color: var(--background);
    }


    .menu__links{
        position: fixed;
        max-width: 400px;
        width: 100%;
        top: 70px;
        bottom: 0;
        right: 0;
        background-color: #084488;
        overflow-y: auto;
        display: grid;
        grid-auto-rows: max-content;
        transform: translateX(100%);
    }

    .menu__links--show{
        transform: unset;
        width: 100%;
    }

    .menu__link{
        padding: 25px 0;
        padding-left: 30px;
        height: auto;
    }

    .menu__arrow{
        margin-left: auto;
        margin-right: 20px;
    }

    .menu__nesting{
        display: grid;
        position: unset;
        width: 100%;
        transform: translateY(0);
        height: 0;
        transition: height .3s;
    }

    .menu__link--inside{
        width: 90%;
        margin-left: auto;
        border-left: 1px solid #798499;
    }
}

/* Estilo para el contenedor de perfiles */
.profiles {
    display: flex;
    flex-wrap: wrap; /* Permite que los perfiles salten de línea si es necesario */
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    min-height: calc(100vh - 70px); /* Calcula el alto restante debajo del menú */
    background-color: #f4f4f4; /* Fondo claro para destacar */
    padding: 20px;
    gap: 20px; /* Espaciado entre perfiles */
}

/* Estilo individual para cada perfil */
.profile {
    background-color: #084488; /* Mismo color que el menú */
    color: #fff; /* Texto blanco */
    padding: 15px 30px;
    border-radius: 8px; /* Bordes redondeados */
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra suave */
    text-align: center;
    min-width: 150px;
    max-width: 200px;
    word-wrap: break-word; /* Manejo de palabras largas */
    text-decoration: none;
}


/* chat gpt integrado */

.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
}

.chat-widget__toggle {
    background-color: #084488;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.chat-widget__window {
    width: 300px;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.chat-widget__header {
    background-color: #084488;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.chat-widget__messages {
    height: 200px;
    overflow-y: auto;
    padding: 10px;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
}

.chat-widget__input {
    width: calc(100% - 20px);
    padding: 10px;
    border: none;
    margin: 10px;
    border-radius: 5px;
    resize: none;
}

.chat-widget__send {
    background-color: #084488;
    color: #fff;
    border: none;
    padding: 10px;
    margin: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}




/* Estilo del footer */
.footer {
    background-color: #084488; /* Mismo color que el menú */
    color: #fff; /* Texto blanco */
    text-align: center; /* Centrado del texto */
    padding: 20px 10px; /* Espaciado */
    font-size: 14px; /* Tamaño de fuente más pequeño */
    margin-top: 20px; /* Separación del contenido principal */
    position: relative; /* Mantener relativo por defecto */
}

.footer__container p {
    margin: 5px 0; /* Espaciado entre líneas */
}


/* Forzar el footer al final de la página */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Altura mínima para cubrir toda la ventana */
    margin: 0; /* Eliminar márgenes */
}

main {
    flex: 1; /* Forzar a ocupar el espacio restante del contenedor */
}

.footer {
    position: relative; /* No necesita ser absolute dentro del diseño flex */
}

/* LOGIN */

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f4;
}

.login-title {
    font-size: 24px;
    color: #084488;
    margin-bottom: 20px;
}

.login-form {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    color: #084488;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-button {
    background-color: #084488;
    color: #fff;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.login-button:hover {
    background-color: #062c5c;
}

.error-message {
    color: red;
    text-align: center;
    margin-top: 10px;
}
