* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Bodoni Moda", serif;
  list-style: none;
  text-decoration: none;
  color: white;
}

body {
  background-color: black;
}

header {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 3%;
  background-color: transparent;
}

.logo {
  font-size: 30px;
  font-weight: 800;
}

.navegacion {
  display: flex;
}

.navegacion a {
  margin-left: 60px;
  font-size: 20px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.5s ease;
}

.navegacion a:hover {
  border-bottom: 2px solid white;
}

#menu-icono {
  display: none;
  font-size: 35px;
  color: wheat;
  z-index: 103;
  cursor: pointer;
}

.hero {
  height: 100%;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(245.59deg, #31494e 0%, #385e70 25%, #131313 75%);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

section {
  padding: 0 8%;
}

.hero-text h1 {
  font-family: "Bodoni Moda", serif;
  font-size: 50px;
  line-height: 1;
  margin: 0 0 30px;
}

.hero-text h5 {
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 25px;
}

.hero-text h4 {
  font-size: 24px;
  font-weight: 600;
  margin-top: 10px;
}

.hero-text p {
  font-size: 20px;
  line-height: 1.9;
  margin-bottom: 40px;
}

.hero-img img {
  width: 400px;
  margin: 10% 0 0 10%;
  height: auto;
  transition: all 0.5s ease;
}

.hero-img img:hover {
  width: 450px;
  opacity: 0.6;
}

.iconos {
  position: absolute;
  top: 50vh;
  padding: 0 3%;
  transform: translateY(-50%);
}



.iconos i {
  display: block;
  margin: 26px 0;
  font-size: 24px;
  transition: all 0.5s ease;
}

.iconos i:hover {
  color: #31494e;
  transform: translateY(-5px);
}






.portafolio {
  padding: 100px 10%;
  background-color: #1b1b1b;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: auto;
}

.portafolio h2 {
  font-size: 2.8rem;
  margin-bottom: 60px;
  color: #fff;
  font-family: 'Lato', sans-serif;
}

.contenedor-proyectos {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 40px;
  width: 100%;
  max-width: 1400px;
  justify-items: center;
  margin: 0 auto;
}

.proyecto {
  background: #2c2c2c;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  height: 420px;
}

.proyecto img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.info {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.info h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 10px;
}

.info p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.info a {
  display: inline-block;
  padding: 12px 24px;
  background-color: #007bff;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.info a:hover {
  background-color: #0056b3;
}











.scroll-down {
  position: absolute;
  bottom: 6%;
  right: 3%;
}

.scroll-down i {
  display: block;
  padding: 12px;
  font-size: 25px;
  background-color: #21383d;
  border-radius: 30px;
  transition: all 0.5s ease;
}

.scroll-down i:hover {
  transform: translateY(-5px);
}









.linkedin {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 5%;
  background: linear-gradient(135deg, #0077b5, #00a0dc);
  color: white;
  text-align: center;
}

.linkedin h2 {
  font-size: 2.5rem;
  background-color: rgba(58, 143, 158, 0.9);
  color: #ffffff;
  padding: 15px 40px;
  border-radius: 30px;
  margin-bottom: 40px;
}

.linkedin p {
  font-size: 1.2rem;
  background-color: white;
  color: #0077b5;
  padding: 30px 40px;
  border-radius: 30px;
  font-weight: bold;
  max-width: 700px;
  margin-bottom: 50px;
}

.linkedin-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  gap: 10px;
  background-color: white;
  color: #0077b5;
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.linkedin-btn a:hover {
  background-color: #0077b5;
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.linkedin-btn i {
  font-size: 1.5rem;
}

























@media (max-width: 992px) {
  section {
    padding: 0 3%;
  }

  .hero-img {
    text-align: center;
  }

  .hero-img img {
    width: 80%;
  }

  .iconos, .scroll-down {
    display: none;
  }
}

@media (max-width: 768px) {
  .menu-action {
    display: block;
  }

  #menu-icono {
    display: block;
  }

  .hero-text {
    text-align: center;
    padding-top: 100px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .navegacion {
    position: absolute;
    top: 100%;
    right: -100%;
    width: 200px;
    height: 180px;
    background-color: #021719ef;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    transition: all 0.5s ease-out;
  }

  .navegacion a {
    margin: 7px 0;
  }

  .navegacion.open {
    right: 0;
  }
}

.sobremi {
  min-height: 100vh; 
  padding: 100px 10%;
 background: linear-gradient(245.59deg, #000000 0%, #220c0c 25%, #690d0d 75%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
}

.contenido-sobremi {
  max-width: 800px;
  text-align: center;
}

.sobremi h2 {
  margin-bottom: 20px;
}

.sobremi p {
  font-size: 1.2rem;
  line-height: 1.6;
}




.contacto{
min-height: 100vh;
padding: 100px 10%;
background: linear-gradient(245.59deg, #31494e 0%, #385e70 25%, #131313 75%);
display: flex;
flex-direction: column;

}


#cuadro-contacto {

text-align: center;
 background: linear-gradient(245.59deg, #328596 0%, #1d82b1 25%, #424040 75%);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}


@media (max-width: 992px) {
  .contenedor-proyectos {
    grid-template-columns: repeat(2, 1fr); 
  }

  .proyecto {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .contenedor-proyectos {
    grid-template-columns: 1fr;
  }

  .proyecto {
    max-width: 100%;
    height: auto;
  }
}


@media (max-width: 768px) {
  .linkedin {
    flex-direction: column;
    text-align: center;
  }

  .linkedin-img img {
    margin-top: 20px;
    width: 120px;
  }

  .linkedin h2 {
    font-size: 1.5rem;
  }

  .linkedin p {
    font-size: 1rem;
  }
}