/* ======= GENERAL ======= */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', Arial, sans-serif;
  background-color: #333939;
  color: #fff;
  overflow-x: hidden;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  position: fixed;
  width: 100%;
  height: 10vh;
  padding: 0 4%;
  z-index: 20;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo img {
  height: 8vh;
  width: auto;
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2vw;
}

nav ul li a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

nav ul li a.btn-header {
  background-color: #8b0808;
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 8px;
}

nav ul li a.btn-header:hover {
  background-color: #000;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero .background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("imagenes/niño-risueño.png");
  background-size: cover;
  background-position: center;
  filter: brightness(0.8);
  animation: moverArribaAbajoZoom 12s ease-in-out infinite alternate;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 5%;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ffd900;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.5;
}

/* MOVIMIENTO FONDO */
@keyframes moverArribaAbajoZoom {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-25px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

.history {
  padding: 5% 2%;
  background-color: #1b1d1f;
  color: #fff;
  text-align: center;
}

.history h2 {
  color: #ffd900;
  margin-bottom: 1rem;
}

.history p {
  max-width: 700px;
  margin: 0 auto 2rem auto;
  line-height: 1.5;
}

.history .logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.history .logos img {
  width: 100px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #ffd900;
  padding: 5px;
  background-color: #2a2d30;
}

/* INFO SECCIONES */
.info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 5% 2%;
  background-color: #222426;
}

.card {
  background-color: #2a2d30;
  padding: 2rem;
  border-radius: 12px;
  max-width: 300px;
  text-align: center;
}

.card h2 {
  color: #ffd900;
  margin-bottom: 1rem;
}

/* EQUIPO */
.team {
  padding: 5% 2%;
  text-align: center;
}

.team h2 {
  margin-bottom: 2rem;
  color: #ffd900;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.member {
  background-color: #2a2d30;
  border-radius: 12px;
  padding: 1rem;
  width: 180px;
  text-align: center;
}

.member img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

/* FOOTER */
footer {
  background-color: #121212;
  color: #fff;
  text-align: center;
  padding: 2vh 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .info {
    flex-direction: column;
    gap: 1rem;
  }
  .team-grid {
    flex-direction: column;
    gap: 1rem;
  }
}
