:root {
  --main-color: #ff3c3c;
  --alt-color: #4ec1a3;
  --bg-color: #fff2ed;
  --text-color: #222;
  --button-radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #121212;
    --text-color: #f0f0f0;
    --main-color: #ff5c5c;
    --alt-color: #55cdb2;
  }
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
  position: relative;
  height: 100vh;
  box-sizing: border-box; /* asegura que padding se incluya en el height */
  padding: 20px 20px;
  overflow-y: hidden; /* evita el scroll */
}

.color-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('../img/FONDO.jpg') no-repeat center center / cover;
  z-index: -1;
  opacity: 1;
  filter: brightness(0.6); /* oscurece un poco para contraste */
}

.logo {
  margin-top: 20px;
  width: 180px; /* o el tamaño que desees */
  height: 180px;
  margin-bottom: 20px;
  animation: zoomIn 1s ease;
  border-radius: 50%; /* círculo perfecto */
  object-fit: cover; /* asegura que no se deforme */
  border: 4px solid white; /* opcional: borde blanco */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* sombra suave */
}

.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}

.link-button {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15); /* fondo translúcido blanco */
  backdrop-filter: blur(8px); /* efecto glassmorphism */
  -webkit-backdrop-filter: blur(8px);
  color: white;
  padding: 10px 14px;
  text-align: center;
  border-radius: var(--button-radius);
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, background-color 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInLink 0.8s forwards;
  animation-delay: calc(var(--i) * 0.2s);
  border: 1px solid rgba(255, 255, 255, 0.926);
}

.link-button:hover {
  transform: scale(1.05);
  background: #142f21;
  border: 1px solid #002f00; /* verde oscuro */
}
footer {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #ffffff;
  animation: fadeInUp 2s ease;
  text-align: center;
  padding: 5px;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes rainbow {  
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

@keyframes fadeInLink {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 480px) {
  .link-button {
    font-size: 0.95rem;
    padding: 10px;
  }
  h1 {
    font-size: 1.5rem;
  }
   .logo {
    max-width: 100%;
    height: auto;
  }
}