:root{

    /* PALETA DE COLORES */
    --negro: #000;
    --negro2:  #191919;
    --negro3: #212121;
    --blanco: #fff;
    --gris: #a9a9a9;

    /* FUENTE */

    --fuenteprincipal: 'Roboto', sans-serif;
    --fuentesecundaria:'Open Sans', sans-serif;

}

html {
    /* 1rem = 10px */
    font-size: 62.5%;
    box-sizing: border-box;
  }

body {
    font-size: 1.6rem;
    font-family: var(--fuenteprincipal);
    background-color: var(--negro3);
  }

*,
*::after,
*::before {
    box-sizing: inherit;
}

/* GLOBALES */
*{
    color: var(--blanco);
    margin: 0;
    padding: 0;
    border: 0;
}

li,ul{
    list-style: none;
}
a{
    text-decoration: none;

}
button{
    border-radius: 0;
}

h1,h2{
  margin: 0;
}

p{
  color: var(--gris);
  font-family: var(--fuentesecundaria);
}
/* HEADER  barra superior navegacion*/

.redes{
  display:none
}

.lista--movile{
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 3rem;
}
#navegacion_principal{
  display: none;
}

#header{
  position: fixed;
  top: 0;
  z-index: 1000; /* Asegura que el header esté en la capa superior */
  width: 100%;
  padding: 2rem;
  height: 15rem;
  background-color: var(--negro2);
  transition: background-color 0.3s ease; /* Transición suave para el cambio de color de fondo */

}

#header.fixed {
  background-color: rgba(0, 0, 0, 0.8); /* Puedes ajustar la opacidad del fondo fijo */
}


.barra-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo_contenedor{
  width: 10rem;
}
.logo_contenedor .logo{
  width: 100%;
}
#navegacion_principal--movile{
    display: block;
    margin: 2rem;
    background-color:  var(--negro2);
    margin: 0;
    padding: 0;
    padding: 2rem;
    border-bottom-left-radius: 5rem;
    border-bottom-right-radius: 5rem;
    
}

.lista{
    display: block;
    text-align: center;
    text-transform: uppercase;
  }
.lista li{
    padding: 1rem;
}

.logo_contenedor{
  text-align: center;
}

/* BOTON NAV */
#checkbox {
  display: none;
}

.toggle {
  position: relative;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition-duration: .5s;
}

.bars {
  width: 100%;
  height: 4px;
  background-color: rgb(255, 255, 255);
  border-radius: 4px;
}

#bar2 {
  transition-duration: .8s;
}

#bar1,#bar3 {
  width: 70%;
}

#checkbox:checked + .toggle .bars {
  position: absolute;
  transition-duration: .5s;
}

#checkbox:checked + .toggle #bar2 {
  transform: scaleX(0);
  transition-duration: .5s;
}

#checkbox:checked + .toggle #bar1 {
  width: 100%;
  transform: rotate(45deg);
  transition-duration: .5s;
}

#checkbox:checked + .toggle #bar3 {
  width: 100%;
  transform: rotate(-45deg);
  transition-duration: .5s;
}

#checkbox:checked + .toggle {
  transition-duration: .5s;
  transform: rotate(180deg);
}

   
@media (min-width: 768px) {
    #header{
      height: 15rem;
    }
    .redes{
      display: flex;
    }
    #navegacion_principal--movile, #checkbox, .bars, .toggle{
      display: none;
    }

    #navegacion_principal{
      display: block;
    }
    .barra-top{
        display: flex;
        justify-content: space-between;
        align-items: center;
        column-gap: 2rem;
      }

    .lista{
        display: flex;
    }
  }




/* HERO SECTION */

 
.hero{  
  margin-top: 15rem;
  display: grid;
  text-align: center;
  justify-content: center;
  align-items: center;
  border-bottom: 5px solid var(--gris); 
  background-image: url("../img/pexels-ron-lach-8100065.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  zoom: -100;
  background-position: center center;
  height: 55rem;
}

.presentacion{
  padding: 2rem;
 
}


.hero h1{
  margin-bottom: 2rem;
}



@media (min-width: 768px){
  .hero{
    height: 50rem;
  }
  .presentacion h1{
    font-size: 4rem;
  }

}

/* Seccion de videos y content manager */
.contentmanager{
  margin: 4rem 3rem;
  text-align: left;
}
.contentmanager p{
  text-align: center;
}
.content__text{
  text-align: center;
  margin: 8rem 0 3rem 0;
}
.contentmanager .contentmanager__titulo{
  margin-bottom: 2rem;
  text-align: center;
}

.grid-v{
  margin: 3rem;
  display: grid;
  row-gap: 2rem;
}

.contendor-v{
  margin: 3rem;
}
.video{
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.contendor-v .video::poster{
  object-fit: cover;
  width: 100%;
  height: 100%;
}

@media (min-width: 768px){
  .hero{
    height: 60rem;
  }
  .grid-v{
   
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2rem;
  }
  .contendor-v{
    margin: 0;
  }
  .contentmanager .contentmanager__titulo{
    font-size: 4rem;
    margin-top: 10rem;
    margin-bottom: 5rem;
  }
  .contentmanager p{
    margin-bottom: 10rem;
    text-align: center;
  }
}


@media (min-width: 1200px) { 
  .hero{
    height: 80rem;
  }
}

/* WEB */
.front{
  margin: 5rem 3rem;
  text-align: center;
}


.web__titulo{
  margin: 10rem 0 5rem 0;
  text-transform: uppercase;
}

.web__presentacion{
  margin-bottom: 5rem;
}
.tecnologias__contenedor{
  margin: 5rem 0  10rem 0;
}
.tecnologias__titulo{
  margin-bottom: 5rem;
}
.tecnologias__lista{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proyecto img{
  width: 100%;
}

.proyecto{
  width: 100%;
  margin: 5rem 0 3rem 0;
}
.proyecto__desc{
  margin: 2rem 0;
}

.imagen{
  margin-bottom: 2rem;
}
.boton{
  background-color: var(--blanco);
  color: var(--negro2);
  border-radius: 5rem;
  padding: 1rem;
}


.boton:hover{
  background-color: var(--negro);
  color: var(--blanco);
}


@media (min-width: 768px){
  .web__titulo{
    font-size: 4rem;
  }
  .proyectos__contenedor{
    display: 100%;
    margin: 0
  }
  .proyecto .imagen{
    height: 25rem;
  }

  .tecnologias__lista{
    justify-content: space-evenly;
  }
  
}


/* FOOTER */

#footer{
  margin-top: 20rem;
  text-align: center;
}

#footer .logof{
  width: 2rem;
}
.footer__texto{
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--blanco);
}