/* Estilos base existentes (preservados) */
body {
  font-family: 'Fira Sans', sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  animation: cambiarFondo 20s infinite ease-in-out;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@keyframes cambiarFondo {
  0%   { background-image: url('background1.jpg'); }
  25%  { background-image: url('background2.jpg'); }
  50%  { background-image: url('background3.jpg'); }
  75%  { background-image: url('background4.jpg'); }
  100% { background-image: url('background1.jpg'); }
}

/* Fondo semitransparente para legibilidad */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(255,255,255,0.8);
  z-index: -1;
}

header {
  background: linear-gradient(to bottom, rgba(125,55,141,1), rgba(125,55,141,0.6), rgba(125,55,141,0));
  padding: 20px;
  color: white;
  text-align: center;
  position: relative;
  z-index: 1;
}

.logo {
  width: 500px;
  height: auto;
  margin-bottom: 10px;
}

header h1 {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.container {
  max-width: 500px;
  margin: 30px auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.mensaje-bienvenida {
  font-size: 16px;
  margin-bottom: 10px;
  text-align: center;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.social-icons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.icon {
  font-size: 28px;
  color: black;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.icon:hover {
  transform: scale(1.2);
}

footer {
  position: relative;
  z-index: 1;
  background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0.6), rgba(255,255,255,0));
  padding: 30px 20px 20px 20px;
  text-align: center;
  font-size: 14px;
  color: #333;
  margin-top: 40px;
}

@media (max-width: 600px) {
  .container { width: 92%; padding: 20px; }
  .logo { width: 90%; max-width: 300px; }
}

#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  border: 6px solid #ddd;
  border-top: 6px solid #7d378d;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
