/* Fuente y estilos generales */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #faf6f1;
  color: #3e2723;
  scroll-behavior: smooth;
}

/* Encabezado */
header {
  background-color: #5d4037;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ==== NAV DE PRÁCTICAS ==== */
.nav-practicas {
  background-color: #f3e9e4; /* fondo claro */
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap; /* si no cabe, baja de línea */
  justify-content: center; /* centrado */
  gap: 15px; /* espacio entre enlaces */
  border-bottom: 2px solid #a47148;
}

.nav-practicas a {
  color: #4b2e19;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  background-color: transparent;
}

.nav-practicas a:hover {
  background-color: #a47148;
  color: #fff;
}
.nav-practicas {
  background-color: #f3e9e4;
  padding: 10px 20px;
  display: flex;
  gap: 15px;
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 2px solid #a47148;
  scrollbar-width: thin;
}




header h1 {
  font-weight: 700;
  font-size: 1.8rem;
  margin: 0;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffd54f;
}

/* Sección hero */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('https://images.unsplash.com/photo-1509042239860-f550ce710b93?auto=format&fit=crop&w=1500&q=80')
    center/cover;
  color: white;
  text-align: center;
  padding: 6rem 2rem;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero button {
  background-color: #ffd54f;
  border: none;
  color: #3e2723;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero button:hover {
  background-color: #ffb300;
  transform: scale(1.05);
}

/* Secciones de contenido */
.contenido {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.contenido h2 {
  font-size: 2rem;
  color: #4e342e;
  margin-bottom: 2rem;
}

/* Menú */
.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.item {
  background-color: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.item h3 {
  color: #6d4c41;
}

/* Footer */
footer {
  background-color: #3e2723;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h2 {
    font-size: 2rem;
  }
}
