@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body{
    width: 100%;
    min-height: 100vh;

    background-color: #f3f3f3;

    display: grid;
    grid-template: "header header header" 70px
                   "section section section" 1fr
                   "footer footer footer" 40px / 1fr 1fr 1fr;

    transition: .3s ease all;

}

header{
    grid-area: header;
    background: url(https://sfo3.digitaloceanspaces.com/e-fuente/e-fuentedevida.net/iq98/admin/elrecurso/bgheader3.jpg);
    background-position: center;
    background-size: cover;
}

.header-container{
    width: 100%;
    height: 100%;

    padding: 0px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-titulo{
    color: white;
    font-size: 34px;
    font-weight: 600;
    letter-spacing: 2px;
}

.volver{
    background-color: #4A89C5;
    min-width: 100px;
    border: 1px solid #4A89C5;
    border-radius: 20px;
    padding: 4px 30px;

    color: white;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: .3s ease-in-out;
}

.fa-solid{
    margin-right: 4px;
}

.volver:hover{
    background-color: white;
    color: #4A89C5;
    border: 1px solid #4A89C5;
    transform: scale(1.1);
}

.print{
    background-color: #1F5AC2;
    min-width: 100px;
    border: 1px solid #1F5AC2;
    border-radius: 20px;
    padding: 4px 30px;

    color: white;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: .3s ease-in-out;
}

.print:hover{
    background-color: white;
    color: #1F5AC2;
    border: 1px solid #1F5AC2;
    transform: scale(1.1);
}

main{
    grid-area: section;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.buscador{
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.container-input {
    position: relative;
}

.input {
    width: 250px;
    padding: 10px 0px 10px 40px;
    border-radius: 9999px;
    border: solid 1px #333;
    transition: all .2s ease-in-out;
    outline: none;
    opacity: 0.8;
}

.container-input svg {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translate(0, -50%);
}

.input:focus {
    opacity: 1;
    width: 350px;
}

.buscador-titulo{
    margin-right: 10px;
    font-size: 20px;
    font-weight: 500;
    color: #135D8E;
}

.cards{
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    overflow-x: hidden;
    scrollbar-width: none;
    padding: 10px 20px;
}

.card{
    background-color: white;
    padding: 20px;
    border-radius: 25px;
    width: 63%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.192);
    margin-bottom: 15px;

    cursor: pointer;

    text-decoration: none;

    transition: .3s ease all;
}

.card:hover{

    box-shadow: 0 0 15px rgba(0, 0, 0, 0.43);

}

.card-titulo{
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #193C7D;
}

.informacion{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.fecha{
    color: #88A8E3;
    font-size: 14px;
    font-weight: 200;
}

.doc{
    margin: 5px 0px;
    padding: 2px 20px;
    color: white;
    font-weight: 500;

    border-radius: 10px;
}

.si-doc{
    background-color: #94c220df;
}

.no-doc{
    background-color: #c2351fdc;
}

.publicacion{
    position: absolute;
    
    right: -600px;
    top: 10px;

    height: 100%;
    max-height: 650px;
    width: 35%;

    background: white;

    border-radius: 35px;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.184);

    overflow: auto;

}

.publi-in{
    right: 20px;

    animation: in 1s ease;
}

@keyframes in{
    0%{
        right: -600px;
    }

    100%{
        right: 20px;
    }
}

.publi-out{
    right: -600px;

    animation: out 1s ease;
}

@keyframes out{
    0%{
        right: 20px;
    }

    100%{
        right: -600px;
    }
}

.informacion-publi{
    width: 100%;
    background: url(https://sfo3.digitaloceanspaces.com/e-fuente/e-fuentedevida.net/iq98/admin/elrecurso/bglogin2.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    padding: 0px 20px;
    border-radius: 20px 0px;

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

.logo-info img{
    width: 130px;
}

.info-header{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.publi-titulo{
    font-size: 18px;
    color: white;

}

footer{
    grid-area: footer;
}

.publicacion-body{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.encabezados-publi{
    text-align: center;
    width: 100%;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 2px;

    color: #1F5AC2;

    margin: 5px;
}

p{
    font-weight: 200;
}

.material-img{
    max-width: 100%;
}

.material-enlace{
    text-decoration: none;
    padding: 5px 15px;
    background-color: #95C220;
    color: white;
    border: 2px solid #95C220;
    border-radius: 10px;
}

.publi-form{
    margin-top: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.subir-doc{
    margin: 15px 0;
    width: 100%;
    min-height: 40px;
    background-color: #F3F3F3;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;

    border-radius: 10px;
}

.cargar-archivo{
    padding: 3px 35px;
    height: 100%;
    background-color: #135D8E;
    color: white;
    border-radius: 10px;

    text-align: center;

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

    cursor: pointer;
}

.cargar-archivo-txt{
    padding: 0 10px;
    display: flex;
    align-items: center;
}

.eliminar-doc{
    width: 150px;
    height: auto;

    padding: 5px 10px;
    margin: 10px 0;
    border: solid 2px #CB5141;
    background-color: white;
    color: #CB5141;
    border-radius: 10px;

    box-shadow: #00000055 0 0 10px;

    transition: .3s ease all;
}

.eliminar-doc:hover{
    background-color: #CB5141;
    color: white;
    transform: scale(1.1);
}

.cerrar{
    position: absolute;
    display: none;
    top: 5px;

    font-size: 20px;

    background-color: transparent;
    border: none;
    outline: none;
}

@media screen and (max-width: 1020px){
    .card{
        width: 100%;
    }

    .publicacion{
        width: 90%;
        max-width: 500px;
    }

    .cerrar{
        display: block;
    }
}

@media screen and (max-width: 700px){
    .header-titulo{
        display: none;
    }
}

@media screen and (max-width: 420px){
    .buscador-titulo{
        display: none;
    }

    .buscador{
        justify-content: center;
        align-items: center;
    }

    header button{
        width: 150px;
        height: 60px;
    }
}

