
/* ----------- LOADER CON CORTINA ----------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle, #1a1a1a 0%, #000 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  flex-direction: column;
  color: white;
}

.loader-content {
  text-align: center;
  z-index: 2;
}

.perrito {
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.cortina {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, #f5cc91, #ffe9c2);
  z-index: 1;
  transition: transform 1.5s ease-in-out;
}

.cortina.izquierda {
  left: 0;
  border-right: 2px solid #000;
  transform: translateX(0%);
}

.cortina.derecha {
  right: 0;
  border-left: 2px solid #000;
  transform: translateX(0%);
}

.cortina.abierta.izquierda {
  transform: translateX(-100%);
}

.cortina.abierta.derecha {
  transform: translateX(100%);
}

/* ----------- CONTENIDO PRINCIPAL ----------- */
html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  background: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet);
  background-size: 400% 400%;
  animation: arcoiris 20s linear infinite;
  margin: 0;
  padding: 0;
}

@keyframes arcoiris {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#contenido {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 40px 20px;
  min-height: 100vh;
  box-sizing: border-box;
}

.caja-principal {
  background-color: rgba(255, 245, 212, 0.75);
  backdrop-filter: blur(4px);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

/* ----------- BOTONES ----------- */
.botones-iniciales {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.boton {
  padding: 12px 24px;
  font-size: 18px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  z-index: 2;
}

#siBtn {
  background-color: #4CAF50;
  color: white;
}

#noBtn {
  background-color: #f44336;
  color: white;
  transition: top 0.2s, left 0.2s;
}

#noBtn.mover {
  position: absolute;
}

/* ----------- ALERTAS ----------- */
.alerta-css {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffefc1;
  color: #333;
  border: 2px solid #f1c40f;
  padding: 15px;
  border-radius: 10px;
  font-weight: bold;
  animation: aparecer 0.3s ease;
  z-index: 9999;
}

@keyframes aparecer {
  from { opacity: 0; top: 0; }
  to { opacity: 1; top: 10%; }
}

/* ----------- METEORITOS DE PERRITOS ----------- */
#meteoritos {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.meteorito {
  position: absolute;
  width: 50px;
  height: 50px;
  background-image: url('perrito.png');
  background-size: contain;
  background-repeat: no-repeat;
  animation: caer linear infinite;
  opacity: 0.7;
}

@keyframes caer {
  0% {
    top: -60px;
    transform: rotate(0deg);
  }
  100% {
    top: 100%;
    transform: rotate(360deg);
  }
}

/* ----------- CARTEL SOME.COM ----------- */
.somee-wrapper {
  margin-top: 40px;
  font-size: 12px;
  color: #aaa;
  text-align: center;
}

.somee-wrapper a {
  font-size: 12px;
  color: #aaa;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  border-radius: 10px;
  backdrop-filter: blur(3px);
}

/* ----------- RESPONSIVE ----------- */
@media (max-width: 600px) {
  .boton {
    padding: 10px 18px;
    font-size: 16px;
  }

  .caja-principal {
    padding: 20px;
  }
}
