/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
/**GLOBALES**/

section{
  /*background-color:rgb(161, 149, 125);*/
  background-image: url("../img/fondo-body.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding-top: 20px;
  padding-bottom: 20px;
}

section div.contenido{
  width: 80%;
  background-color: rgb(255, 255, 255);
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 30px;
  margin-top: 60px;
  box-shadow: -5px -5px 22px -2px rgba(0,0,0,0.65);
}
@media screen and (max-width:1024px) {
  section div.contenido{
    width: 90%;
  }
}

section h2{
  font-size: 2.3em;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  padding-top: 30px;
  background-repeat:no-repeat;
  background-position: center 75%;
  padding-bottom: 30px;
}
@media screen and (max-width:640px) {
  section h2{
    padding-bottom: 0px;
  }
}

section h2::after{
  content: " ";
  background-image: url('../img/separador.png');
  background-repeat: no-repeat;
  background-position: center;
  width: 100px;
  height: 40px;
  display: block;
  margin: 0 auto;
}

section.seccion p{
  margin-left: 10%;
  margin-right: 10%;
  font-size: 1.4em;
  text-align: justify;
  font-family: 'Yanone Kaffeesatz', sans-serif;
}

a.boton{
  display: inline-block;
  padding: 20px 30px;
  text-transform: uppercase;
  background-color: rgba(37,69,105,1);
  color: #FFFFFF;
  text-decoration: none;
  font-family: 'Acme', sans-serif;
  font-size: 1.3em;
}

a.boton:hover{
  box-shadow: -5px -5px 22px -2px rgba(0,0,0,0.65);
  transform: scale(1.1);
  transition: ease all 0.5s;
}

/**HEADER**/
div.hero{
  height: 100%;
  background-image: url(../img/fondo-top.jpg);
  height: 100vh; /*Viewport Hight*/
  background-position: center center;
  background-size: cover;
  position:relative
}

div.hero img{
  display: block;
  margin-left: auto;
  margin-right: auto;
  width:350px;
  padding-top: 45px;
}
@media screen and (max-width:1024px) and (min-width:640px) {
  div.hero img{
    width:550px;
    padding-top: 100px;
  }
}
@media screen and (min-width:1024px) {
  div.hero img{
    width:650px;
    padding-top: 60px;
  }
}

div.hero h1{
  position:absolute;
}

div.eslogan{
  width: 100%;
  margin: 0 auto;
  margin-top:50px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size:1.1em;
  font-weight: bold;
}

div.eslogan h3{
  color: #FFFFFF;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  margin-top: 0;
  text-shadow: 1px 0 #000000, 0 1px #000000, 1px 0 #000000, 0 -1px #000000;
}

@media screen and (max-width:1024px) and (min-width:640px) {
  div.eslogan{
    flex-direction: column;
    font-size:1.5em;
  }
}
@media screen and (min-width:1024px) {
  div.eslogan{
    width: 60%;
    flex-direction: row;
    flex-wrap: wrap;
    font-size:1.5em;
  }
  div.eslogan h3{
    width:50%
  }
}

div.redes-sociales{
  display: flex;
  justify-content: center;
  height:auto;
  margin-top:10%;
  align-items: flex-end;
}
@media screen and (max-width:1024px) and (min-width:640px) {
  div.redes-sociales{
    margin-top:25%;
  }
}
@media screen and (min-width:1024px) {
  div.redes-sociales{
    margin-top:5%;
  }
}

div.redes-sociales ul{
  text-decoration: none;
  list-style: none;
  display: flex;
  flex-direction: row;
}

div.redes-sociales ul li a i{
  font-size: 60px;
  margin-right: 30px;
  color:#000000;
  text-shadow: 1px 0 #FFFFFF, 0 1px #FFFFFF, 1px 0 #FFFFFF, 0 -1px #FFFFFF;
}
div.redes-sociales ul li a i:hover{
  color: rgba(37,69,105,1);
  transition: ease 0.5s;
}




/**BARRA DE MENU PRINCIPAL**/

div.menu-principal{
  display: flex;
  flex-direction: row;
  max-width: 100%;
  background-color:#000000;
  margin-top: 0;
}
div.superior-movil{
  display: flex;
  flex-direction: row;
}

div.logos{
  display: flex;
  flex-direction: row;
}

div.menu-principal ul{
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
  margin-right: 50px;
  background-color:#000000;
  font-family: 'Acme', sans-serif;
}

div.menu-principal ul li{
  width:100%;
  list-style: none;
  text-align: center;
}

.logos img.nombre-menu{
  height:80px;
  width: 120px;
  margin-top: 10px;
  filter: invert(100%);
}
.logos img.logo-menu{
  height:80px;
  width: 160px;
  margin-left: 20px;
  margin-top: 10px;
}

div.menu-principal ul li a{
  text-decoration: none;
  font-size: 1.2em;
  text-transform: uppercase;
  color: white;
  display: inline-block;
  width:100%;
  padding-top: 20px;
  padding-bottom: 20px;
}

div.menu-principal ul li:hover{
  background-color: rgba(37,69,105,1);
  transition: ease all .5s ;
}

div.desplegable{
  display: none;
}


/**MENU MOVIL**/
@media screen and (max-width:780px) {
  div.menu-principal{
    flex-direction: column;
    justify-content: center;
  }
  div.menu-principal ul{
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding-left: 0;
    display:none;
  }
  div.superior-movil{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  div.desplegable{
    display: block;
    width: 50px;
    height: 10px;
    background-color: #FFFFFF;
    margin-bottom: 8px;
  }

  div.menu-desplegable{
    margin-right: 35px;
    margin-top: 15px;
  }
}

.fixed{
  position: fixed;
  z-index: 2;
  width: 100%;
  top:0;
  left:0;
}

/**PARALLAX TOP**/
div.parallax-top{
  height: 350px;
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-image:url("../img/parallax-top.jpg");
  background-position: bottom;
  margin: 0 auto;
  margin-bottom: -80px;
  margin-top: -50px;
  background-attachment: fixed;
  filter: grayscale(1);
  box-shadow: -5px -5px 22px -2px rgba(0,0,0,0.9);
}

section.parallax-top div.contenido{
  width:90%;
}

div.parallax-text{
  width: 100%
}

div.parallax-top h2{
  color:white;
  font-family: 'Acme', sans-serif;
  font-size: 3em;
  padding-top: 8%;
  text-transform: uppercase;
  display: block;
  text-align: center;
}
@media screen and (max-width:768px) {
  div.parallax-top h2{
    padding-top: 12%;
  }
}

div.parallax-top h2::after{
  content:"";
  background: none;
}

@media screen and (max-width:640px) {
  div.parallax-top{
    height: 160px;
    filter: grayscale(0);
    transform: scale(1.1);
    background-position: 20%;
  }
  div.parallax-top h2{
    font-size:1.5em;
  }
}


/**SECCION TRABAJOS**/

div.trabajos{
  display:flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}

div.trabajo{
  width: 35%;
  position: relative
}
@media screen and (max-width:640px) {
  div.trabajo{
    width: 90%;
  }
}

div.trabajo img{
  width: 100%;
  margin-bottom: 30px;
  filter: grayscale();
  height: 250px;
}

div.trabajo:hover img{
  filter:none;
  transition: ease-in-out 0.5s;
  transform: scale(1.05);
}

div.trabajo:hover h3{
  bottom: -15%;
  opacity: 0;
  transform: scale(1.1);
  transition: all 0.5s ease-in-out;
}

section.seccion-trabajos a.boton{
  margin:0 auto;
  display: block;
  text-align: center;
  width: 20%;
}

div.trabajo h3{
  position: absolute;
  bottom: 0;
  display: block;
  width: 100%;
  background-color: black;
  color: white;
  padding: 10px 0;
  text-align: center;
  font-family: 'Yanone Kaffeesatz', sans-serif;
  text-transform: uppercase;
}



/**MAPA**/

#mapaid{
  width: 95%;
  height: 500px;
  margin:auto;
  background-color: black;
}

div.boton-horario{
  display: flex;
  flex-direction: row;
  justify-content: center;
}


/**PARALLAX BOTTOM**/
section.parallax-bottom div.contenido{
  padding: 0;
  margin-top:50px;
  margin-bottom:-20px;
  width:90%;
}

div.contador{
  background-image: url(../img/parallax-bottom.jpg);
  height: auto;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 100px 0;
  box-shadow: -5px -5px 22px -2px rgba(0,0,0,0.65);
}

ul.resumen-numeros{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  text-transform: uppercase;
  padding-left: 0;
}

ul.resumen-numeros li p{
  color: #FFFFFF;
  font-size: 3em;
  margin-bottom: 0;
  margin-top: 0;
}

ul.resumen-numeros li{
  width: 90%;
  text-align: center;
  color:white;
  font-family: 'Oswald', sans-serif;
  font-size: 2em;
  margin-bottom: 30px;
}
@media screen and (max-width:768px) and (min-width:640px) {
  ul.resumen-numeros li{
    width: 50%;
  }
}
@media screen and (min-width:1024px) {
  ul.resumen-numeros li{
    width: 25%;
    margin-bottom: 0px;
  }
  section.parallax-bottom div.contenido{
    margin-bottom:-60px;
    margin-top:20px;
  }
}

ul.resumen-numeros li p.numero{
  text-align: center;
}


/**FOOTER**/

footer{
  background-color: #000000;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
}

footer h2{
  font-family: 'Yanone Kaffeesatz', sans-serif;
  text-transform: uppercase;
}

footer div.logos{
  padding: 20px 0;
}

footer div.logos img.logo-menu{
  margin-left: 0;
}

footer div.redes-sociales{
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content:center;
  padding-right: 50px;
  width: 30%;
  margin-top:0;
}

footer div.redes-sociales h2{
  margin: 0 auto;
  margin-top: 20px;
}

footer div.redes-sociales ul{
  margin:0 auto;
}

footer div.redes-sociales ul li a i{
  color: #FFFFFF;
  font-size:45px;
  margin-right:20px;
  text-shadow:none;
}

a.email{
  color: #FFFFFF;
  text-decoration: none;
}

footer div.nosotros{
  width: 45%;
}

@media screen and (max-width:768px) {
  div.nosotros{
    display: none;
  }
  footer div.logos img.nombre-menu{
    display:none;
  }
  footer{
    flex-direction: row;
    justify-content: space-between;
  }
  footer div{
    width: 45%;
  }
  footer div.redes-sociales{
    margin-right: 60px;
  }
  footer div.redes-sociales ul{
    padding: 0;
  }
}


/**MINIATURAS PROYECTOS**/

div.proyectos{
  display: flex;
  flex-direction: row;
  justify-content:center;
  flex-wrap: wrap;
}

div.proyecto-min{
  width: 85%;
  display: flex;
  flex-direction: column;
  justify-content:center;
  background-color: rgba(0,0,0,0.2);
  margin: 50px auto;
  box-shadow: -5px -5px 22px -2px rgba(0,0,0,0.65);
  padding: 30px 0;
}
@media screen and (min-width:768px) {
  div.proyecto-min{
  padding:0;
  }
}
@media screen and (min-width:1024px) {
  div.proyecto-min{
    width: 45%;
  }
}

div.proyecto-min img{
  width: 80%;
  height: 150px;
  margin: 0 auto;
}

div.proyecto-min h3{
  font-family: 'Oswald', 'sans-serif';
  text-transform: uppercase;
  text-align: center;
  font-size: 1.4em;
  color: #000000;
  margin-top: 0;
}

div.proyecto-min a{
  width: 50%;
  text-align: center;
  display: inline-block;
  padding: 20px 30px;
  text-transform: uppercase;
  background-color: rgba(37,69,105,1);
  color: #FFFFFF;
  text-decoration: none;
  font-family: 'Acme', sans-serif;
  font-size: 1em;
  margin: 20px auto;
  font-weight: bold;
}
@media screen and (max-width:768px) and (min-width:640px) {
  div.proyecto-min img{
    width: 80%;
    height: 300px;
    margin: 0 auto;
  }
  div.proyecto-min h3{
    padding-top:20px;
  }
}
@media screen and (min-width:1024px) {
  div.proyecto-min a{
    width: 25%;
  }
  div.proyecto-min img{
    width: 80%;
    height: 350px;
    margin: 0 auto;
  }
  div.proyecto-min h3{
    padding-top:20px;
  }
}

div.proyecto-min a:hover{
  transform: scale(1.05);
}

div.botones-navegacion{
  display: flex;
  flex-direction: row;
  justify-content: center;
}

div.botones-navegacion a{
  width: 15%;
  text-align: center;
  display: inline-block;
  padding: 20px 30px;
  text-transform: uppercase;
  background-color: rgba(37,69,105,1);
  color: #FFFFFF;
  text-decoration: none;
  font-family: 'Acme', sans-serif;
  font-size: 1em;
  font-weight: bold;
  margin: 0 10px;
}
@media screen and (min-width:1024px) {
  div.botones-navegacion a{
    font-size: 1em;
  }
}
div.botones-navegacion a:hover{
  transform: scale(1.05);
}

div.administrar{
  text-align: right;
  background-color: transparent;
}

div.administrar a{
  text-decoration: none;
  color: white;
}

/**ENTRADA proyectos**/

div.imagen_destacada{
  width: 60%;
  margin: 0 auto;
  margin-bottom: 50px;
}

div.imagen_destacada img{
  width: 100%;
  margin: 0 auto;
}

/**Galerias de Wordpress (EDITOR CLASICO)**/
div.texto-entrada{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  padding:0;
}

div.texto-entrada img{
  width: 49%;
  height: auto;
  margin-bottom: 1rem;
}

/**Galerias de Wordpress Gutenberg**/
ul.wp-block-gallery, ul.blocks-gallery-grid{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  padding:0;
}
li.blocks-gallery-item{
  list-style: none;
  width: 100%;
  margin:0;
}
li.blocks-gallery-item img{
  width: 100%;
  margin:0;
}
@media screen and (min-width:1024px) {
  li.blocks-gallery-item{
    width: 40%;
  }
}


/*SECCION MEDIO AMBIENTE*/
section.seccion-ambiente-parallax div.contenido{
  background-image: url(../img/medioambiente.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 20px 0;
  box-shadow: -5px -5px 22px -2px rgba(0,0,0,0.65);
  margin-bottom: 100px;
  width: 90%;
}

section.seccion-ambiente-parallax ul{
  list-style: none;
  text-align: center;
  text-transform: uppercase;
}

section.seccion-ambiente-parallax ul li{
  padding: 10px 0;
  font-size:1.4em;
  font-family: 'Acme', sans-serif;
  color: #FFFFFF;
  text-shadow: 2px 0 #000000, 0 2px #000000, 2px 0 #000000, 0 2px #000000;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
