@charset "UTF-8";
/* CSS Document */

.pagina-recursos {
    width: 100%;
    padding: 70px 4%;
    box-sizing: border-box;
}

.encabezado-recursos {
    width: 90%;
    max-width: 1400px;
    margin: 55px auto 55px;
    text-align: center;
}

.encabezado-recursos h1 {
    margin: 0 0 15px;
    color: #032621;
    font-size: 52px;
    line-height: 1.1;
    font-weight: 700;
}

.encabezado-recursos p {
    max-width: 750px;
    margin: 0 auto;
    color: #585850;
    font-size: 18px;
    line-height: 1.6;
}


/* GALERÍA */

.galeria-recursos {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 31%);
    justify-content: space-between;
    gap: 45px 0;
}

.tarjeta-recurso {
    width: 100%;
    min-width: 0;
}

.enlace-recurso,
.enlace-recurso:link,
.enlace-recurso:visited,
.enlace-recurso:hover,
.enlace-recurso:active {
    display: block;
    color: #032621;
    text-decoration: none;
}


/* MINIATURA */

.miniatura-recurso {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;
    border-radius: 28px;
    background-color: #b7b7b7;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.miniatura-recurso img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;

    transition: transform 0.4s ease;
}

.enlace-recurso:hover .miniatura-recurso {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(3, 38, 33, 0.16);
}

.enlace-recurso:hover .miniatura-recurso img {
    transform: scale(1.04);
}


/* ICONO DE DESCARGA */

.icono-descarga {
    position: absolute;
    top: 50%;
    left: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    width: 70px;
    height: 70px;

    transform: translate(-50%, -50%);

    border-radius: 50%;
    background-color: rgba(127, 195, 223, 0.94);
    color: #ffffff;

    font-size: 39px;
    font-weight: 600;
    line-height: 1;

    opacity: 0;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.enlace-recurso:hover .icono-descarga {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}


/* INFORMACIÓN DEL RECURSO */

.tarjeta-recurso h2 {
    margin: 17px 8px 7px;
    color: #032621;
    font-size: 23px;
    line-height: 1.3;
    font-weight: 500;
    text-align: center;
}

.tarjeta-recurso p {
    max-width: 360px;
    margin: 0 auto 13px;

    color: #585850;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.etiqueta-archivo {
    display: block;
    width: max-content;

    margin: 0 auto;
    padding: 7px 13px;

    border-radius: 20px;
    background-color: #f1f0ed;
    color: #585850;

    font-size: 13px;
    font-weight: 500;
}


/* TABLET */

@media screen and (max-width: 1024px) {

    .pagina-recursos {
        padding: 55px 4%;
    }

    .encabezado-recursos h1 {
        font-size: 43px;
    }

    .galeria-recursos {
        grid-template-columns: repeat(2, 48%);
        justify-content: space-between;
        gap: 38px 0;
    }

    .tarjeta-recurso h2 {
        font-size: 21px;
    }
}


/* CELULAR */

@media screen and (max-width: 650px) {

    .pagina-recursos {
        padding: 40px 18px;
    }

    .encabezado-recursos {
        width: 100%;
        margin-bottom: 35px;
    }

    .encabezado-recursos h1 {
        font-size: 34px;
    }

    .encabezado-recursos p {
        font-size: 16px;
    }

    .galeria-recursos {
        width: 100%;
        grid-template-columns: 100%;
        justify-content: center;
        gap: 34px;
    }

    .miniatura-recurso {
        border-radius: 20px;
    }

    .icono-descarga {
        width: 58px;
        height: 58px;
        font-size: 32px;
        opacity: 1;
    }

    .tarjeta-recurso h2 {
        margin-top: 14px;
        font-size: 20px;
    }

    .tarjeta-recurso p {
        font-size: 15px;
    }
}