@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;900&display=swap');

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

img {
  width: 100%;
  display: block;
}

.encuadre{
  max-width: 400px;
  max-height: 500px;
  margin: 0 auto;
  /* border-radius: 50%;
  border: 2px solid #48a3ee; */
}


html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  color: #ffffff;
  background: #000000;
  /* padding-top: 60px; */
}

header,
main {
  max-width: 1200px;
  margin: auto;
}

/************************/
/*header ************** */
/************************/
header {
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  font-weight: 300;
  text-transform: uppercase;
  font-size: 3rem;
  color: whitesmoke;
  animation: backInDown;
  animation-duration: 1s; 
}

.logo > img {
  width: 80px;
  height: 80px;
  margin-top: 30px;
}

/* .logo:hover {
  animation: pulse; 
  animation-duration: 1s; 
} */

.header-bg {
  background-color: #01010b;
  position: fixed;
  width: 100%;
  top: 0;
  border-bottom: 2px solid darkred;
  z-index: 3;
}

.footer-bg {
  width: 100%;
  bottom: 0;
  border-top: 2px solid darkred;
}

/************************/
/*nav ************** */
/************************/
nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 100px;
}

/*-------------------------------------*/

.nav {
  position: fixed;
  background-color: #000;
  top: 0;
  left: 0;
  right: 0;
  transition: all 0.3s ease-in-out;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  transition: all 0.3s ease-in-out;
}

.nav ul {
  display: flex;
  list-style-type: none;
  align-items: center;
  justify-content: center;
}

.nav a {
  color: #fff;
  text-decoration: none;
  padding: 7px 15px;
  transition: all 0.3s ease-in-out;
}

.nav.active {
  background-color: #cc3e45;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav.active a {
  color: #000;
}

.nav.active .container {
  padding: 10px 0;
}

.nav a.current,
.nav a:hover {
  color: #c0392b;
  font-weight: bold;
}




/*------------------------------------*/

.prefacio {
  padding: 10px;
  margin-top: 10px;
  border-top: 2px solid darkred;
  border-bottom: 2px solid darkred;
  text-align: center;
}

/************************/
/*seccion grid  ******* */
/************************/
.grilla {
  display: flex;
  padding: 1rem 0;
}

.item {
  margin-bottom: 1rem;
  background-color: darkred;
  border: 10px solid darkred;
  padding-bottom: 1rem;
}
.item > div {
  padding: 1rem;
  text-align: center;
  background-color: darkred;
}

.articulo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0.5rem;
  /* background-color: rgba(140, 0, 0, 0.5); */
}
.articulo p {
  line-height: 2rem;
}

.titulo {
  position: relative;
  display: inline-block;
  color: #ddd;
  transition: transform 0.5s;
}

.titulo::after {
  position: absolute;
  content: "";
  display: inline-block;
  width: 100%;
  height: 100%;
  top: 20px;
  right: 10px;
  background-color: #cc3e45;
  z-index: -1;
  padding: 0 2px;
  transform: rotate(-2deg) translate(7px, -7px);
  transition: transform 0.5s;
}
.titulo::before {
  position: absolute;
  content: "";
  display: inline-block;
  width: 100%;
  height: 100%;
  top: 20px;
  right: 10px;
  background-color: #48a3ee;
  z-index: -1;
  padding: 0 2px;
  transform: rotate(2deg) translate(7px, -7px);
  transition: transform 0.5s;
}

.miNombre{
  position: relative;
  display: inline-block;
  color: #ddd;
  transition: transform 0.5s;
}
.miNombre::before{
  position: absolute;
  content: "";
  display: inline-block;
  width: 107%;
  height: 100%;
  top: 2px;
  right: -19px;
  background-color: #48a3ee;
  z-index: -1;
  padding: 0 4px;
  transform: rotate(-2deg) translate(-12px, -2px);
  transition: transform 0.5s;
}


.resaltar,
.resaltar1,
.resaltar2,
.resaltar3 {
  position: relative;
  display: inline-block;
  color: #ddd;
  transition: transform 0.5s;
}

.resaltar::before,
.resaltar1::before,
.resaltar2::before,
.resaltar3::before {
  position: absolute;
  content: "";
  display: inline-block;
  width: 100%;
  height: 100%;
  background-color: #48a3ee;
  z-index: -1;
  padding: 0 4px;
  transform: rotate(-2deg) translate(-12px, -2px);
  transition: transform 0.5s;
}
.resaltar1::before {
  background-color: #ff9900;
  transform: rotate(2deg) translate(-4px, -2px);
}
.resaltar2::before {
    background-color: #ff9900;
    transform: rotate(2deg) translate(-4px, -2px);
    width: 100%;
  }

.resaltar3::before {
    background-color: #ff9900;
    transform: rotate(2deg) translate(-4px, -2px);
    width: 100%;
  }

h2 {
  padding: 0.5rem;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.recuadroFotoJavi{
  margin: 0 auto;
  /* width: 100%;
  gap: .5rem; */
}

.subir {
  position: fixed;
  bottom: 40px;
  right: 10px;
}

/***************************************************/
/******************* 768 ***************************/
/***************************************************/
@media screen and (min-width: 768px) {
  nav,
  main,
  section {
    max-width: 768px;
    margin: auto;
  }

  nav {
    margin-top: 100px;
    display: flex;
    flex-direction: row;
  }

  .articulo {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .articulo h2 {
    background-color: #ff9900;
  }
  .articulo p {
    line-height: 2rem;
  }

  .resaltar1 {
    position: relative;
    display: inline-block;
    color: #ddd;
    transition: transform 0.5s;
    width: 100%;
    text-align: center;
  }
  .resaltar1::before {
    position: absolute;
    content: "";
    display: inline-block;
    width: 280px;
    height: 100%;
    background-color: #48a3ee;
    z-index: -1;
    padding: 0 4px;
    transform: rotate(-2deg) translate(-4px, -2px);
    transition: transform 0.5s;
  }

  .resaltar3 {
    position: relative;
    display: inline-block;
    color: #ddd;
    transition: transform 0.5s;
    width: 100%;
    text-align: center;
  }

  .resaltar3::after {
    position: absolute;
    content: "";
    display: inline-block;
    right: -50px;
    width: 280px;
    height: 100%;
    background-color: #48a3ee;
    z-index: -1;
    padding: 0 4px;
    transform: rotate(-2deg) translate(-4px, -2px);
    transition: transform 0.5s;
  }

  .seccion {
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .imgFormacion{
    width:  700px;
    height: 80px;
    margin: 0 auto; 
  }

  .recuadro{
    /* margin: 0 auto; */
    width: 100%;
    gap: .5rem;
  }

}
/***************************************************/
/******************* 990 ***************************/
/***************************************************/
@media screen and (min-width: 990px) {
  nav,
  main,
  section {
    max-width: 768px;
    margin: auto;
  }

  nav{
    margin-top: 100px;
  }

  .seccion {
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  /* .item-03{
    grid-column: 3 / 4;
    grid-row: 1 / 4;
  } */

  .item-04{
    grid-column: 1 / 4;
    grid-row: 2 / 4;
  }

  .imgTecno{
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
  }

  .item-05{
    grid-column: 1 / 2;
    grid-row: 4 / 5;
  }

  /* .item-10{
    grid-column: 1 / 4;
    grid-row: 6 / 8;
  } */

  .imgFormacion{
    width:  400px;
    height: 60px;
    margin: 0 auto; 
  }

  .fotoJavi{
    margin: 0 auto; 
  }
 
  .subir {
    display: none;
   
  }

}


.enviar {
  color: #000;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 20px;
  letter-spacing: 2px;
  border: 1px solid #000;
  border-radius: 5px;
  padding: 20px 60px;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.enviar span {
  width: 25%;
  height: 100%;
  background-color: #48a3ee;
  position: absolute;
  border-radius: 50%;
  transform: translateY(100%);
  transition: transform 0.2s;
  z-index: -2;
}
.enviar span:nth-child(1) {
  left: 0;
}
.enviar span:nth-child(2) {
  left: 25%;
  transition-delay: 0.1s;
}

.enviar span:nth-child(3) {
  left: 50%;
  transition-delay: 0.2s;
}

.enviar span:nth-child(4) {
  left: 75%;
  transition-delay: 0.3s;
}

.enviar:hover span {
  transform: translateY(0) scale(2);
}

.formulario{
  transition-property: all;
  transition-duration: 0.5s;
}

.error {
  background-color: rgb(185, 0, 0);
  padding: 1rem .5rem;
  text-align: center;
  color: var(--blanco);
}
.correcto {
  background-color: rgb(74, 185, 0);
  padding: 1rem .5rem;
  text-align: center;
  color: var(--blanco);
}

/* .botones {
  opacity: 0.8;
} */
.botones:hover{
  opacity: 1;
  animation: pulse; 
  animation-duration: 1s; 
}

.txtFormacion{
  color: #48a3ee;
}

.item_oscurecer {
  opacity: 1;
  transition: all 0.3s ease 0s;
  -moz-transition: all 0.3s ease 0s;
  -webkit-transition: all 0.3s ease 0s;
  -o-transition: all 0.3s ease 0s; 
}

.item_oscurecer:hover {
  opacity: 0.7;
  background: rgba(0, 93, 150, 0.7);
}



