/*! HTML5 Boilerplate v5.3.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
   ========================================================================== */
* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  color: #222;
  background: #f7f7f7;
  font-size: 16px;
  line-height: 1.4;
  font-family: 'Open Sans', sans-serif;
}

a {
  text-decoration: none;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * 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
   ========================================================================== */
/*********HEADER*********/
.contenedor {
  margin: 0 auto;
  overflow: hidden;
  max-width: 1200px;
}

.contenedor-contacto {
  margin: 0 auto;
  overflow: hidden;
  max-width: 800px;
}

header {
  background: url(../img/bg.jpg) #000;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 450px;
  -webkit-animation: banner 10s infinite;
          animation: banner 10s infinite;
  -webkit-animation-direction: alternate;
          animation-direction: alternate;
}
@-webkit-keyframes banner {
  0%,30% {
    background-image: url(../img/bg.jpg);
  }
  35%,65% {
    background-image: url(../img/bg2.jpg);
  }
  70%,100% {
    background-image: url(../img/bg3.jpg);
  }
}
@keyframes banner {
  0%,30% {
    background-image: url(../img/bg.jpg);
  }
  35%,65% {
    background-image: url(../img/bg2.jpg);
  }
  70%,100% {
    background-image: url(../img/bg3.jpg);
  }
}
header .contenedor-banner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
header .contenedor-banner .contenedor-texto {
  text-align: center;
  padding: 15px 40px;
  border-radius: 3px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  margin: 30px 0;
  color: #FFF;
  text-shadow: 3px 3px 3px #000;
  font-size: 1.5em;
  background: rgba(0, 0, 0, 0.5);
}
header .contenedor-banner .contenedor-texto h1 {
  font-weight: 600;
  font-style: italic;
  margin: 0;
}
header .contenedor-banner .contenedor-texto p {
  font-weight: 400;
}
header .contenedor-banner .menu {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
header .contenedor-banner .menu .menu-contenedor {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-flow: row wrap;
          flex-flow: row wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
header .contenedor-banner .menu .menu-contenedor a {
  width: 100px;
  height: 100px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 30px;
  background: rgba(14, 77, 80, 0.5);
  border-radius: 50%;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  color: #FFF;
}
header .contenedor-banner .menu .menu-contenedor a i {
  font-size: 1.7em;
  margin-bottom: 5px;
}

/****MAIN***/
.servicios {
  margin: 60px auto;
  padding: 60px 0;
}
.servicios .contenedor-servicios {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-flow: row wrap;
          flex-flow: row wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin: 30px 0;
}
.servicios .contenedor-servicios .servicio {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-flow: column wrap;
          flex-flow: column wrap;
  text-align: center;
  padding: 20px;
}
.servicios .contenedor-servicios .servicio i {
  font-size: 3em;
  margin-bottom: 10px;
}
.servicios .contenedor-servicios .servicio h4 {
  font-size: 1.2em;
}
.servicios .contenedor-servicios .servicio p {
  width: 70%;
  margin: 0 auto;
}

.trabajos {
  margin: 60px auto;
  padding: 80px 0;
  background: #0E4D50;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.trabajos h2 {
  width: 100%;
}
.trabajos .contenedor-trabajos {
  margin: 20px;
}
.trabajos .contenedor-trabajos a {
  display: inline-block;
  text-align: center;
}
.trabajos .contenedor-trabajos figure {
  width: 280px;
  height: 350px;
  margin: 20px 0;
  position: relative;
  -webkit-transition: all ease .5s;
  transition: all ease .5s;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-transform: perspective(600px) rotateY(0deg);
          transform: perspective(600px) rotateY(0deg);
  -webkit-box-shadow: 0px 2px 10px 2px rgba(0, 0, 0, 0.25);
          box-shadow: 0px 2px 10px 2px rgba(0, 0, 0, 0.25);
}
.trabajos .contenedor-trabajos figure .frontal, .trabajos .contenedor-trabajos figure .trasera {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  -webkit-transition: all ease .5s;
  transition: all ease .5s;
}
.trabajos .contenedor-trabajos figure .frotal {
  display: block;
}
.trabajos .contenedor-trabajos figure .trasera {
  position: absolute;
  top: 0;
  padding: 20px;
  color: #FFF;
  -webkit-transform: perspective(600px) rotateY(180deg);
          transform: perspective(600px) rotateY(180deg);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  overflow: auto;
}
.trabajos .contenedor-trabajos figure .trasera .titulo-trabajo {
  color: #fff;
  font-weight: 600;
  margin: 40px 0 20px 0;
  padding: 5px 10px;
}
.trabajos .contenedor-trabajos figure .trasera hr {
  height: 2px;
  background: #FFf;
  border: none;
  margin-bottom: 20px;
  opacity: .5;
}
.trabajos .contenedor-trabajos figure .trasera p {
  font-family: 'Open Sans',sans-serif;
  line-height: 22px;
  font-size: 18px;
  font-weight: 600;
}
.trabajos .contenedor-trabajos p {
  text-align: center;
  font-weight: 600;
}
.trabajos .contenedor-trabajos:nth-child(2) figure .trasera {
  background: rgba(130, 103, 75, 0.75);
  background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(130, 103, 75, 0.75)), color-stop(52%, rgba(171, 154, 92, 0.75)), color-stop(100%, #d1c96c));
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(130, 103, 75, 0.75)), color-stop(52%, rgba(171, 154, 92, 0.75)), to(#d1c96c));
  background: linear-gradient(to bottom, rgba(130, 103, 75, 0.75) 0%, rgba(171, 154, 92, 0.75) 52%, #d1c96c 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#82674b', endColorstr='#d1c96c', GradientType=0 );
}
.trabajos .contenedor-trabajos:nth-child(3) figure .trasera {
  background: rgba(27, 33, 51, 0.9);
  background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(27, 33, 51, 0.9)), color-stop(100%, rgba(83, 157, 219, 0.9)));
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(27, 33, 51, 0.9)), to(rgba(83, 157, 219, 0.9)));
  background: linear-gradient(to bottom, rgba(27, 33, 51, 0.9) 0%, rgba(83, 157, 219, 0.9) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1b2133', endColorstr='#539ddb', GradientType=0 );
}
.trabajos .contenedor-trabajos:nth-child(4) figure .trasera {
  background: rgba(237, 182, 89, 0.8);
  background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(237, 182, 89, 0.8)), color-stop(100%, rgba(32, 150, 135, 0.8)));
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(237, 182, 89, 0.8)), to(rgba(32, 150, 135, 0.8)));
  background: linear-gradient(to bottom, rgba(237, 182, 89, 0.8) 0%, rgba(32, 150, 135, 0.8) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#edb659', endColorstr='#209687', GradientType=0 );
}
.trabajos .contenedor-trabajos:nth-child(5) figure .trasera {
  background: rgba(237, 182, 89, 0.8);
  background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(237, 182, 89, 0.8)), color-stop(100%, rgba(32, 150, 135, 0.8)));
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(237, 182, 89, 0.8)), to(rgba(32, 150, 135, 0.8)));
  background: linear-gradient(to bottom, rgba(237, 182, 89, 0.8) 0%, rgba(32, 150, 135, 0.8) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#edb659', endColorstr='#209687', GradientType=0 );
}

.acerca {
  margin: 100px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.acerca .habilidades {
  width: 90%;
  padding: 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-flow: row wrap;
          flex-flow: row wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.acerca .habilidades .titulo-habilidades {
  width: 100%;
  text-transform: uppercase;
  margin: 30px 0 10px 0;
  color: #0E4D50;
  font-weight: bolder;
}
.acerca .habilidades .habilidad {
  width: 100%;
  font-weight: 600;
  margin: 5px;
}
.acerca .habilidades .habilidad .barra {
  position: relative;
  /* Safari Chrome */
  /* firefox */
}
.acerca .habilidades .habilidad .barra progress {
  background-color: #f3f3f3;
  border: 1px;
  height: 26px;
  width: 100%;
  border-radius: 9px;
}
.acerca .habilidades .habilidad .barra progress::-webkit-progress-bar {
  background-color: #d2d2d2;
  border-radius: 9px;
}
.acerca .habilidades .habilidad .barra progress::-webkit-progress-value {
  background: #0E4D50;
  border-radius: 9px;
}
.acerca .habilidades .habilidad .barra progress::-moz-progress-bar {
  background: #0E4D50;
  border-radius: 9px;
}
.acerca .habilidades .habilidad .barra p {
  position: absolute;
  top: 0;
  color: #FFF;
  margin: 0 10px;
  line-height: 26px;
}
.acerca .descripcion {
  width: 100%;
  margin: 0px auto;
  background: #0E4D50;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-flow: column wrap;
          flex-flow: column wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
  padding: 30px;
  color: #c2c2c2;
  font-weight: 300;
}
.acerca .descripcion figure {
  width: 40%;
}
.acerca .descripcion figure img {
  width: 100%;
  border-radius: 50%;
  border: 5px solid rgba(0, 0, 0, 0.3);
}
.acerca .descripcion .negrita {
  font-weight: 700;
  font-style: italic;
  margin: 10px;
}

.redes-sociales {
  font-size: 1.5em;
}
.redes-sociales i {
  width: 40px;
  height: 40px;
  background: #FFF;
  padding: 7px;
  border-radius: 50%;
  margin: 15px;
  color: #0E4D50;
  border: 1px solid transparent;
}
.redes-sociales i:hover {
  background: #0E4D50;
  color: #FFF;
  border: 1px solid;
}

/***footer**/
footer .contacto {
  background-image: url(../img/habilidades.jpg);
  background-position: center center;
  padding: 50px 20px;
}
footer .contacto .formulario {
  margin-top: 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

footer .contacto .formulario input[type="text"],
footer .contacto .formulario input[type="email"],
footer .contacto .formulario textarea {
  border: 2px solid #cecece;
  border-radius: 5px;
  padding: 15px 20px;
  font-size: 20px;
  color: #a4a4a4;
}

footer .contacto .formulario input[type="text"]:focus,
footer .contacto .formulario input[type="email"]:focus,
footer .contacto .formulario textarea:focus {
  border: 2px solid #0E4D50;
}

footer .contacto .formulario input[type="text"],
footer .contacto .formulario input[type="email"] {
  width: 100%;
  margin-bottom: 15px;
}

footer .contacto .formulario textarea {
  width: 100%;
  height: 100px;
  min-width: 100%;
  max-width: 100%;
  min-height: 100px;
  max-height: 300px;
  margin-bottom: 15px;
}

footer .contacto .formulario .boton {
  margin: auto;
  background: #0E4D50;
  color: #FFF;
  border: none;
  border-radius: 3px;
  padding: 15px 40px;
  cursor: pointer;
}

footer .contacto .formulario .boton:hover {
  background: #FFF;
  color: #0E4D50;
  font-weight: bolder;
}

.copy {
  text-align: center;
  font-weight: 600;
  margin-bottom: 20px;
}

footer .redes-sociales {
  text-align: center;
  padding: 10px;
}
footer .redes-sociales i {
  background: rgba(14, 77, 80, 0.8);
  color: #FFF;
}
footer .redes-sociales i:hover {
  background: #0E4D50;
  border: 1px solid;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */
.titulo {
  font-weight: 600;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
}
.titulo:after {
  content: '';
  margin: 0 auto;
  width: 130px;
  height: 3px;
  display: block;
  border-bottom: 2px solid;
  border-top: 2px solid;
}

.white {
  color: #FFF;
}

.borde {
  border: 1px solid red;
}

/*
 * Hide visually and from screen readers
 */
.hidden {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */
.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/*
 * 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;
}

/*
 * 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 screen and (min-width: 480px) {
  header .contenedor-banner .menu a:hover {
    background: #0e4d50;
  }
}
@media screen and (min-width: 600px) {
  /****MAIN***/
  .servicios .contenedor-servicios .servicio {
    width: 43%;
  }
  .servicios .contenedor-servicios .servicio p {
    width: 100%;
  }
}
/*****************min-width: 767px**************/
@media screen and (min-width: 767px) {
  .contenedor-banner {
    margin-top: 40px;
  }

  /****MAIN***/
  .servicios .contenedor-servicios .servicio {
    width: 25%;
  }

  .contenedor-trabajos:hover figure {
    -webkit-transform: perspective(600px) rotateY(180deg);
            transform: perspective(600px) rotateY(180deg);
  }

  .acerca .titulo {
    width: 100%;
    margin-bottom: 30px;
  }
  .acerca .habilidades, .acerca .descripcion {
    width: 50%;
  }

  footer .contacto .formulario input[type="text"],
  footer .contacto .formulario input[type="email"] {
    width: 49%;
    margin-bottom: 15px;
  }
}
/**************** min-width: 950px ************/
@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:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */
@media print {
  *,
  *:before,
  *:after,
  *:first-letter,
  *:first-line {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster:
       http://www.sanbeiji.com/archives/953 */
    -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,
  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;
  }

  img {
    max-width: 100% !important;
  }

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

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