/* 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;
}








/* ESTABLECER LA GRID DEL PRIMER GRUPO */
.grupo_imgs {
    padding: var(--padding-grids-home);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: 500px;
    gap: 15px;
}

/* TAMAÑO DE LAS IMÁGENES Y ENCAJONAMIENTO EN EL CONTENEDOR */
.decoy-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CSS DEL DIV DEL TEXTO, OCUPA LA IMAGEN, POSICIÓN ABSOLUTA, OPACIDAD INICIAL 0, COLOR DEL FONDO Y TRANSICIÓN QUE SE REALIZARÁ */
.card__text {
    width: 100%;
    height: 100%;
    position: absolute;
    color: var(--col-font-background);
    bottom: 0;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.8);
    transition: opacity 0.5s ease;
}

/* AL PASAR EL RATÓN, LA OPACIDAD ES COMPLETA */
.card__text:hover {
    opacity: 1;
    color: var(--col-font-background);
}

/* CSS TEXTO DEL DIV, ABSOLUTO RESPECTO AL DIV, CENTRADO Y TRANSICIÓN DE OPACIDAD COMO EL FONDO */
.card__text p {
    font-size: var(--font-s-works);
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 100vh;
    transition: opacity 0.5s ease;
}







/* 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;
}


 