:root{
    --fuentePresentacion: 'Tai Heritage Pro', serif;
    --fuente: 'Source Sans Pro', sans-serif;
    --fuenteTit: 'Poly', serif;
    --azulSecundario: #026359;
    --blanco: #fff;
    --negro: #000;
    --gris: #e1e1e1;
}

html{
    box-sizing: border-box;
    font-size: 62.5%;
}

*, *:before, *:after{
    box-sizing: inherit;
}

body{
    font-family: var(--fuente);
    font-size: 1.6rem;
    line-height: 2;
    font-weight: 300;
}

/*--------------------------------------------Globales--------------------------------------------*/
.contenedor{
    max-width: 90%;
    margin: 0 auto;
}

a{
    text-decoration: none;
}

h2, h3{
    line-height: 1.2;
}

h2{
    font-size: 5rem;
}

h3{
    font-size: 3rem;
}

img{
    max-width: 100%;
}

/*--------------------------------------------Utilidades--------------------------------------------*/
.no-margin{
    margin: 0;
}

.no-padding{
    padding: 0;
}

.centrar-texto{
    text-align: center;
}

@media (max-width: 768px) {
    .animacion-entrada{
        opacity: 0.5;
        transition: all 1.5s;
    }
    
    .transform-up{
        transform: translateY(20%);
    }
    
    .animacion-aparecer{
        opacity: 1;
        transform: none;
    }   
}

/*--------------------------------------------Galeria--------------------------------------------*/
.galeria{
    background-color: var(--gris);
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.subgaleria{
    width: 100%;
    height: 70vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: relative;
}

.subgaleria a{
    display: block;
    width: 100%;
    height: 100%;
    background-color: transparent;
    position: relative;
    opacity: 0.5;
}

.subgaleria a:hover{
    backdrop-filter: blur(0.3rem);
    opacity: 1;
    transition: all 1s ease;
}

.titulo{
    position: absolute;
    width: 100%;
    height: 20%;
    background-color: var(--blanco);
    bottom: 5rem;
    display: none;
    justify-content: space-between;
    align-items: center;
    color: var(--negro);
}

.nombre{
    font-size: 2rem;
    padding: 0 3rem;
}

.seccion{
    text-align: center;
    border-left: solid 0.1rem var(--azulTerciario);
    font-family: var(--fuenteTit);
    padding: 0 1rem;
}

.g-ancla{
    display: none;
}

@media (max-width: 983px) {
    .titulo{
        height: 25%;
    }

    .nombre{
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .galeria{
        width: 100%;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .subgaleria a:hover{
        backdrop-filter: none;
        opacity: 0;
        transition: none;
    }

    .g-ancla{
        display: block;
        padding: 1rem 0;
        color: var(--negro);
    }

    .g-nombre{
        text-align: center;
        font-size: 2rem;
        letter-spacing: 0.3rem;
    }
    
    .g-seccion{
        text-align: center;
        font-family: var(--fuenteTit);
    }
}

/*------------------------------------------Pantallas Grandes-----------------------------------------*/
@media (min-width: 1500px) {
    .nombre{
        font-size: 2.2rem;
    }
    
    .seccion{
        font-size: 1.8rem;
    }
}

@media (min-width: 1750px) {
    .nombre{
        font-size: 2.4rem;
    }
    
    .seccion{
        font-size: 2rem;
    }
}

@media (min-width: 2000px) {
    .nombre{
        font-size: 2.6rem;
    }
    
    .seccion{
        font-size: 2.2rem;
    }
}

@media (min-width: 2250px) {
    .nombre{
        font-size: 2.8rem;
    }
    
    .seccion{
        font-size: 2.4rem;
    }
}

@media (min-width: 2500px) {
    .nombre{
        font-size: 3rem;
    }
    
    .seccion{
        font-size: 2.6rem;
    }
}

@media (min-width: 2750px) {
    .nombre{
        font-size: 3.2rem;
    }
    
    .seccion{
        font-size: 2.8rem;
    }
}

@media (min-width: 3000px) {
    .nombre{
        font-size: 3.4rem;
    }
    
    .seccion{
        font-size: 3rem;
    }
}

@media (min-width: 3250px) {
    .nombre{
        font-size: 3.6rem;
    }
    
    .seccion{
        font-size: 3.2rem;
    }
}

@media (min-width: 3500px) {
    .nombre{
        font-size: 3.8rem;
    }
    
    .seccion{
        font-size: 3.4rem;
    }
}