@import url('myfonts.css');

:root{
    --scr-width:1000px;
    --padding-silbing: 1rem;
}

*{
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

body{
    /*background-color: #FFF;*/
    background-color:#f0f8ff;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
}

p{
    margin: 1em;
    line-height: 1.4em;
}

section {
    background-color: #FFF;
}

header{
    width: 100%;

}

nav{
    background-color: #00518C;
    width: 100%;
    position: fixed;
    z-index: 10;
    max-height: 70px;
}

nav .nav-container{
    display: flex;
    overflow: hidden;
}

.text-header{
    height:350px;
    background-color: #337AB7;
    width: 100%;
}

h1{
    color: #FFF;
    font-size: 3.3em;
    margin: 0px auto;
    text-transform: uppercase;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
}

.row-title-container{
    display: flex;
    overflow: hidden;
    flex-direction: row-reverse;
    justify-content: space-between;
}

nav a {
    display: inline-block;
    line-height: 1.5em;
    text-decoration: none;
    font-size: 1em;
    color: #FFF;
    font-weight: bold;
    padding: 25px 25px;
}

nav img{
    height: 90%;
    width: 90%;
}

main{
    width: 100%;
}

.container{
    width: 90%;
    padding: 40px;
    max-width: var(--scr-width, 1230px);
    margin: 0px auto;
    position: relative;
    top: -200px;
    border-radius: 5px;
    box-shadow: 0px -1px 15px rgba(0,0,0, .5);
    background-color: #FFF;
}

main h3{
    color: #337AB7;
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 20px;
}

.social-media
{
    margin: 0px auto;
    background-color:#f0f8ff;
    position: relative;
    top: -100px;
}

.social-container{
    width: 90%;
    padding: 40px;
    max-width: var(--scr-width, 1230px);
    margin: 0px auto;
}

.frame-container{
    display: flex;
    flex-wrap: wrap;
    justify-content:space-around;
}

footer{
    width: 100%;
    height: 100px;
    /*background-color:#00518C;*/
    background-color:#153D5F;
    padding:25px 40px;
}

footer h3{
    text-align: left;
    color:#E1E1E1;
    line-height: 17px;
    font-family: 'Nunito-Sans-regular', sans-serif ;
    font-size: 13px;
    font-weight: 400;
}

footer img{
    height: 30px;
    width: 30px;
    display: block;
    margin: 20px auto;
}

.item{
    border-radius: 5px;
    width: 30%;
    height: 400px;
    margin: 40px 0px;
    box-shadow: 0px 4px 15px rgba(0,0,0, .5);
}

.item iframe{
    width: 100%;
    height: 100%;
}

.blue{
    background-color:#81CBF2;
}

.violet{
    background-color:#C1B8F5;
}

.orange{
    background-color:#F2B181;
}

.novedad{
    margin: 20px 0px;
}

.sede-cr{
    color: #E9511E;
}

.sede-esq{
    color:#488C4D;
}

.sede-pm{
    color:#4783FF;
}
.sede-tw{
    color: #00ADD4;
}

.contenido{
    text-align: justify;
}

.fecha{
    font-size: .9em;
    color:#1b7fbd;
    font-weight: bold;
}

/*  
    Efecto de Fade-out de elementos no seleccionados, que se aplica a los sub elementos directos de un selector
    pueden ser botones, parrafos, h1, imagenes, etc.
*/
.fade-out-siblings {
    /*text-align: center;*/
    grid-gap: var(--padding-silbing);
    padding: var(--padding-silbing);
    display: grid;
    margin: 0.5rem 0;
    pointer-events: none;
}

.fade-out-siblings > * {
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    background: #fff;
    padding: 1rem 1rem;
    cursor: pointer;
  
    pointer-events: auto;
    transition: 300ms opacity, 300ms transform;
  }
  
  .fade-out-siblings:hover > * {
    opacity: 0.4;
  }
  
  .fade-out-siblings:hover > *:hover {
    transform: scale(1.07);
    opacity: 1;
  }

  .parent:hover > :focus:not(:hover) {
    transform: scale(1.03);
  }


@media screen and (max-width: 800px){

    body{
        font-size: 14px;
    }

    .text-header{
        height:250px;
    }

    .container{
        top: -100px;
    }

    h1{
        font-size: 2.2em;
    }

    .item{
        width: 45%;
    }
}

@media screen and (max-width: 650px){
    body{
        font-size: 12px;
    }

    h1{
        font-size: 2em;
    }

    .row-title-container{
        flex-direction: column-reverse;
    }

     .social-media{
         justify-content: center;

     }

    .item{
        width: 80%;
        margin: 0px;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 400px){

    .fade-out-siblings{
        padding: 10px 5px;
    }

    .container{
        padding: 5px 5px;
    }

    .item{
        width: 100%;
    }

}