/* ======= RESETEO GENERAL ======= */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  background-color: #333939;
  color: white;
  overflow-x: hidden;
}

/* ======= CABECERA ======= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 10vh;
  padding: 0 4%;
  z-index: 20;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  box-sizing: border-box;
}

/* Logo */
.logo img {
  height: 8vh;
  width: auto;
  border-radius: 10px;
}

/* Navegación */
nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2.2vw; /* Espacio entre palabras */
}

nav ul li a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.3s ease;
  white-space: nowrap; /* Evita que se corte “Registrar” */
}

nav ul li a:hover {
  color: #8b0808;
}

/* Botón rojo */
.btn-header {
  background-color: #8b0808;
  color: white !important;
  padding: 0.6em 1.2em;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-header:hover {
  background-color: #000;
}

/* ======= CONTENEDOR PRINCIPAL ======= */
.container {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

/* ======= FONDO ANIMADO ======= */
.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;
  background-repeat: no-repeat;
  filter: brightness(0.9);
  animation: moverArribaAbajoZoom 12s ease-in-out infinite alternate;
  z-index: 1;
}

/* 🔹 Movimiento y zoom combinados */
@keyframes moverArribaAbajoZoom {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-25px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* ======= CONTENIDO ======= */
.content {
  position: relative;
  z-index: 2;
  padding: 10%;
  margin-top: 12vh;
  max-width: 700px;
}

.content h2 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.highlight {
  color: #ffd900;
  font-weight: 700;
}

.responsive-text {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.btn-main {
  display: inline-block;
  background-color: #8b0808;
  color: #fff;
  padding: 1em 2em;
  text-decoration: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.btn-main:hover {
  background-color: #000;
  transform: scale(1.05);
}

/* ======= PIE DE PÁGINA ======= */
footer {
  background-color: #121212;
  color: #fff;
  text-align: center;
  padding: 2vh 0;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 10;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 1024px) {
  header {
    flex-wrap: wrap;
    height: auto;
    padding: 1em 5%;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
  }

  .content {
    padding: 10% 5%;
  }

  .content h2 {
    font-size: 2rem;
  }

  .btn-main {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .content {
    text-align: center;
    margin: 0 auto;
    padding-top: 20vh;
  }

  .content h2 {
    font-size: 1.8rem;
  }

  .responsive-text {
    font-size: 1rem;
  }

  .btn-main {
    width: 80%;
  }
}

@media (max-width: 480px) {
  .content h2 {
    font-size: 1.6rem;
  }

  .responsive-text {
    font-size: 1rem;
  }

  .btn-main {
    font-size: 1rem;
    padding: 0.8em 1.5em;
  }
}
