/* FUENTE PERSONALIZADA */
@font-face {
    font-family: "MYRIADPRO-BOLDCONDIT";
    src: url("MYRIADPRO-BOLDCONDIT.OTF");
}

/* RESETEO BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FONDO */
body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    background-image: url("fondo blanco2.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* CABECERA */
header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: #cdcdcf;
    padding: 10px;
}

/* LOGOTIPO */
.Logotipo {
    flex: 1 1 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #cdcdcf;
    height: 170px;
}

.Logotipo img {
    max-height: 100px;
    width: auto;
}

/* LETRAS */
.LETRAS {
    flex: 2 1 250px;
    font-size: 27px;
    font-style: italic;
    color: #0051e8;
    background-image: linear-gradient(to right, #cdcdcf, #ffffff);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 170px;
}

/* NAVEGACIÓN */
.navbar {
    width: 100%;
    background-color: #ffffff;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 10px 0;
    margin: 0;
}

.menu li a {
    text-transform: uppercase;
    color: black;
    padding: 0 25px;
    line-height: 60px;
    height: 60px;
    display: block;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.menu li a:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #cdcdcf;
    transition: 0.3s;
    z-index: -1;
}

.menu li a:hover:before {
    height: 120%;
}

/* GALERÍA */
.galeria {
    display: flex;
    height: 300px;
    width: 100%;
    overflow: hidden;
    margin-top: 20px;
}

.galeria img {
    width: 0;
    flex-grow: 1;
    object-fit: cover;
    filter: brightness(80%);
    transition: 0.7s ease;
}

.galeria img:hover {
    width: 500px;
    filter: brightness(130%);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 768px) {
    .Logotipo,
    .LETRAS {
        flex: 1 1 100%;
        height: auto;
        padding: 10px;
    }

    .LETRAS {
        font-size: 20px;
    }

    .menu {
        flex-direction: column;
        align-items: center;
    }

    .menu li a {
        line-height: 50px;
        height: auto;
    }

    .galeria {
        flex-direction: column;
        height: auto;
    }

    .galeria img {
        width: 100% !important;
        max-height: 200px;
    }

    .galeria img:hover {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .LETRAS {
        font-size: 18px;
    }

    .menu li a {
        font-size: 16px;
        padding: 0 10px;
    }
}