body {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(78, 5, 100, 0.8));
  background-attachment: fixed; 
  background-repeat: no-repeat;
  background-size: cover;
  margin: 0; 
  min-height: 100vh;
  font-size: 16px;
}

/* Encabezado */
#menu {
  width: 100%;
  max-width: 1200px;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000; 
  box-shadow: 5px 5px 15px rgb(83, 83, 83);
  background-color: #24272c;
  table-layout: fixed;
}

#menu th {
  background-color: #24272c;
  padding: 10px;
}

#menu th a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-family: "Camcode Free";
  font-size: 1.5rem;
  display: block;
}

#menu th:hover {
  background-color: #31ffab;
}

#menu th a:hover {
  color: rgb(0, 0, 0);
}

#menu #inicio a {
  color: #31ffab;
  text-decoration: none;
  font-family: "Camcode Free";
  font-size: 1.5rem;
}

#menu #inicio:hover {
  background-color: #31ffab;
}

#menu #inicio a:hover {
  color: rgb(0, 0, 0);
}

/* Caja 1 */
#caja01 {
  width: 100%;
  max-width: 1200px;
  height: auto;
  box-shadow: 5px 5px 15px rgb(83, 83, 83);
  margin: 70px auto 20px;
  background-image: url("imagenes/code.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  color: rgb(255, 255, 255);
  font-family: 'f2 Tecnocratica';
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

#Nombre {
  font-size: 3rem;
  margin: 20px 0;
}

#Info {
  font-size: 1.5rem;
  margin: 20px 0;
}

/* Sección de información */
#caja02 {
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 0 auto 20px;
  background-color: #24272c;
  box-shadow: 5px 5px 15px rgb(83, 83, 83);
  padding: 20px;
  box-sizing: border-box;
}

#caja02 table {
  width: 100%;
  min-height: 300px;
  border-spacing: 10px;
}

#caja02 table td {
  text-align: center;
  vertical-align: top;
  padding: 10px;
}

#caja02 table th img {
  width: 70%;
  max-width: 200px;
  border-radius: 50%;
  box-shadow: 5px 5px 15px rgb(83, 83, 83);  
  transition: transform 0.3s ease; 
}

#caja02 table th img:hover {
  transform: scale(1.05); 
}

#caja02 h1 {
  font-size: 2.5rem;
  color: #31ffab;
  font-family: "Camcode Free";
  margin: 20px 0;
}

#caja02 h3 {
  font-size: 1.5rem;
  color: white;
  font-family: "Camcode Free";
  margin: 15px 0;
}

#caja02 p {
  font-size: 1rem;
  color: white;
  font-family: 'Roboto';
  text-align: justify;
  line-height: 1.5;
}

button {
  background-color: #31ffab;
  border: none;
  border-radius: 50px;
  width: 180px;
  height: 80px;
  font-size: 1rem;
  font-family: 'Roboto';
  box-shadow: 5px 5px 15px rgb(83, 83, 83);
  cursor: pointer;
  margin: 10px;
  transition: transform 0.3s ease; 
}

button:hover {
  background-color: #167a52;
  color: white;
  transform: scale(1.05); 
}

/* Sección de acerca de mí */
#caja03 {
  width: 100%;
  max-width: 1200px;
  height: auto;
  background-color: #24272c;
  box-shadow: 5px 5px 15px rgb(83, 83, 83);
  margin: 0 auto 20px;
  padding: 20px;
  box-sizing: border-box;
  text-align: center; 
}

#caja03 table {
  width: 100%;
  border-collapse: collapse;
  margin: auto;
  table-layout: fixed;
}

#caja03 td {
  padding: 10px;
  vertical-align: middle;
}

#caja03 .video {
  width: 100%;
}

#caja03 .texto {
  width: 100%;
}

#caja03 .video iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  box-shadow: 5px 5px 15px rgb(83, 83, 83);
  border-radius: 15px;
}

#caja03 h1 {
  font-size: 2.5rem;
  color: #31ffab;
  font-family: "Camcode Free";
  margin: 20px 0;
}

#caja03 p, #caja03 ul {
  font-size: 1rem;
  color: white;
  font-family: 'Roboto';
  text-align: justify;
  line-height: 1.5;
}

#caja03 ul {
  text-align: left;
  padding-left: 20px;
}

#caja03 table td img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 5px 5px 15px rgb(83, 83, 83);
  transition: transform 0.3s ease; 
}

#caja03 table td img:hover {
  transform: scale(1.1); 
}

#caja03 table td h3 {
  font-size: 1.25rem;
  color: #31ffab;
  font-family: "Camcode Free";
  margin: 15px 0;
}

#caja03 table th img {
  width: 95%;
  border-radius: 15px;
  box-shadow: 5px 5px 15px rgb(83, 83, 83);
  transition: transform 0.3s ease; 
}

#caja03 table th img:hover {
  transform: scale(1.05);
}

#caja03 table th h4 {
  font-size: 0.9rem;
  color: #ffffff;
  font-family: "Roboto";
}

#caja03 h3 {
  font-size: 1.5rem;
  color: #31ffab;
  font-family: "Camcode Free";
  margin: 15px 0;
}

#caja03 table th p {
  text-align: center;
}

/* Sección de proyectos y certificaciones */
#caja04 {
  width: 100%;
  max-width: 1200px;
  height: auto;
  background-color: #24272c;
  box-shadow: 5px 5px 15px rgb(83, 83, 83);
  margin: 0 auto 20px;
  padding: 20px;
  box-sizing: border-box;
  text-align: center; 
}

#caja04 table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}

#caja04 table th img {
  width: 85%;
  height: auto;
  border-radius: 15px;
  box-shadow: 5px 5px 15px rgb(83, 83, 83);
  transition: transform 0.3s ease; 
}

#caja04 table th img:hover {
  transform: scale(1.05);
}

#caja04 h1 {
  font-size: 2.5rem;
  color: #31ffab;
  font-family: "Camcode Free";
  margin: 20px 0;
}

#caja04 table h1 {
  font-size: 1.5rem;
}

#caja04 table h3 {
  font-size: 1.25rem;
  color: #31ffab;
  font-family: "Camcode Free";
  margin: 15px 0;
}

#caja04 table p {
  font-size: 1rem;
  color: #ffffff;
  font-family: "Roboto";
  text-align: justify;
  line-height: 1.5;
}

#caja04 table th {
  padding: 10px;
}

hr {
  width: 95%;
  margin: 20px auto;
  border: 1px solid #333;
}

a, h6 {
  color: #31ffab;
  text-decoration: none;
  font-family: "Roboto";
  font-size: 1rem;
}

#caja04 #LyC td {
  vertical-align: top;
  padding: 10px;
}

#caja04 #LyC h2 {
  color: #31ffab;
  font-family: "Camcode Free";
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  font-size: 1.5rem;
  margin: 15px 0;
}

#caja04 #LyC h3 {
  color: #31ffab;
  font-family: 'Caviar Dreams';
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  margin: 15px 0;
}

#caja04 #LyC p {
  text-align: center;
}

#caja04 table td #lenguajes {
  width: 55%;
  max-width: 200px;
  border-radius: 50%;
  box-shadow: 5px 5px 15px rgb(83, 83, 83);
  transition: transform 0.3s ease; 
}

#caja04 table td #lenguajes:hover {
  transform: scale(1.05);
}

/* Media Queries para diseño resposivo*/
@media (max-width: 1200px) {
  #menu th a, #menu #inicio a {
    font-size: 1.3rem;
  }
  
  #Nombre {
    font-size: 2.5rem;
  }
  
  #Info {
    font-size: 1.3rem;
  }
  
  #caja02 h1, #caja03 h1, #caja04 h1 {
    font-size: 2rem;
  }
}

@media (max-width: 992px) {
  #menu {
    position: static;
    transform: none;
    margin: 0 auto;
  }
  
  #caja01 {
    margin-top: 20px;
  }
  
  #menu th {
    display: block;
    width: 100%;
    text-align: center;
  }
  
  #caja02 table, #caja03 table, #caja04 table {
    display: block;
  }
  
  #caja02 table td, #caja03 table td, #caja04 table td, 
  #caja02 table th, #caja03 table th, #caja04 table th {
    display: block;
    width: 100%;
  }
  
  #caja03 .video, #caja03 .texto {
    width: 100%;
  }
  
  button {
    width: 160px;
    height: 70px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  #Nombre {
    font-size: 2rem;
  }
  
  #Info {
    font-size: 1.1rem;
  }
  
  #caja02 h1, #caja03 h1, #caja04 h1 {
    font-size: 1.8rem;
  }
  
  #caja02 h3, #caja03 h3 {
    font-size: 1.3rem;
  }
  
  button {
    width: 140px;
    height: 60px;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  #Nombre {
    font-size: 1.8rem;
  }
  
  #Info {
    font-size: 1rem;
  }
  
  #caja02 h1, #caja03 h1, #caja04 h1 {
    font-size: 1.5rem;
  }
  
  #caja02 h3, #caja03 h3 {
    font-size: 1.1rem;
  }
  
  #caja02 p, #caja03 p, #caja04 p {
    font-size: 0.9rem;
  }
  
  button {
    width: 120px;
    height: 50px;
    font-size: 0.7rem;
  }
}