@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Exo+2:wght@400;600;700&display=swap');


body {
  color: #1a3a4a;
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  background: url(https://file.garden/aIFVREzy8maKDZSl/fih.gif);
  background-size: cover;
  background-attachment: fixed;
  cursor: url("https://file.garden/aIFVREzy8maKDZSl/wii-pointer-ccw.cur"), auto;
  padding-top: 60px;
  line-height: 1.7;
  margin: 0;
}

a {
  color: #1a7fc1;
}

a:visited {
  color: #5a9fd4;
}

a:hover, button:hover {
  cursor: url("https://file.garden/aIFVREzy8maKDZSl/wii-pointer-red-ccw.cur"), pointer;
}

b {
  color: #0d5c8a;
}

h1 {
  color: #0d5c8a;
  font-family: "Exo 2", sans-serif;
  letter-spacing: 1px;
  font-size: 1.8rem;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}


::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track {
  background: rgba(200, 230, 255, 0.5);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7ac8f0, #4a9fd4);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.6);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5ab5e8, #2a85c0);
}


.topnav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg,
    rgba(210, 235, 255, 0.97) 0%,
    rgba(160, 210, 245, 0.95) 100%
  );
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 2rem;
  box-sizing: border-box;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 4px 16px rgba(80, 160, 220, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

#sitename {
  margin-right: auto;
  font-family: "Exo 2", sans-serif;
  font-size: 1.1rem;
  color: #0d5c8a;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.9);
}

.topnav a {
  color: #1a7fc1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(180deg,
    rgba(255,255,255,0.55) 0%,
    rgba(190,225,255,0.35) 100%
  );
  transition: all 0.2s;
  font-family: "Exo 2", sans-serif;
  box-shadow: 0 1px 3px rgba(80,160,220,0.15), inset 0 1px 0 rgba(255,255,255,0.7);
}

.topnav a:hover {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.8) 0%,
    rgba(190,225,255,0.6) 100%
  );
  box-shadow: 0 2px 8px rgba(80,160,220,0.3), inset 0 1px 0 rgba(255,255,255,0.9);
}


.estrella {
  position: absolute;
  pointer-events: none;
  font-size: 1rem;
  color: #4db8ff;
  z-index: 9999;
  animation: desvanecer 0.4s ease-out forwards;
  transform: translate(-50%, -50%);
  text-shadow: 0 0 6px rgba(77, 184, 255, 0.8);
}

@keyframes desvanecer {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -120%) scale(0.4); }
}


.juegos-seccion {
  max-width: 700px;
  margin: 2.5rem auto;
  background: linear-gradient(160deg,
    rgba(255,255,255,0.75) 0%,
    rgba(210,235,255,0.65) 100%
  );
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow:
    0 8px 32px rgba(80,160,220,0.2),
    0 2px 8px rgba(80,160,220,0.1),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.juegos-titulo {
  font-family: "Exo 2", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg,
    rgba(100,180,240,0.9) 0%,
    rgba(40,120,195,0.9) 100%
  );
  padding: 0.6rem 1rem;
  border-radius: 10px;
  margin: -1.5rem -1.5rem 1.2rem -1.5rem;
  text-shadow: 0 1px 2px rgba(0,80,160,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}

.juegos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.juego-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.juego-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 4px 12px rgba(80,160,220,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.juego-item img:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(80,160,220,0.4);
}

.juego-nombre {
  font-family: "Exo 2", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0d5c8a;
}


.galeria-lateral {
  width: 100%;
  overflow: hidden;
  margin: 2rem 0;
  padding: 1rem 0;
  background: linear-gradient(90deg,
    rgba(168,216,234,0) 0%,
    rgba(168,216,234,0.6) 10%,
    rgba(168,216,234,0.6) 90%,
    rgba(168,216,234,0) 100%
  );
}

.galeria-track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  animation: scroll-galeria 35s linear infinite;
}

.galeria-lateral:hover .galeria-track {
  animation-play-state: paused;
}

@keyframes scroll-galeria {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.galeria-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.galeria-item img {
  width: 100px;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow:
    0 4px 16px rgba(80,160,220,0.3),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform 0.2s, box-shadow 0.2s;
}

.galeria-item img:hover {
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 10px 24px rgba(80,160,220,0.45);
}

.nombre-personaje {
  font-family: "Exo 2", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0d5c8a;
  text-align: center;
  max-width: 100px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}


.buttondiv {
  display: flex;
  align-items: center;
}

#button {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.8) 0%,
    rgba(190,225,255,0.6) 100%
  );
  border: 1.5px solid rgba(255,255,255,0.9);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #0d5c8a;
  box-shadow: 0 2px 8px rgba(80,160,220,0.25), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: all 0.2s;
  flex-shrink: 0;
}

#button:hover {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.95) 0%,
    rgba(210,238,255,0.85) 100%
  );
  box-shadow: 0 4px 12px rgba(80,160,220,0.35);
}

footer {
  text-align: center;
  font-size: 1rem;
  color: rgba(26, 58, 74, 0.7);
}

.footer-separador {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  color: rgba(26, 100, 160, 0.8);
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.footer-separador::before,
.footer-separador::after {
  content: '';
  width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(80,160,220,0.6), transparent);
}