body {
  margin: 0;
  font-family: Arial, sans-serif;
}

header {
  background-color: #333;
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 20px;
}

#menu-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  margin-right: 15px;
  display: block;
}

.container {
  display: flex;
}

.sidebar {
  width: 200px;
  background-color: #444;
  color: white;
  padding: 20px;
  height: 100vh;
  display: none;
}

.sidebar.visible {
  display: block;
  position: absolute;
  top: 60px;
  left: 0;
  z-index: 10;
  background-color: #444;
  width: 200px;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
}

.sidebar ul li {
  margin: 10px 0;
}

.sidebar ul li a {
  color: white;
  text-decoration: none;
}

.sidebar ul li a:hover {
  text-decoration: underline;
}

.content {
  flex-grow: 1;
  padding: 20px;
}

#inicio {
  position: relative;
  background: url('https://i.pinimg.com/originals/cd/59/d6/cd59d626dc86397fe45080e6e9c7027d.gif') no-repeat center center fixed;
  background-size: cover;
  color: white;
  padding: 60px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#inicio::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

#inicio > * {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

/* Sobre mí */
#sobre-mi {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  padding: 50px 30px;
  max-width: 700px;
  margin: 40px auto;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(37, 117, 252, 0.4);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  letter-spacing: 0.5px;
}

#sobre-mi h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#sobre-mi p {
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Proyectos */
.projects-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px auto;
  border-collapse: separate;
  border-spacing: 20px;
  table-layout: fixed;
}

.projects-table td {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 10px;
  text-align: center;
  vertical-align: top;
}

.projects-table img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin-bottom: 10px;
}

.projects-table p {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

/* Evidencias */
.evidencias-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.evidencia {
  background-color: #f3f3f3;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  max-width: 250px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.evidencia img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 3px solid #ccc;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.evidencia p {
  font-size: 1rem;
  color: #333;
}

/* Secciones finales */
#evidencias, #contacto {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    position: absolute;
    top: 60px;
    left: 0;
    width: 200px;
    height: auto;
  }

  .projects-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .projects-table td {
    display: inline-block;
    width: 250px;
    vertical-align: top;
  }

  .evidencias-container {
    flex-direction: column;
    align-items: center;
  }
}
#contacto form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

#contacto input,
#contacto textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
}

#contacto button {
  padding: 10px 20px;
  background-color: #2575fc;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#contacto button:hover {
  background-color: #1a5ed9;
}
