/* variables de estilo */
    :root{
        --gris_fora: #20232C;
    }
    a:hover{
        text-decoration: none !important;
    }

/*APARTADO GENERAL*/
    body{
        background-image: url('../img/imgGenerales/background_image.jpg');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
        background-attachment: fixed;
        height: 100dvh;
        margin:0;
    }
    @font-face {
        font-family: 'Poppins';
        src: url('Poppins-Regular.ttf');
    }
    *{
        font-family: 'Poppins', sans-serif;
    }

    /* barra de scroll */
        ::-webkit-scrollbar {
            width: 8px;
            background-color: #888;
        }
        ::-webkit-scrollbar-thumb {
            background-color:var(--gris_fora); 
            border-radius: 4px; 
        }
        ::-webkit-scrollbar-thumb:hover {
            background-color: var(--gris_fora);
        }

/* estilo de la cabecera */
    .superior{
        width: 100%;
        height: 60px;
        background-color: var(--gris_fora);
        display: flex;
        justify-content: space-between;
    }

    

    /* estilo del logo de fora */
        .superior a{
            text-decoration: none;
            margin-left: 8%;
        }
        .superior a:hover{
            text-decoration: none;
        }
        .titulo{
            color: whitesmoke;
            font-weight: bold;
            font-size: 38px;
        }
        .subtitulo{
            color: whitesmoke;
            font-weight: bold;
            font-size: 12px;
        }
        .logotipoSuperior{
            width: 160px;
            position: absolute;
            right: 100px;
        }
        .logotipoSuperior2{
            width: 30px;
            margin-top: -13px;
            margin-right: 5px;
        }


    /* icono de usuario */
        .logo_superior{
            margin-right: 2rem;
            margin-top: 8px;
            width: 45px;
            border-radius: 100px;
            transition: all 0.5s;
            background-color: whitesmoke;
            cursor: pointer;
        }
        .logo_superior:hover{
            scale: 1.1;
        }

/* estilo del modal */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        transition: opacity 0.3s;
    }
    @keyframes animacion_modal {
        from {opacity: 0%; top:30%}
        to {opacity: 100%; top:50%}
    }
    .modal-content{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 20px;
        border-radius: 5px;
        text-align: center;
        margin:auto;
        animation-name: animacion_modal;
        animation-duration:0.3s;
    }
    .close-modal {
        position: absolute;
        top: 10px;
        right: 20px;
        cursor: pointer;
        scale: 2;
    }

/* estilo del formulario de sesión */
    #formulario_sesion{
        z-index: 10000;
        display: flex;
        flex-direction: column;
        text-align: left;
        align-items: left;
        border: 1px solid black;
        border-radius: 10px;
        position: absolute;
        margin-top: 7px;
        left: -250px;
        width: 300px;
        min-height: 210px;
        height: auto;
        background-color: whitesmoke;
        transform-origin: top right;
        transition: all 0.4s;
    }
    #formulario_sesion h2{
        margin-top: 20px;
        margin-left: 20px;
        font-size: 18px;
    }

    #formulario_sesion .panelUsuario{
        position: absolute;
        top: 15px;
        right: 15px;
        color: whitesmoke;
        border-radius: 5px;
        background-color: var(--gris_fora);
        font-size: 12px;
    }

    #contenedor_sesion{
        position: relative;
    }
    #descarga_manual, #configuracionEE{
        margin-top: 6px;
        font-size: 18px;
        margin-bottom: 6px;
    }

    #form_cambiar_contra{
        margin-left: 20px;
        font-size: 18px;
    }
    #form_cerrar_admin{
        font-size: 18px;
    }
    .input_oculto{
        display: none;
    }
    .input_visible{
        width: 90%;
        margin:3px;
        transition: all 0.5s;
        font-size: 18px;
    }

    /* botones de la api key */
        .api_key_container{
            position: absolute;
            width: 100%;
            bottom: 50px;
            margin-left: 20px;
            font-size: 18px;
        }
        .api_key_container>button{
            border:none;
            background:none;
        }
        #aviso_copia_key{
            font-family:'Poppins', sans-serif;
            font-size: 12px;
            width:30%;
            right:20px;
            bottom:22%;
            text-align:left;
            font-size:90%;
            float:left;
            background-color: #333; 
            padding:5px;
            border-radius: 5px;
            position:absolute;
            transition-duration: 0.3s;
            opacity: 0;
            display: block;
            color: #fff;
            z-index: 1;
            cursor:default;
            box-sizing:border-box;
        }
        

    /* botón de cerrar sesión */
        .form_cerrar_sesion{
            position: absolute;
            width: 100%;
            bottom: 10px;
        }
        .boton_cerrar_sesion{
            width: 95%;
            border-radius: 5px;
            background-color: var(--gris_fora);
            color: whitesmoke;
            margin-left: 2.5%;
            font-size: 18px;
        }


/* etiquetas de información al hacer hover */
    .text_info:hover::after{
        font-family: 'Poppins', sans-serif;
        font-size: 12px;
        content: attr(alt); 
        background-color: #333; 
        width: 200px;
        color: #fff; 
        padding: 5px; 
        border-radius: 5px; 
        position: absolute;
        top: -20px; 
        left: -90px; 
        display: block;
        z-index: 1;
        cursor:default;
        box-sizing:border-box;
    }
    .contenedor_texto{
        cursor: pointer;
        position: relative;
    }

/* clase para quitar bordes a los botones */
    .sin_borde:focus, .sin_borde:active{
        outline: none;
    }
    

    .loader {
        position: fixed;
        border: 5px solid var(--gris_fora);
        border-radius: 50%;
        border-top: 5px solid rgb(212, 212, 212);
        width: 70px;
        height: 70px;
        transform: scale(1);
        animation: spin 1s linear infinite;
        display: none;
        z-index: 10000;
        top: 50%;
        left: 50%;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
        z-index: 9000;
        display: none; /* Inicialmente oculto */
    }

    #modalTask .modal-content{
        width: 65%;
        margin: 0;
        max-height: 500px;
        overflow-y: scroll;
    }

    .modalSpan{
        display: flex;
        flex-direction: column;
        text-align: left;
        margin:auto;
    }

    .letraBlanca{
        color: whitesmoke;
    }

    .haDisponibles{
        font-size: 12px;
        position: absolute;
        right: 10px;
        top: 10px;
    }

    #iconoEE{
        margin-left: 8%;
        cursor:pointer;
        transition: transform 0.5s;
    }
    #iconoEE:hover{
        transform: rotate(90deg);
    }