@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,200;6..12,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300&display=swap');


/* estilos bsicos */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300&display=swap');
body
{
 background-color: #333;
}
*{
    font-family: 'Josefin Sans', sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* estilos header */
#header {
  background-color: #393939;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  height: 50px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

#header .titulo h2 {
  font-family: 'Josefin Sans', sans-serif;
  color: rgb(107, 139, 139);
  transition: color 0.3s ease;
}

#header .titulo h2:hover {
  color: rgb(138, 180, 180);
}

#header ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

#header ul li a {
  text-decoration: none;
  color: rgb(107, 139, 139);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: bold;
  transition: color 0.3s ease;
}

#header ul li a:hover {
  color: rgb(138, 180, 180);
}

#header ul li a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: rgb(138, 180, 180);
  transition: width 0.3s ease;
}

#header ul li a:hover::after {
  width: 100%;
}

#header .mobile-menu-icon {
  display: none;
}

@media screen and (max-width: 800px) {
  #header ul {
    display: none;
    flex-direction: column;
    text-align: center;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background-color: #393939;
  }

  #header ul.show {
    display: flex;
  }

  #header .mobile-menu-icon {
    display: block;
    font-size: 24px;
    color: rgb(107, 139, 139);
    cursor: pointer;
  }

  #header .titulo h2 {
    font-size: 18px;
  }
}

/* banner */
#banner {
  display: flex;
  justify-content: center;
  flex-direction: row-reverse;
  text-align: left;
  align-items: center;
  height: 100vh;
}

.descripcion {
  margin: 0 20px;
  color: rgb(107, 139, 139);
}

#banner h1,
#banner h3 {
  margin-bottom: 10px;
}

#banner img {
  width: 20%;
  border-radius: 10px;
}

@media only screen and (max-width: 768px) {
  #banner {
      flex-direction: column;
      height: auto;
  }

  #banner img {
      width: 40%;
      margin: 20px 0;
      margin-top: 70px;
  }
}

/* about me */
.aboutme {
  background-color: #797777;
  justify-content: center;
  width: 85%;
  padding: 20px;
  text-align: center;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.aboutme h2 {
  color: white;
  margin-bottom: 10px;
}

.aboutme p {
  color: white;
  line-height: 1.6;
}

.aboutme .btn {
  margin-top: 15px;
  background-color: #FCB1A6;
  color: black;
  padding: 15px 24px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.aboutme .btn:hover {
  background-color: #f8bbb1;
}

@media screen and (max-width: 800px) {
  .aboutme {
      margin-top: 40px;
  }

  .aboutme h2 {
      margin-top: 60px;
  }

  .aboutme {
      margin-left: 10%;
  }
}

/* skills */
.carousel-container {
  overflow: hidden;
  width: 30%; /* Ajusta el ancho del contenedor */
  margin: 0 auto;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.carousel-slide {
  display: flex;
  justify-content: center; /* Centra horizontalmente el contenido */
  align-items: center; /* Centra verticalmente el contenido */
  min-width: 100%; /* Cada slide ocupa el 100% del carrusel */
  flex-shrink: 0;
  box-sizing: border-box;
}

.carousel-slide img {
  width: 100px; /* Fija el ancho de los iconos */
  height: auto;
  margin: 0 auto;
}

.skills h2 {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

@media screen and (max-width: 800px) {
  .carousel-container {
    width: 70%; /* Ajusta el ancho en pantallas pequeñas */
  }

  .carousel-slide img {
    width: 60px; /* Ajusta el tamaño de los iconos en pantallas pequeñas */
  }
}

/* proyectos */
body {
  font-family: Arial, sans-serif;
}

#proyectos {
  text-align: center;
  margin: 20px;
}

h2 {
  font-size: 2em;
  color: rgb(107, 139, 139);
  margin: 50px;
}

.proy {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.item {
  margin-bottom: 20px;
  width: 30%;
  text-align: center;
}

img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  background-color: rgb(107, 139, 139);
  padding: 10px;
  border-radius: 5px;
}

.ventana-emergente {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.contenido {
  text-align: center;
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
}

video {
  width: 400px;
}

@media screen and (max-width: 800px) {
  .proy {
    flex-direction: column;
  }

  .item {
    width: 80%;
    margin: 0 auto;
  }
}


/* contacto */
.form {
  width: 600px;
  height: auto;
  display: flex;
  position: relative;
  margin: 0 auto;
  justify-content: center;
  border-radius: 30px;
  background-color: rgb(113, 113, 114);
}

.formulario {
  max-width: 400px;
  margin: 0 auto;
}

.formulario .btn {
  background-color: rgb(0, 0, 0);
}

.form .formulario h2 {
  display: flex;
  justify-content: center;
  color: black;
}

.formulario fieldset {
  border: none;
  margin-bottom: 20px;
}

input,
textarea {
  width: calc(100% - 20px);
  padding: 10px;
  margin-bottom: 15px;
  box-sizing: border-box;
}

textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.form .formulario .btn {
  background-color: #000000;
  color: #fff;
  padding: 10px 25px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  margin: 20px;
}

.form .formulario .btn:hover {
  background-color: #222121;
}

@media screen and (max-width: 800px) {
  .form h2 {
      font-size: 20px;
  }

  .form {
      width: 60%;
      height: auto;
      margin: 0 auto;

  }

  .form .btn {
      position: absolute;
      margin-top: -10px;
  }

  .form .formulario {
      width: calc(100% - 20px);
   
  }

  input,
  textarea {
      width: calc(100% - 20px);
  }
}


/* redes sociales */
.redes ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: fixed;
}

.redes ul li a img {
  width: 30px;
}

.redes {
  position: fixed;
  top: 40%; 
  transform: translateY(-40%); 
  margin-left: 10px;
}

.redes ul li a .x {
  width: 55px;
  margin-left: -12px;
}


/* footer */
.footer {
  margin-top: 70px;
  background-color: #393939;
  color: #fff;
  padding: 20px;
  text-align: center;
}

.footer p {
  margin: 0;
}

.social {
  margin-top: 20px;
}

ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
}

li {
  margin: 0 10px;
}

a {
  text-decoration: none;
  color: #fff;
}

a:hover {
  opacity: 0.8;
}

/* Ajustar los estilos de las imágenes según sea necesario */
.social img {
  width: 30px;
  height: 30px;
}

/* loader */
.containerLoader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
}

.spinner {
  width: 100px;
  height: 100px;
  border: 10px solid rgb(107, 139, 139);
  border-top: 10px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
