/* CSS GENERALES DEL CUERPO */
body {
    font-family: var(--font-f-letrabase);
    background-color: var(--col-base-background);
    color: var(--col-font-background);
}


/* DENTRO DE LA SECCIÓN QUE NO TENGA NINGUNA DECORACIÓN */
section a {
    color: var(--col-font-background);
    text-decoration: none;
}






/* CAMBIO DE TIPOGRAFÍAS POR PORCENTAJE DEL TIEMPO QUE DURA LA ANIMACIÓN FONTCHANGE */
@keyframes fontChange {
    0% {
        font-family: var(--font-f-letrabase);
    }

    50% {
        font-family: var(--font-f-letrapixel);
    }

    100% {
        font-family: var(--font-f-letrabase);
    }
}

/* CSS PARA EL TÍTULO DEL PROYECTO + ANIMACIÓN */
h1 {
    font-size: var(--font-s-title);
    padding-bottom: 0.4em;
    animation: fontChange 4s infinite;
}


/* ESTILOS DEL H2 */
h2 {
    font-size: 1.5em;
    font-weight: 500;
    margin-bottom: 2em;
}








/* ESTRUCTURA DEL TÍTULO CON LAS FLECHAS */
.titulo-principal {
    display: grid;
    grid-template-columns: 2fr 1fr;
    width: 100%;
    border-bottom: 2px solid #fff;
}

/* CONTENEDOR PRINCIPAL PARA CENTRAR EL CONTENIDO */
.main-pass {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 25px;
    padding-bottom: 1em;
}

/* DISPOSICIÓN DE LAS FLECHAS DE ANTERIOR Y SIGUIENTE */
.ant-sig {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* GROSOR TEXTO */
.ant-sig a {
    font-weight: 100;
}

/* CONTENEDOR QUE FACILITA LA POSICIÓN DE LAS IMÁGENES SUPERPUESTAS */
.image-pass {
    width: 1.5vw;
}

/* ROTACIÓN DE LA FLECHA IZQUIERDA */
.flecha-izquierda {
    transform: rotate(180deg);
}









/* SEPARACIÓN DE LA CAJA DE INFORMACIÓN */
.box-information {
    font-size: var(--font-s-body);
    font-weight: 250;
    padding-top: 1.5em;
    padding-bottom: 1em;
    line-height: 1.3em;
    display: grid;
    gap: 2em;
}

/* GRID DE LOS TEXTOS */
.titulos-proyectos {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    column-gap: 9em;
    padding-bottom: 2em;
}

/* JUSTIFICAR LOS TEXTOS DESCRIPTIVOS */
.descripcion {
    text-align: justify;
}

/* BALANCE DEL BLOQUE EN LOS TEXTOS */
.bloque h2 p {
    text-wrap: balance;
}







/* VOLVEMOS A NOMBRAR EL Z-INDEX DEL HEADER EN LA HOME POR LOS CONTENEDORES RELATIVE, EL ZINDEX DEL CSS GENERAL NO LES AFECTA */
header {
    z-index: 4;
}

/* POSICIÓN RELATIVA DEL CONTENEDOR PARA LOS ELEMENTOS DE DENTRO */
/* COMIENZA CON 0 DE OPACIDAD */
.contenedor {
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

/* SE APARECE CON 1 DE OPACIDAD */
.contenedor.appear {
    opacity: 1;
}






/* NO SE PUEDEN TOCAR LAS IMAGENES */
img {
    display: block;
    /* cursor: default; */
}

/* ESTABLECER LA GRID DEL PRIMER GRUPO */
.grupo_imgs {
    padding: var(--padding-grids-home);
    display: grid;
    grid-template-columns: 1fr;
    gap: 0px;
}

/* GRID INDEPENDIENTE QUE GESITONA IMÁGENES DE PAR EN PAR */
.grupo_imgs2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
}

/* GRID INDEPENDIENTE QUE GESITONA IMÁGENES DE PAR EN PAR QUE NO TIENEN MISMO ESPACIO*/
.grupo_imgs3 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0px;
}

/* TAMAÑO DE LAS IMÁGENES Y ENCAJONAMIENTO EN EL CONTENEDOR */
.decoy-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}






/* CONTENEDOR PRINCIPAL PARA CENTRAR EL CONTENIDO */
.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3em;
    margin-bottom: 3em;
}

/* CONTENEDOR QUE FACILITA LA POSICIÓN DE LAS IMÁGENES SUPERPUESTAS */
.image-container {
    position: relative;
    width: 12vw;
}

/* PROPORCIÓN DE LAS IMGS */
#img1, #img2 {
    width: 100%;
    height: auto;
}

/* POSICIÓN ABSOLUTA, BAJADA DE OPACIDAD Y TRANSICIÓN DE LA ANIMACIÓN */
#img2 {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, fill 0.3s ease-in-out;
}

/* CAMBIO AL BLANCO */
#img2:hover {
    opacity: 1;
    fill: currentColor;
}







/* ESCALAMOS LA IMAGEN EN UN PORCENTAGE ADECUADO PARA ORDENADOR */
.img-background img {
    width: 100%;
    height: 100%;
}

/* ESCALAMOS EL VÍDEO EN UN PORCENTAGE ADECUADO PARA ORDENADOR */
.img-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CON LA NUEVA IMAGEN APLICAMOS EL EFECTO DE WRAP, LA POSICIÓN FIXED, LA ELEVAMOS, DEJAMOS UNA OPACIDAD BAJA Y EL Z INDEX BAJO */
.background-decoy {
    position: fixed;
    top: 0;
    left: 0;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: -1;
}