/* Fondo didáctico y llamativo para toda la página */
body {
  background: linear-gradient(135deg, #fff7e6 0%, #ffe0ec 100%);
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Figuras decorativas en el fondo */
.background-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(2px);
}

.shape1 {
  width: 340px;
  height: 340px;
  background: #ff6600;
  top: -80px;
  left: -80px;
}

.shape2 {
  width: 220px;
  height: 220px;
  background: #005baa;
  bottom: 40px;
  right: -60px;
}

.shape3 {
  width: 120px;
  height: 120px;
  background: #ffb347;
  top: 70%;
  left: 10%;
}

.shape4 {
  width: 90px;
  height: 90px;
  background: #00bcd4;
  bottom: 18%;
  right: 18%;
}

.shape5 {
  width: 60px;
  height: 60px;
  background: #ff6600;
  top: 30%;
  right: 12%;
}

/* Formas adicionales para un fondo más didáctico y llamativo */
.shape6 {
  width: 180px;
  height: 180px;
  background: #ffe066;
  top: 60px;
  right: 18%;
  opacity: 0.15;
  border-radius: 40% 60% 60% 40%/60% 40% 60% 40%;
}

.shape7 {
  width: 90px;
  height: 90px;
  background: #ff6600;
  bottom: 10%;
  left: 8%;
  opacity: 0.13;
  border-radius: 50% 50% 40% 60%/60% 40% 50% 50%;
}

.shape8 {
  width: 70px;
  height: 70px;
  background: #00bcd4;
  top: 15%;
  right: 6%;
  opacity: 0.16;
  border-radius: 60% 40% 50% 50%/50% 60% 40% 50%;
}

.shape9 {
  width: 120px;
  height: 120px;
  background: #005baa;
  bottom: 30%;
  left: 60px;
  opacity: 0.12;
  border-radius: 50% 60% 40% 50%/60% 50% 50% 40%;
}

.shape10 {
  width: 60px;
  height: 60px;
  background: #ffb347;
  top: 45%;
  left: 80%;
  opacity: 0.14;
  border-radius: 50% 50% 60% 40%/40% 60% 50% 50%;
}

/* Animación de aparición suave para las formas */
.fade-shape {
  opacity: 0;
  animation: fadeInShape 1.5s ease forwards;
}

.shape1 { animation-delay: 0.1s; }
.shape2 { animation-delay: 0.3s; }
.shape3 { animation-delay: 0.5s; }
.shape4 { animation-delay: 0.7s; }
.shape5 { animation-delay: 0.9s; }
.shape6 { animation-delay: 1.1s; }
.shape7 { animation-delay: 1.3s; }
.shape8 { animation-delay: 1.5s; }
.shape9 { animation-delay: 1.7s; }
.shape10 { animation-delay: 1.9s; }

@keyframes fadeInShape {
  from { opacity: 0; transform: scale(0.7);}
  to   { opacity: 0.18; transform: scale(1);}
}

.white-container {
  flex: 3.5;
  background-color: white;
  text-align: center;
  padding: 10vh 10vw;
}

.locked::before {
  content: url('./imagen/candado.png');
}

.orange-container {
  flex: 5;
  background-color: #E74424;
  text-align: center;
  padding: 10vh 10vw;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.button-container {
  margin-top: 5vh;
  text-align: center;
}
.button-container button {
  margin-bottom: 15px;
  display: block;
  cursor: pointer;
  padding: 2.5vw 17vw;
  border: none;
  border-radius: 50px;
  transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  font-family: "Inter", sans-serif;
  font-weight: bold;
  font-style: normal;
  animation: vibrarLogo 1.0s infinite alternate;
  color: #1D4989;
  font-size: 2.2vw;
}

.button-container button:hover {
  transform: scale(1.1);
  background-color: #0056b3;
  color: #ffffff;
}

/* estilo.css */
.blocked {
  opacity: 0.5;
  pointer-events: none; /* Evita que los botones bloqueados sean clicables */
}

.flecha-img {
  width: 100px;
  height: 100px;
  margin-top: 5px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.flecha-img:hover {
  transform: scale(1.1);
}

h1 {
  font-family: "Inter", sans-serif;
  font-weight: bold;
  font-style: normal;
  color: #1D4989;
  font-size: 8.2vw;
  line-height: 1.2;
  margin-top: 8%;
}

.orange-container svg {
  width: 50px;
  height: 50px;
}

.orange-container svg path:first-child {
  fill: #0059ff;
}

.orange-container svg path:last-child {
  fill: #fff;
}


@keyframes aparecer {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {

  animation: aparecer 1s ease forwards;
  animation: vibrarLogo 0.5s infinite alternate;
}

.white-container,
.orange-container {
  border: 5px solid transparent;
  animation: bordeAnimado 2s ease infinite;
}

.logo-img {

  margin-top: 50px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  animation: vibrarLogo 1.0s infinite alternate;
}

.logo-img:hover {
  transform: scale(1.1);
}

@keyframes vibrarLogo {
  0% {
    transform: translateY(-3px);
  }

  100% {
    transform: translateY(3px);
  }
}

.locked {
  background-color: #ddd;
  pointer-events: none;
}

.unlocked {
  color: white;
}

@media (min-width: 820px) {
  body {
    flex-direction: row;
  }

  .button-container button {
    padding: 1.3vw 10vw;

  }

  .button-container button {
    margin-bottom: 15px;
    display: block;
    cursor: pointer;
    padding: 1.1vw 10vw;
    border: none;
    border-radius: 50px;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    font-family: "Inter", sans-serif;
    font-weight: bold;
    font-style: normal;
    color: #1D4989;
    font-size: 1.3vw;

  }
  
  h1 {
    font-family: "Inter", sans-serif;
    font-weight: bold;
    font-style: normal;
    color: #1D4989;
    font-size: 4.2vw;
    line-height: 1.2;
    margin-top: 8%;
  }

}

.white-container,
.orange-container {
  border: 5px solid transparent;
  animation: aparecer 3s;
}

.intro-animation {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeOutIntro 1s 2.5s forwards;
}

.intro-logo {
  width: 480px;           /* Aumenta el tamaño de la imagen */
  max-width: 95vw;        /* Permite que sea más grande en pantallas pequeñas */
  margin-bottom: 40px;
  opacity: 0;
  animation: logoFadeIn 1s 0.3s forwards;
}

.intro-text {
  font-family: 'Inter', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: #ff6600;
  letter-spacing: 2px;
  text-align: center;
  opacity: 0;
  animation: textFadeIn 1s 1s forwards;
  margin: 0;
  padding: 0 20px;
}

@keyframes logoFadeIn {
  to { opacity: 1; transform: scale(1.08);}
}
@keyframes textFadeIn {
  to { opacity: 1; }
}
@keyframes fadeOutIntro {
  to { opacity: 0; visibility: hidden; }
}

.fade-out {
  animation: fadeOutPage 0.8s forwards;
}

@keyframes fadeOutPage {
  to {
    opacity: 0;
    filter: blur(4px);
  }
}