@charset "utf-8";

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

body {
    font-family: "trebuchet ms", sans-serif;
}

img {
    /* para que una imagen nunca sea mayor que la caja que la contiene */
    max-width: 100%;
    height: auto;
}

ul { list-style: none; }

header,
footer {
    background-color: darkcyan;
    padding: 0 .25em;
}

/* para limitar el ancho de los contenidos y centrarlos */
.fila {
    max-width: 50rem;
    margin: 0 auto;
    padding: .5em;
}


/* para alinear íconos con los subtítulos íconos  */
h3 {
    display: flex;
    align-items: center;
}
.material-icons { background: none; padding-right: .5rem }

/*
----------------
encabezado
----------------
*/

header .fila {
    
    /* caja flexible */
    display: flex;
    
    /* elementos colocados en los extremos del eje principal */
    justify-content: space-between;
    
    /* elementos centrados en el eje secundario */
    align-items: center;
}

#logo {
    display: block;
    width: 5em;
}

#llamamenu {
    background-color: rgba(255, 255, 255, 0.25);
    border: none;
    outline: none;
    color: white;
    cursor: pointer;
    height: 2.5em;
    width: 2.5em;
    position: relative;
    z-index: 9999;

    /* caja flexible */
    display: flex;
}

#llamamenu i { 
    padding: 0;
    /* centrado en la horizontal y en la vertical */
    margin: auto;
}


/* menu desplegable */

header nav {
    background-color: rgba(0,0,0,0.85);
    color: white;
    
    position: fixed;
    right: -50vw;
    top: 0;
    height: 100vh;
    min-width: 50vw;
    transition: all .3s ease;
    z-index: 9998;
}

/*header nav:target,*/
header nav.menuvisible {
    right: 0;
    transition: all .6s ease;
}

.usuario {
    margin: auto;
    text-align: center;
    font-size: 75%;
    padding: 3em 1em 1em 1em;
    border-bottom: solid 1px rgba(255,255,255,.25);
}
.usuario img {
    border-radius: 50%;
    width: 25vmin;
    height: 25vmin;
    max-width: 15em;
    max-height: 15em;
    border: 4px solid gray;
    box-shadow: 0 .35em .5em rgba(0, 0, 0, .25) inset, 0 .35em .5em rgba(0, 0, 0, .25);
}

header nav a {
    color: rgba(255,255,255,.75);
    padding: .5em 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

header nav a:hover {
    color: white;
}


/*
----------------
contenidos
----------------
*/

main {
    background-color: white;
}

section {
    border-top: solid 1px rgba(0,0,0,.1);
}

.galeria {
    padding-bottom: 2em;
    transition: all 1s ease;
}

.galeria > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.fondodestacado {
    background-color: rgba(0, 139, 139, 0.5);
}

.galeria h3 {
    width: 100%;
    padding: 1em;
}

.galeria figure {
    position: relative;
    overflow: hidden;
    flex-grow: 1;
}

.galeria img { display: block; }

.galeria figcaption {
    background-color: rgba(0,0,0,.5);
    border: solid 2px rgba(0,0,0,0);
    border-radius: 0 0 0 0;
    color: white;
    padding: .5em;
    position: absolute;
    height: 100%;
    top: calc(100% - 2.5em);
    left: 0;
    right: 0;
    transition: all .5s ease;
    
}

.galeria figure:hover figcaption {
    background-color: rgba(100,50,0,.5);
    border: solid 2px rgba(100,50,0,.6);
    border-radius: 5em 5em 0 0;
    padding: 1em;
    text-align: center;
    top: .5em;
    left: .5em;
    right: .5em;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    transition: all .3s ease-out;
}

.galeria figcaption span {
    color: #ddd;
    display: block;
    font-size: .75em;
    margin-top: 1em;
}


.textos {
    padding: 1em;
}

.textos > * {
    margin-bottom: 1em;
}

.subir {
    text-decoration: none;
    color: darkcyan;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.subir:hover {
    text-decoration: underline;
}


/*
---------------------------------
 puntos de quiebre (breakpoints)
 para el diseño responsive
---------------------------------
*/

/* reglas que se aplicarán cuando la ventana del navegador mida igual o más de 400px */
@media (min-width: 25em) {
    
    .galeria figure {
        width: 45%;
        margin: .125em;
    }
    
}

/* reglas que se aplicarán cuando la ventana del navegador mida igual o más de 560px */
@media (min-width: 35em) {
    
    header nav {
        background-color: rgba(0,0,0,.5);
        position: relative;
        right: auto;
        top: auto;
        height: auto;
        min-width: auto;
    }
    
    header nav ul {
        display: flex;
    }
    
    #llamamenu,
    .usuario {
        display: none;
    }

}



/*
----------------------------------
 modificaciones al css del plugin
----------------------------------

*/

.bx-wrapper {
    background: none;
    border: none;
    margin-bottom: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.bx-wrapper .bx-controls-direction a {
    top: 10px;
    margin: 0;
}

@media (min-width: 55em) {
    
    .bx-wrapper .bx-controls-direction a {
        top: 50%;
        margin-top: -16px;
    }
    
    .bx-wrapper .bx-prev { left: -38px; }
    .bx-wrapper .bx-next { right: -38px }
    
}