@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url ('https://fonts.googleapis.com/css2? family = Rubik: ital, wght @ 0,300; 0,400; 0,700; 1,300; 1,400 & display = swap');

body {
    font-family: "Rubik";
    text-transform: uppercase;
}

/* header */
header {
    background-color: #9b5fa3;
    padding: .7em 1.1em;
    display: flex;
    justify-content: space-between;
}

header img {
    width: 1.8em;
    height: auto;
}

header > a {
    display: flex;
    align-items: center;
}

header > a p{
    display: none;
}

/* nav */
header nav {
    display: flex;
}

#sermiembro, #nombredeusuario {
    background-color: #68c5d9;
    border-radius: .3em;
    padding: .3em 1em;
    text-align: center;
    display: block;
    width: 100%;
}

#nombredeusuario {
    margin-top: 0;
    color: white;
    text-transform: uppercase;
    font-size: .85em;
}

a{
    text-decoration: none;
    color: white;
    font-size: .85em;
}

/* menú */
button {
    border: none;
    background-color: rgba(255, 255, 255, 0);
    display: flex;
    border-radius: .4em;
    margin-left: .5em;
}

.material-icons {
    color: white;
}

#llamamenu {
    z-index: 9999;
    position: relative;
    background-color: #9b5fa3;
}

ul {
    list-style: none;
}

#menu > ul {
    position: fixed;
    background-color: rgb(217, 217, 217);
    top: 0;
    right: 0;
    left: 100%;
    height: 100%;
    padding: 3.4em 1em;
    z-index: 9000;
}

#menu > ul > li {
    font-size: 1.3em;
    border-top: solid #b9b6b6 .08em;
    padding: .5em;
}

#menu ul div {
    display: flex;
    justify-content: space-between;
}

#menu ul div i, #modal i {
    color: black;
    display: flex;
    justify-content: flex-end;
}

#menu ul li ul li {
    font-size: .8em;
    margin: .8em 1.2em 0;
}

#menu a {
    color: black;
}

/* menú desplegable */
#menu > ul.visible {
    left: 25%;
    transition: 0.5s ease;
}

/* main */
.contenedora {
    margin: 0 8.5%;
}

/* section biblioteca */

/* banner */
section:not(#introduccionforo,#biblioteca), #biblioteca > article:first-of-type{
    margin-top: 1.9em;
}

aside {
    margin: 1.9em 0;
}

.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(../imagenes/fondologo.jpg);
    background-size: 50%;
    padding: 1.8em 0;
}

.banner img {
    width: 17%;
    height: auto;
}

h1 {
    font-weight: 500;
    font-size: 0.85em;
    max-width: 3em;
    line-height: 1em;
    margin-left: .3em;
}

.banner span{
    font-size: .8em;
}

/* encontrá cientos... */
h2, h3, h4, h5, h6 {
    text-align: center;
}

h3:not(.libro article h3), h4, h5, .fondo {
    margin-top: 1em;
}

h2 {
    color: #68c5d9;
    font-size: 2.8em;
}

h3 {
    font-weight: 400;
    font-size: 1em;
}

p:not(.boton p, .autor, header p) {
    text-align:left;
    text-transform: none;
    font-size: .7em;
    margin-top: .5em;
}

h4 {
    color: #68c5d9;
    font-weight: 400;
    font-size: 0.9em;
    text-transform: none;
}

form, fieldset{
    margin: 1em 0;
    border: none;
}

#buscador {
    display: flex;
}

input:not(input[type="file"], input[type="submit"]) {
    border: none;
    border-bottom: solid black .1em;
    width: 100%;
    color: black;
    padding-left: .8em;
    font-size: .67em;
    height: 2.5em;
    margin: .5em 0;
}

#buscador button {
    background-color: #68c5d9;
    padding: .5em .8em;
}

/* libros destacados */
.fondo {
    background-color: #eaeaea;
    padding: 1.5em 0 .1em;
}

.tituloscelestes {
    font-weight: 500;
    text-transform: uppercase;
    margin: 0 0 1em;
}

.articleflex {
    display: flex;
    overflow-x: scroll;
    margin: 1.5em;
}

.articleflex article {
    min-width: 6.95em;
    display: flex;
    flex-direction: column;
    margin-right: 1em;
}

.articleflex article figure {
    width: 100%;
}

figure img {
    width: 100%;
}

.articleflex .boton2 {
    margin-top: auto;
}

.articleflex p:not(.autor) {
    font-size: .9em;
    word-spacing: .1em;
}

.autor {
    text-transform: none;
    font-size: .7em;
}

.autor, .tituloforo {
    margin-bottom: 1em;
}

.boton2 {
    display: flex;
    justify-content: center;
    background-color: #9b5fa3;
    font-size: .7em;
    font-weight: 300;
    padding: .4em 0;
    border-radius: .3em;
    color: white;
    text-transform: uppercase;
    border: none;
    margin-left: auto;
    width: 100%;
}

.boton2:not(.articleflex .boton2){
    width: 10em;
}

/* menú géneros */
h6 {
    text-transform: none;
    font-weight: 400;
    font-size: .8em;
}

.boton {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #9b5fa3;
    padding: .3em .7em;
    margin-top: 1em;
    border-radius: .3em;
    color: white;
}

#menugeneros div, .agenda div div {
    justify-content: space-between;
}

.generos {
    background-color: #d59ce0;
    text-align: center;
    padding: .4em;
    margin: .2em;
    font-weight: 300;
    border-radius: .2em;
}

.generos:hover {
    background-color: #6c1a77;
    text-align: center;
    padding: .4em;
    margin: .2em;
    font-weight: 300;
    border-radius: .2em;
}

/* libro.html */
.libro article > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.libro figure {
    width: 40%;
}

.libro article > div div {
    width: 53%;
    margin-left: .5em;
}

.libro h3:first-child, .lectores h3 {
    text-align: left;
}

.libro ol {
    margin-left: 1em;
}

.libro ol p {
    font-size: .6em;
}

    /* boton de reservar */
.reservarlo, #modal_usuario ul a {
    background-color: #68c5d9;
}

    /* ventana modal_sermiembro */

    /* ventana modal_reservar */
#modal_reservar, #modal_sermiembro, #modal_confirmar {
    position: fixed;
    background-color: rgba(56, 56, 56, 0.50);
    opacity: 0;
    top: 0%;
    left: 0%;
    height: 100%;
    padding: 1em;
    z-index: -1;
    display: flex;
    align-items: center;
}

#modal_reservar.reservarvisible, #modal_sermiembro.sermiembrovisible, #modal_confirmar.confirmarvisible {
    opacity: 1;
    z-index: 9999;
}

#modal {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.40);
    border-radius: .3em;
}

#modal, #modal2 {
    padding: 1em;
    border: solid grey .1em;
}

#modal_sermiembro button, #modal_confirmar button{
    margin-left: auto;
}

#modal2, #modal_sermiembro #modal {
    border-radius: .3em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.40);
}

#modal_sermiembro #modal div {
    padding: 0 1.5em .5em;
}

#modal p {
    text-align: center;
}

#modal2 {
    background-color: #68c5d9;
}

#modal2 img {
    width: 50%;
    display: block;
    margin: 0 auto .5em;
}

#modal2 h2 {
    color: white;
}

    /* otros lectores */
.comentarios {
    overflow-y: scroll;
    height: 18em;
    margin: 1em 0 1.5em;
}

.comentarios span, .usuariotp{
    font-weight: 700;
}

.lectores h4 {
    text-align: left;
} 

textarea {
    width: 100%;
    border-radius: .4em;
}

/* section comunidad */
ol {
    margin: 1em 0 0 3em;
    list-style: disc;
}

/* comunidad.html */
.titulosinternos {
    font-size: 1.52em;
}

    /* trabajos */
.trabajos article > div:first-of-type {
    display: flex;
    justify-content: center;
    margin: 2em 0 1.5em;
    padding: 0 1em;
}

.trabajos figure {
    width: 6.5em;
    border: solid black .05em;
    height: auto;
}

.trabajos figure img {
    height: 100%;
}

.trabajos article > div:first-of-type div{
    width: 47%;
    margin-left: 1em;
}

.usuario {
    display: block;
    width: 3.6em;
    border-radius: 50%;
    margin-bottom: .5em;
}

.trabajos button {
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.trabajos button p {
    text-transform: uppercase;
    font-size: 1em;
    font-weight: 700;
    color: #68c5d9;
    margin-top: 0;
}

.trabajos i {
    color:#68c5d9;
}

/* foro.html */
#fondoforo {
    background-image: url(../imagenes/fondo_foro.jpg);
    background-size: cover;
    padding: 1.5em 0 2em;
}

#fondoforo h3 {
    color: white;
}

#fondoforo p {
    margin-top: 2em;
    text-align: center;
}

.charlemos h4 {
    text-align: left;
}

/* aside evento */
#fondoevento {
    background-image: url(../imagenes/fondo_concurso.jpg);
    background-size: 180%;
    padding: .5em 0 1.6em;
}

#fondoevento h3, #fondoevento h5 {
    color: white;
    text-align: left;
}

h5 {
    margin: 1em 0 .5em;
    font-weight: 400;
    font-size: .8em;
}

#fondoevento h5 {
    padding-bottom: .2em;
    border-bottom: solid white .1em;
}

#fondoevento p, #fondoforo p {
    color: white;
}

y {
    font-style: italic;
}

/* agenda.html */

/* AGENDA */
.agenda article {
    border-radius: .5em;
    margin-top: 1em;
}

.agenda > div > article img {
    width: 100%;
    border-radius: .5em .5em 0 0;
}

.agenda .boton {
    margin-top: 0;
    border-radius: 0 0 .5em .4em;
}

    /* eventos */
.agenda > div article div:last-of-type {
    border: solid #9b5fa3 .1em;
    box-shadow: 0 5px 6px rgba(0, 0, 0, 0.25);
    background-color: white;
    padding: 1em;
    margin-top: .5em;
}

.agenda article h4 {
    text-align: left;
}

/* video */
#videoresponsive {
    position: relative;
    margin-top: 1em;
    height: 0;
    padding-bottom: 56.25%;
}

#videoresponsive iframe {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0px;
    left: 0px;
}

iframe {
    border: 0;
    border-radius: .5em;
}

/* iniciarsesión.html */
legend {
    text-align: center;
}

.iniciarsesion fieldset li {
    display: flex;
    align-items: center;
} 

#checkbox {
    width: 1.5em;
    height: 1.5em;
    margin-right: .5em;
}

label {
    font-size: .6em;
}

input[type="file"] {
    width: 100%;
}

.quierosermiembro img {
    border-radius: 50%;
    width: 5em;
    display: block;
    margin: 1em auto;
}

/* sesión iniciada */
#modal_usuario {
    background-color: #c3e3ea;
    position: absolute;
    padding: 1.5em 1em;
    top: 8%;
    right: 1%;
    border-radius: .4em;
    box-shadow: 0 5px 6px rgba(0, 0, 0, 0.25);
}

#modal_usuario div:first-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2em;
}

#modal_usuario img {
    border-radius: 50%;
    display: block;
    width: 5em;
    height: auto;
    margin-bottom: .5em;
}

#modal_usuario div:nth-child(2){
    margin-left: 1em;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#modal_usuario div p:first-of-type {
    font-size: 1em;
    text-align: center;
}

#modal_usuario div p:nth-of-type(2) {
    font-weight: 300;
}

#modal_usuario a {
    color: white;
    text-transform: none;
}

#modal_usuario ul a:first-of-type {
    background-color: #6c1a77;
}

/* contacto.html */

.contacto p {
    text-align: center;
    margin: 2em 0;
}

.contacto textarea {
    height: 10em;
}

/* footer */

footer {
    margin-top: 2.5em;
    background-color: #eaeaea;
    padding: 1em 1em;
}

footer iframe {
    width: 100%;
    height: 27vh;
}

#contacto {
    display: flex;
    justify-content: center;
    align-items: center;
}

#contacto > div:first-child {
    border-right: solid #68c5d9 .1em;
    padding-right: .5em;
    width: 50%;
}

#contacto p:not(#contacto > div:last-of-type p) {
    text-align: right;
    font-size: .56em;
}

#contacto > div:nth-child(2) {
    padding-left: .7em;
    width: 50%;
}

#contacto span {
    text-transform: uppercase;
}

#redes {
    display: flex;
    align-items: center;
    margin-top: .5em;
}

#redes img {
    width: 1.2em;
    margin-right: .7em;
}

.ocultar, .ocultargeneros, .ocultarcomentarios1, .ocultarcomentarios2, .ocultarevento1, .ocultarevento2, .ocultarevento3, .ocultarevento4, .ocultarusuario {
    display: none;
}

@media screen and (min-width:600px) {
    header {
        padding: 1.1em 1.5em;
        align-items: center;
    }
    header img {
        width: 2.5em;
    }
    .banner h1{
        font-size: 1.5em;
        width: 27%;
    }
    .banner span {
        font-weight: 400;
    }
    h2 {
        font-size: 3.7em;
    }
    h3 {
        font-size: 1.1em;
    }
    p:not(.boton p, .autor) {
        font-size: .9em;
    }
    h4 {
        font-size: 1.2em;
        font-weight: 300;
    }
    #buscador, fieldset, .contacto form {
        margin: 0 auto;
        width: 70%;
    }
    .boton:not(.libro .boton, #modal_usuario .boton, .agenda .boton) {
        width: 60%;
        margin: 1em auto 0;
    }
    #menugeneros ul {
        width: 60%;
        margin: auto;
    }
    footer iframe {
        height: 45vh;
    }
    #contacto p {
        font-size: .7em;
    }
    #redes img {
        width: 1.5em;
    }
    .titulosinternos {
        font-size: 2em;
    }
    .libro article > div figure {
        width: 9em;
    }
    .libro article > div div {
        width: 40%;
    }
    .libro article ol li {
        font-size: .7em;
    }
    .libro ul {
        display: flex;
        justify-content: space-between;
    }
    .libro ul li {
        width: 32%;
    }
    .contacto p {
        width: 70%;
        margin: 2em auto;
    }
    #modal_usuario {
        left: 26%;
        width: 65%;
    }
    #modal_reservar, #modal_sermiembro, #modal_confirmar {
        width: 100%;
        padding: 0 3em;
    }
    #modal, #modal2 {
        margin: auto;
        width:60%;
    }
    #modal_reservar #modal > div:first-of-type {
        display: flex;
        justify-content: space-between;
    }
    #modal_reservar .boton {
        width: 49%;
    }
    #fondoforo {
        background-position: 100%;
    }
    .agenda > div:first-of-type {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .agenda div article {
        width: 48%;
    }
    .agenda > div article div:last-of-type {
        position: absolute;
        width: 40%;
    }
}
@media screen and (min-width:1200px) {
    header {
        padding: .5em 1.5em;
    }
    #llamamenu {
        display: none;
    }
    #bma {
        display: inherit;
        font-size: 3em;
    }
    header nav {
        display: flex;
        flex-direction: row-reverse;        
    }
    #menu > ul {
        position: static;
        background-color: #9b5fa3;
        display: flex;
        padding: 0;
    }    
    #menu > ul > li {
        border-top: 0;
        text-align: center;
        padding: 0 .5em;
        margin: 0 .5em;
    }
    #menu > ul > li:hover {
        background-color: #6c1a77;
        border-radius: .4em;
    }
    #menu > ul > li:nth-of-type(2) {
        width: 8.5em;
    }
    #menu ul div {
        display: inherit;
    }
    #menu a {
        color: white;
    }
    #menu ul div i {
        display: none;
    }
    #menu ul li ul {
        position: absolute;
        background-color: #d59ce0;
        padding-bottom: .6em;
    }
    #menu ul li ul li a:hover {
        color: #6c1a77;
    }
    .contenedora {
        margin: 0 24%;
    }
    .banner {
        padding: 5em;
    }
    .banner img {
        width: 11%;
    }
    .banner h1 {
        font-size: 2.2em;
        width: 20%;
    }
    .banner span {
        font-weight: 300;
    }
    h2 {
        font-size: 6.5em;
    }
    h3 {
        font-size: 1.7em;
    }
    #biblioteca > article:first-of-type p, #evento > article p, #comunidad > div:last-child p, .iniciarsesion p, #fondoforo p {
        text-align: center;
        width: 35em;
        margin: 1em auto;
    }
    h4 {
        font-size: 1.3em;
    }
    .articleflex {
        overflow-x:visible;
        justify-content: space-between;
    }
    .articleflex:not(.narrativa .articleflex) {
        margin: 1.5em 20em;
    }
    .boton2:hover, .boton:hover {
        background-color: #6c1a77;
    }
    #menugeneros ul li:hover {
        padding: 1em 0;
        transition: 0.5s ease;
    }
    #comunidad ol {
        margin-left: 6em;
    }
    h6 {
        font-size: 1em;
    }
    h5 {
        font-size: 1em;
    }
    footer iframe {
        width: 60%;
        margin-left: 17.5em;
    }
    #modal_usuario {
        width: 30em;
        left: 67%;
    }
    #modal, #modal2 {
        width:30%;
    }
    #fondoforo {
        padding: 3em 0 5em;
    }
    .contacto textarea {
        height: 20em;
    }
    .trabajos article figure {
        width: 30%;
    }
    .trabajos article > div:first-of-type div {
        width: 30%;
    }
}