/* Fondo con imagen oscurecida */
body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: url("alemaniaaaaaaa.jpg") center/cover no-repeat;
}

/* Capa oscurecida encima del fondo */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  pointer-events: none;
  z-index: 0;
}

/* Contenedor del logo */
.contenedor {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column; /* Para alinear verticalmente */
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Imagen central con zoom lento */
.imagen-animada {
  width: 300px;
  animation: zoom-lento 4s infinite ease-in-out;
  z-index: 2;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
  position: relative;
  margin-bottom: 10px; /* reduce espacio debajo del logo */
}

@keyframes zoom-lento {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Botón debajo del logo */
.boton-ir {
  margin-top: 30px; /* aumenta espacio arriba del botón */
  padding: 12px 24px;
  background-color: #ffffffcc;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: background-color 0.3s, transform 0.3s;
  position: relative;
  z-index: 2;
}

.boton-ir:hover {
  background-color: #ffd700;
  transform: scale(1.05);
}

/* Imagen del avión animado */
.imagen-avion {
  position: fixed;
  width: 80px;
  animation: vuelo-realista 16s linear infinite;
  z-index: 3;
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.5));
}

/* Animación realista: avión volando por las esquinas */
@keyframes vuelo-realista {
  0% {
    top: 0;
    left: 0;
    transform: rotate(90deg); /* Va hacia la derecha */
  }
  25% {
    top: 0;
    left: calc(100vw - 80px);
    transform: rotate(180deg); /* Baja */
  }
  50% {
    top: calc(100vh - 80px);
    left: calc(100vw - 80px);
    transform: rotate(270deg); /* Va hacia la izquierda */
  }
  75% {
    top: calc(100vh - 80px);
    left: 0;
    transform: rotate(0deg); /* Sube */
  }
  100% {
    top: 0;
    left: 0;
    transform: rotate(90deg); /* Vuelve a la derecha */
  }
}
