*, body{
    margin: 0px;
    padding: 0px;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

@font-face {
    font-family: 'Euphemia';
    src: url('../../Library/EuphemiaUCASRegular2.6.6.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
}

    h2, h3, #menu-lista ul li{
        font-family: 'Euphemia';
    }
    body{font-family: sans-serif;}
    
/* COOKIE */
/* _______________________________________________________________________ */
/* _______________________________________________________________________ */
.cookie-banner {
    z-index: 1;
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;

    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

    .cookie-banner p {margin: 20px;}

    .cookie-banner button{
        margin: 20px 0px;
        padding: 10px 20px;
        font-size: 15px;
        
        background-color: transparent;
        background-color: #005d7c7a;
        color: white;
        border: 1px solid white;
    }
    .cookie-banner button:hover{
        border: 1px solid #005d7c;
        background-color: #005d7c;
        cursor: pointer;
    }

/* HEADER */
/* _______________________________________________________________________ */
/* _______________________________________________________________________ */

header{
    width: 100%;
    top: 0;

    z-index: 0; /* Aseguramos que el header se quede al fondo */
}

    #menu, #logo, #presentation {
        position: relative;
        z-index: 1; /* Aseguramos que los otros elementos del header se queden arriba de la imagen */
    }

/* MENU _______________________________________________________________________________*/
#menu {
    top: 0; 
    width: 100%; 
    z-index: 1; 
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0; 
    height: 50px;
    background-color: white;
}

    #menu-logo {
        width: 20%;
        max-height: 50px;
        padding-left: 20px;
    }
        #menu-logo img {height: 50px; }


    #menu-lista {
        width: 80%;
        padding-left: 10px;
        padding-right: 10px;
        overflow: hidden;
        max-height: 50px;
        transition: max-height 0.5s ease-in-out;
    }
        #menu-lista ul {
            width: 100%;
            height: 100%;
            list-style: none;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            padding: 0;
            margin: 0;
        }
            #menu-lista ul li {
                margin-right: 20px;
            }
                #menu-lista a {
                    color: black;
                    text-decoration: none;
                    font-size: 16px;
                    display: block;
                    padding: 10px 15px;
                }

    #menu_toggle {display: none;}
        #menu_toggle #menu_button{
            background-color: white;
            border-radius: 0px;
        }
        #menu_toggle #menu_button img{height: 20px;}

@media (max-width: 890px) { 
    #menu{background-color: white;}    
    #menu-logo{width: 50%;}

    #menu-lista { 
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: white;
        text-align: center;
        z-index: 20;
        max-height: 0; 
    }
        #menu-lista ul {
            flex-direction: column;
            width: 100%;
        }
            #menu-lista ul li {margin: 10px 0;}

    #menu_toggle {
        width: 50%;
        display: block;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
    }
        .toggle-button{
            font-size: xx-large;
            cursor: pointer;
        }

    #menu_button {
        border: none;
        padding: 0;
        background: none;
        height: 40px;
        width: 40px;
    }

    input#abrir-cerrar { 
        visibility:hidden;
        position: absolute;
    }
    
    #menu-lista.show {
        max-height: 500px; 
        transition: max-height 0.5s ease-in-out;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.4);
    }
}


/* FOOTER */
/* ________________________________________________________________________________________ */
/* ________________________________________________________________________________________ */
footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #005d7c;
}

    .footer1 {
        width: 100%;
        margin: 20px 0px;
        color: white;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
    }

        #footer1 section {
            width: 33.3%;
            display: flex;
            flex-direction: column; 
            align-items: center;
            
        }
        #f-logo{
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
            #f-logo img {height: 150px;}
            .f-centrar{text-align: center; }
                .lista {
                    list-style: none;
                    margin-top: 10px;
                }
                    .lista li {margin-top: 10px;}
                    .lista a {
                        text-decoration: none;
                        color: white;
                    }
            
                    .wrapper .icon{
                        position: relative;
                        background-color: #ffffff;
                        border-radius: 50%;
                        margin: 10px;
                        width: 50px;
                        height: 50px;
                        line-height: 50px;
                        font-size: 22px;
                        display: inline-block;
                        align-items: center;
                        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
                        cursor: pointer;
                        transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
                        color: #333;
                        text-decoration: none;
                    }
                        .wrapper .icon:hover span{text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);}
                        .wrapper .facebook:hover{
                            background-color: #3b5999;
                            color: #ffffff;
                        }
                        .wrapper .instagram:hover{
                            background-color: #e1306c;
                            color: #ffffff;
                        }
                        .wrapper .linkedin:hover{
                            background-color: #0a66c2;
                            color: #ffffff;
                        }

                        .facebook span{margin-left: 35%}
                        .instagram span, .linkedin span{margin-left: 30%}
                    
    .footer2 {
        width: 100%;
        color: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

        .footer2 hr{width: 100%;}

@media (max-width: 890px) {
    .footer1 {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    #footer1 section {
        width: 100%;
        padding: 0 10px;
    }

    .lista {margin: 0;}
    h2 {margin: 0;}
}

#scrollToTop {
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    font-size: 30px; 
    background-color: #005d7c; 
    color: white; 
    border: none; 
    border-radius: 50%; 
    width: 50px; 
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#scrollToTop:hover {
    background-color: #0056b3; /* Cambiar color al pasar el ratón */
}