* {
  font-family: 'Ubuntu', sans-serif;
}

body {
  margin: 0;
  background-color: #f9f9f9;
}

/* Título de proyectos */
.proyectos {
  padding: 3rem 2rem 1rem 2rem;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.proyectos h2 {
  font-size: 2.5rem;
  color: #f99e61;
  margin-bottom: 2rem;
}

/* Grid para proyectos */
.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem; /* espacio para la barra */
}

/* Tarjetas proyecto */
.proyecto {
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.proyecto:hover {
  transform: translateY(-10px);
}

.proyecto img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.proyecto h3 {
  margin: 1rem 0;
  font-size: 1.2rem;
  color: #333;
  text-align: center;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Barra de navegación inferior */
.navbar {
  background: #f99e61;
  border-radius: 40px;
  box-shadow: 0 4px 12px #cf8250;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  max-width: 500px;
  margin: 0 auto 3rem auto; /* centrado horizontal, espacio abajo */
  position: relative;
  z-index: 1;
}

.navbar a {
  background-color: white;
  color: #f99e61;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 10px #805132;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.navbar a:hover {
  background-color: #57ace4;
  color: white;
  transform: scale(1.05);
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  color: #8e8e93;
  background-color: #fff;
  margin-top: 2rem;
  font-weight: 300;
}

/* Responsive */
@media (max-width: 768px) {
  .proyectos-grid {
    grid-template-columns: 1fr;
  }
  .navbar {
    max-width: 100%;
    border-radius: 0;
    margin-bottom: 1rem;
  }
}
