.zona-bienvenida {
  display: flex;
  height: calc(100vh - 100px);
  overflow: hidden;
  position: relative;
}

.contenedor-figuras {
  position: relative;
  width: 50%;
  height: 100%;
  overflow: hidden;
}


.figura img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: flotar 3s ease-in-out infinite;
}

.galeria-imagenes {
  width: 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.galeria-imagenes img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  position: absolute;
  object-fit: cover;
  border-radius: 25px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1s ease, transform 1s ease;
}

.galeria-imagenes img.activo {
  opacity: 1;
  transform: scale(1);
}

.titulo-bienvenida {
  font-size: 28px;
  font-weight: bold;
  color: #165283;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.gif-ardilla {
  height: 80px;
}

@keyframes flotar {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

footer {
  background-color: #0b4c6a;
  color: #fff;
  text-align: center;
  padding: 15px 10px;
  font-size: 0.9rem;
  width: 100%;
  flex-shrink: 0;
}

.contenedor-bienvenida-animado {
  background: linear-gradient(135deg, #f7ffd4, #d0f8ff, #fff8d6);
  border: 4px dashed #379ad6;
  border-radius: 25px;
  padding: 10px;
  margin: 20px auto;
  max-width: 600px;
  animation: brillo 4s infinite alternate;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

@keyframes brillo {
  0% {
    box-shadow: 0 0 10px #f6ea8c, 0 0 20px #d0f8ff;
  }
  100% {
    box-shadow: 0 0 25px #ffd966, 0 0 35px #7ddfff;
  }
}

/* Animación del texto flotante */
.animar-titulo {
  animation: moverTitulo 3s ease-in-out infinite;
}

@keyframes moverTitulo {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}


.contenedor-idioma-niños {
  position: absolute;
  top: 270px;
  right: 220px;
  z-index: 999;
  border-radius: 15px;
  padding: 10px 15px;

}

.label-idioma {
  font-size: 16px;
  font-weight: bold;
  color: #4c4c4c;
  margin-right: 10px;
}

.select-idioma {
  background-color: #fdf6e3;
  border: 2px solid #ffd166;
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 15px;
  font-weight: bold;
  color: #1d3557;
  margin-right: 10px;
  cursor: pointer;
}

.select-idioma option {
  font-size: 14px;
}

.btn-idioma {
  background-color: #06d6a0;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 6px 15px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-idioma:hover {
  background-color: #118ab2;
  transform: scale(1.05);
}

.contenedor-boton-aprender {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
  z-index: 999;
  position: relative;
}

.btn-aprender {
  background-color: #ffcb05;
  color: #2d2d2d;
  padding: 15px 30px;
  border: none;
  border-radius: 20px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  font-family: 'Comic Sans MS', cursive;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-aprender:hover {
  background-color: #ffa500;
  transform: scale(1.05);
}

.galeria-imagenes img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  position: absolute;
  object-fit: cover;
  border-radius: 25px;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1s ease, transform 1s ease;
  animation: bordeArcoiris 6s linear infinite;
  border: 6px solid #ff0000;
  z-index: 1;
}

@keyframes bordeArcoiris {
  0%   { border-color: #ff0000; }
  14%  { border-color: #ff7f00; }
  28%  { border-color: #ffff00; }
  42%  { border-color: #00ff00; }
  57%  { border-color: #0000ff; }
  71%  { border-color: #4b0082; }
  85%  { border-color: #8f00ff; }
  100% { border-color: #ff0000; }
}


.burbujas-contenedor {
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 80px); 
  pointer-events: none;
  overflow: hidden;
  z-index: 1; 
}

.burbuja {
  position: absolute;
  bottom: 0;
  width: 20px;
  height: 20px;
  background: rgba(135, 206, 250, 0.6); 
  border-radius: 50%;
  animation: subirBurbuja 6s linear infinite;
  opacity: 0.7;
}

@keyframes subirBurbuja {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100vh) scale(1.5);
    opacity: 0;
  }
}

.globos-medios {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
  margin-bottom: 40px;
  position: relative;
  z-index: 3;
}

.globo-medio {
  width: 200px;
  height: auto;
  animation: flotarMedio 4s ease-in-out infinite;
}

@keyframes flotarMedio {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@media (max-width: 768px) {
  .globo-medio {
    display: none;
  }
}


.escena-naturaleza {
  position: relative;
  width: 50%;
  height: 100%;
  padding: 30px 20px 0 40px;
  margin-left: 10px;
  margin-right: 50PX;
  box-sizing: border-box;
}

.figura.pajaro {
  position: absolute;
  top: 20px;
  left: 140px;
  width: 180px;
  z-index: 2;
}

.figura.conejo {
  position: absolute;
  bottom: 80px;
  left: 0px; 
  width: 500px;
  z-index: 2;
}

.figura.arbol {
  position: absolute;
  bottom: 100px;
  right: 260px; 
  width: 320px;
  z-index: 1;
}

.figura.arbol2 {
  position: absolute;
  bottom: 100px;
  right: 0px; 
  width: 320px;
  z-index: 1;
}

.figura.sendero {
  position: absolute;
  bottom: 95px;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 0;
}

