* {
      margin: 0;
      padding: 0;
      border: none;
      outline: none;
      vertical-align: baseline;
      font-size: 100%;
}

:root {
      --mainrojo: #CD2E25;
      --gris: #909090;
      --gris2: #6b6b6b;
}

/*{border: 1px solid white;}/**/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&display=swap');

html {
      font-family: 'Open Sans', sans-serif;
}

body {
      width: 90%;
      margin: 0 auto;
      background: rgb(22, 22, 22);
      transition: 1s;
}


#botonmodo {
      background: none;
      color: white;
      cursor: pointer;
      border-radius: 15px;
      font-size: 20px;
      float: right;
      transition: 0.5s;
}

#botonmodo:hover {
      color: var(--gris);
}

#fondo {
      position: fixed;
      top: 40vh;
      left: 20vw;
      bottom: 0;
      right: 0;
      z-index: -1;
      overflow: hidden;
      color: rgb(25, 25, 25);
      font-size: 100px;
}


.email {
      text-decoration: none;
      color: var(--mainrojo);
      transition: 0.3s;
}

.email:hover {
      color: grey;
}

.articulo h1 i {
      color: var(--mainrojo);
      width: 200%;
}

nav a img {
      width: 50px;
      height: 50px;
      transition: 0.7s;
}

nav a img:hover {
      background-color: white;
      border-radius: 50%;
}

.home-actual {
      background-color: white;
      border-radius: 50%;
}

#apartados {
      display: flex;
      flex-direction: row;
      height: 50px;
      line-height: 50px;
      width: 90%;
      margin-left: 28px;
      padding-top: 50px;
}

#apartados ul {
      display: flex;
      padding: 0px;
      list-style: none;
      width: 500px;
      flex-direction: row;
      flex-wrap: wrap;
      margin-left: 10px;
}

#apartados ul li {
      margin: 0px 5px;
      text-transform: uppercase;
}

#apartados ul li a {
      text-decoration: none;
      color: var(--mainrojo);
      font-size: 15px;
      transition: 0.2s;
      font-weight: 400;
}

#apartados ul li a:hover {
      color: var(--gris);
}

#apartados ul li .apartado-actual {
      color: white;
      font-weight: 500;
}


h1 {
      color: white;
      font-size: 35px;
      margin-bottom: 30px;
      text-transform: uppercase;
}

h2 {
      color: white;
      font-size: 30px;
      margin-top: 40px;
      font-weight: 400;
}

h3 {
      color: var(--mainrojo);
      font-size: 30px;
      margin-top: 80px;
      font-weight: 400;
      border-bottom: 0.5px solid var(--mainrojo);
}

h4 {
      font-size: 20px;
      color: white;
      font-weight: 400;
      margin-top: 30px;
      margin-bottom: 20px;
}

h5 {
      color: var(--mainrojo);
      font-size: 80px;
      font-weight: 600;
}

h6 {
      color: var(--gris);
      font-size: 20px;
      font-weight: 100;
      text-transform: uppercase;
      letter-spacing: 10px;
      margin-top: 20px;
}


p {
      color: white;
      font-size: 16px;
      font-weight: 300;
}

.weblink {
      color: var(--mainrojo);
      text-decoration: none;
}

.weblink:hover {
      color: var(--gris);
}

.weblink p {
      color: var(--mainrojo);
}

.weblink p:hover {
      color: var(--gris);
}

#topnav {
      position: fixed;
      right: 5vw;
      background-color: #444444;
      max-width: 200px;
}

#topnav ul {
      float: right;
      display: flex;
      flex-direction: column;
      margin-top: 20px;
}

#topnav ul li {
      font-size: 15px;
      text-align: left;
      list-style: none;
}

#topnav ul li a {
      color: var(--gris);
      text-decoration: none;
      transition: 0.2s;
      font-weight: 100;
      text-transform: uppercase;
}

#topnav ul li a:hover {
      color: var(--mainrojo);
}

#topnav a.icon {
      color: var(--mainrojo);
      display: block;
      position: absolute;
      right: 0;
      top: 0;
      transition: 0.2s;
}

#topnav a.icon:hover {
      color: var(--gris);
}

#topnav #mislinks {
      display: none;
      right: 10px;
      top: 5vh;
      z-index: 999;
      padding: 10px;
}

#topnav #mislinks ul li {
      text-align: right;

}


/* NAV ICON */

#nav-icon3 {
      width: 15px;
      height: 15px;
      -webkit-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
      -webkit-transition: .5s ease-in-out;
      -moz-transition: .5s ease-in-out;
      -o-transition: .5s ease-in-out;
      transition: .5s ease-in-out;
      cursor: pointer;
      margin-top: 15px;
}

#nav-icon3:hover span{
      background: var(--gris);
}

#nav-icon3 span {
      display: block;
      position: absolute;
      height: 3px;
      width: 100%;
      background: var(--mainrojo);
      opacity: 1;
      left: 0;
      -webkit-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
      -webkit-transition: .25s ease-in-out;
      -moz-transition: .25s ease-in-out;
      -o-transition: .25s ease-in-out;
      transition: .25s ease-in-out;
}



#nav-icon3 span:nth-child(1) {
      top: 0px;
}

#nav-icon3 span:nth-child(2),
#nav-icon3 span:nth-child(3) {
      top: 6px;
}

#nav-icon3 span:nth-child(4) {
      top: 12px;
}

#nav-icon3.open span:nth-child(1) {
      top: 18px;
      width: 0%;
      left: 50%;
}

#nav-icon3.open span:nth-child(2) {
      -webkit-transform: rotate(45deg);
      -moz-transform: rotate(45deg);
      -o-transform: rotate(45deg);
      transform: rotate(45deg);
}

#nav-icon3.open span:nth-child(3) {
      -webkit-transform: rotate(-45deg);
      -moz-transform: rotate(-45deg);
      -o-transform: rotate(-45deg);
      transform: rotate(-45deg);
}

#nav-icon3.open span:nth-child(4) {
      top: 18px;
      width: 0%;
      left: 50%;
}

/*NAV ICON*/

#botonatras{
      background: none;
      position: absolute;
      right: 5vw;
      top: 5vh;
}


#atras{
      color: var(--mainrojo);
      font-size: 40px;
      transition: 0.2s;
      cursor: pointer;
}

#atras:hover{
      color: var(--gris);
}


.proyecto {
      opacity: 1.0;
      transition: 0.5s;
}

.proyecto:hover{
      opacity: 0.5;
}



.rrss {
      display: flex;
      flex-direction: row;
      max-width: 50%;
      margin: 0 auto;
      margin-top: 20px;
      margin-left: 0;
}

.rrss a {
      max-width: 50%;
      margin: 0 auto;
}

.rrss a {
      font-size: 70px;
      color: var(--mainrojo);
      transition: 0.3s;
}

.rrss a:hover {
      color: var(--gris);
}

#pregunta {
      margin-top: 20px;
}

#enviar {
      border-radius: 10px;
      padding: 5px;
      margin-left: 10px;
}

.articulo {
      margin: 100px 0px 50px 40px;
}

.articulo p {
      width: 60%;
      margin-top: 20px;
}

#foto-perfil {
      max-width: 30%;
      margin-top: -50px;
      margin-right: 40px;
      border-radius: 50%;
      float: right;
}

#bcreated {
      max-width: 15%;
      border-radius: 50%;
      margin-top: 20px;
}

.trabajos {
      text-align: center;
      width: 100%;
}

.trabajos img {
      margin: 1%;
      width: 45%;
      border-radius: 15px;
}


.trabajos2 {
      margin: 130px 40px 80px 40px;
}

/*
.trabajos2 {
      width: 90%;
      text-align: center;
}

.trabajos2 img {
      max-width: 100%;
      margin: 1%;
      max-height: 100vh;
}
*/
.trabajos img .vertical {
      height: 50vh;
}


.tipos-trabajos {
      margin-top: 50px;
      margin-left: 40px;
      width: 100%;
      justify-content: center;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
}

.tipos-trabajos p {
      margin-top: 15px;
      margin-bottom: 50px;
      color: white;
      transition: 0.5s;
      font-size: 20px;
      font-weight: 300;
}


.tipos-trabajos img {
      transition: 0.5s;
      margin: 10px 0px;
      max-width: 60%;
}

.tipos-trabajos img:hover {
      max-width: 90%;
      transition: 0.5s;
      margin: 5px 0px;
}



#myBtn {
      display: none;
      position: fixed;
      bottom: 10px;
      right: 10px;
      z-index: 99;
      font-size: 15px;
      border: none;
      outline: none;
      background-color: var(--mainrojo);
      color: white;
      cursor: pointer;
      padding: 15px;
      border-radius: 10px;
      transition: 0.2s;
}

#myBtn:hover {
      background-color: white;
      border-radius: 25px;
      color: var(--gris);
}

#myBtn:active {
      border-radius: 50%;
}

.telefono {
      text-decoration: none;
      color: var(--mainrojo);
}

.telefono:hover {
      color: var(--gris);
}


footer {
      margin: 60px auto 30px;
}

footer p {
      text-align: center;
      color: grey;
}



@media only screen and (max-width: 900px) {
      #apartados ul li a {
            font-size: 12px;
      }

      #apartados #topnav {
            width: 100%;
            border-radius: 0px;
            float: none;
            max-width: 150px;

      }

      #apartados #topnav ul {
            display: flex;
            flex-direction: column;
            justify-content: center;
      }

      #apartados #topnav ul li {
            font-size: 12px;
            margin-right: 10px;
      }

      .header2 {
            margin: 130px 0 40px 12px;
      }

      .header2 h1 {
            font-size: 36px;
      }

      .header2 p {
            font-size: 12px;
            width: 90%;
      }

      #foto-perfil {
            max-width: 30%;
            margin-top: 20px;
            float: none;
      }

      #bcreated {
            margin-top: 20px;
            float: none;
            max-width: 20%;
            margin-left: 0;
      }

      .trabajos img {
            margin: 2%;
            width: 90%;
      }

      .trabajos2 {
            margin: auto;
            width: 90%;
            justify-content: center;
      }


      .trabajos2 img {
            margin: 2%;
            width: 90%;
            justify-content: center;
      }

      .rrss {
            display: flex;
            flex-direction: row;
            max-width: 70%;
            margin-top: 20px;
      }

      .rrss a {
            font-size: 60px;
            margin-right: 30px;
            margin-left: 30px;
      }

      footer p {
            font-size: 12px;
      }

      h1 {
            font-size: 28px;
      }

      p {
            font-size: 15px;
      }

      .articulo {
            margin-left: 20px;
      }

      #fondo {
            font-size: 35px;
            top: 45vh;
            left: 35vw;
      }

      h5 {
            font-size: 30px;
      }

      h6 {
            font-size: 10px;
            letter-spacing: 4px;
      }

      h3 {
            font-size: 30px;
      }

}

@media only screen and (max-width: 600px) {


      #apartados ul li a {
            font-size: 12px;
      }

      .header2 {
            margin: 130px 0 40px 12px;
      }

      .header2 h1 {
            font-size: 36px;
      }

      .header2 p {
            font-size: 12px;
            width: 90%;
      }

      #foto-perfil {
            max-width: 50%;
            margin-top: 20px;
            float: none;
      }

      #bcreated {
            margin-top: 20px;
            float: none;
            max-width: 30%;
            margin-left: 15vw;
      }

      .trabajos img {
            margin: 2%;
            width: 90%;
      }

      .trabajos2 {
            margin: auto;
            width: 90%;
            justify-content: center;
      }


      .trabajos2 img {
            margin: 2%;
            width: 90%;
            justify-content: center;
      }

      .rrss {
            display: flex;
            flex-direction: row;
            max-width: 70%;
            margin-top: 20px;
      }

      .rrss a {
            font-size: 40px;
            margin-right: 0;
      }

      footer p {
            font-size: 12px;
      }

      h1 {
            font-size: 28px;
      }

      p {
            font-size: 15px;
      }

      .articulo {
            margin-left: 20px;
      }

      #fondo {
            font-size: 35px;
            top: 40vh;
            left: 12vw;
      }

      h6 {
            margin-top: 10px;
      }

      #apartados #topnav {
            width: 100%;
            border-radius: 0px;
            float: none;
      }

      #apartados #topnav ul {
            display: flex;
            flex-direction: column;
            flex-wrap: wrap;
            justify-content: center;
      }

      #apartados #topnav ul li {
            font-size: 9px;
            margin-right: 10px;
      }

      #botonmodo {
            font-size: 10px;
      }

      h3 {
            font-size: 23px;
      }

}