:root {
  --azul: #1DDEFD;
  --azul-profundo: #0B6FD6;
  --brillo: #72EEFA;
  --oro: #F68D13;
  --oro-claro: #FDB022;
  --madera: #764D32;
  --cielo: #92CBFB;
  --tinta: #1A1208;
  --noche: #08223F;
  --noche-2: #0D3159;
  --papel: #F4FAFF;
  --texto: #EAF6FF;
  --texto-suave: #B7D3EC;
  --radio: 20px;
  --ancho: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--noche);
  color: var(--texto);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brillo); }
h1, h2, h3 { font-family: "Baloo 2", "Nunito", sans-serif; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

/* Idioma: solo se ve el texto del idioma activo */
html[data-lang="es"] [lang="en"]:not(html),
html[data-lang="en"] [lang="es"]:not(html) { display: none !important; }

.contenedor { width: min(var(--ancho), 100% - 32px); margin-inline: auto; }
.seccion { padding: 88px 0; }
.seccion-clara { background: var(--papel); color: var(--tinta); }
.seccion-clara p { color: #3b4a5a; }
.etiqueta {
  display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--oro-claro); margin-bottom: .6em;
}
.seccion-clara .etiqueta { color: var(--azul-profundo); }

/* Cabecera */
.barra {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  background: rgba(8, 34, 63, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(114, 238, 250, .15);
}
.barra .contenedor { display: flex; align-items: center; gap: 24px; height: 64px; }
.marca { display: flex; align-items: center; gap: 10px; color: var(--texto); text-decoration: none; font-family: "Baloo 2"; font-weight: 800; font-size: 1.3rem; }
.marca img { width: 38px; height: 38px; border-radius: 10px; }
.marca span b { color: var(--azul); }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: var(--texto-suave); text-decoration: none; font-weight: 700; font-size: .95rem; }
.menu a:hover { color: var(--brillo); }
.idioma {
  background: transparent; color: var(--texto); border: 1.5px solid rgba(114, 238, 250, .5);
  border-radius: 999px; padding: 4px 12px; font: 800 .85rem "Nunito"; cursor: pointer;
}
.idioma:hover { background: rgba(114, 238, 250, .12); }

/* Portada */
.portada {
  position: relative; display: grid; place-items: center; text-align: center;
  padding: 100px 0 72px;
  background: radial-gradient(ellipse at 50% 30%, #1a5fa8 0%, var(--noche-2) 45%, var(--noche) 100%);
}
.arte-portada {
  width: 100%; margin: 0 auto 26px; border-radius: var(--radio);
  border: 3px solid rgba(114, 238, 250, .45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 80px rgba(29, 222, 253, .18);
}
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lema {
  font-family: "Baloo 2"; font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.9rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6); margin-bottom: 26px;
}
.botones { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.boton {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px;
  font: 800 1rem "Nunito"; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.boton:hover { transform: translateY(-2px); }
.boton-oro { background: linear-gradient(180deg, var(--oro-claro), var(--oro)); color: var(--tinta); box-shadow: 0 6px 0 #B85F00, 0 10px 24px rgba(246, 141, 19, .35); }
.boton-agua { background: rgba(255, 255, 255, .12); color: var(--texto); border: 2px solid var(--brillo); }
.boton[aria-disabled="true"] { opacity: .85; cursor: default; }
.aviso { margin-top: 18px; font-size: .9rem; color: var(--texto-suave); }

/* Juego */
.dos-columnas { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.marco { border-radius: var(--radio); overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); border: 3px solid rgba(114, 238, 250, .35); }
.rasgos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.rasgo { background: var(--noche-2); border: 1px solid rgba(114, 238, 250, .18); border-radius: var(--radio); padding: 24px; }
.rasgo .icono { font-size: 1.8rem; line-height: 1; margin-bottom: 10px; color: var(--oro-claro); font-family: "Baloo 2"; font-weight: 800; }
.rasgo p { color: var(--texto-suave); margin: 0; }

/* Personajes */
.personajes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.personaje { background: #fff; border-radius: var(--radio); overflow: hidden; box-shadow: 0 10px 30px rgba(11, 111, 214, .14); transition: transform .2s ease; }
.personaje:hover { transform: translateY(-6px) rotate(-1deg); }
.personaje img { width: 100%; aspect-ratio: 1189 / 1323; object-fit: cover; background: #e9edf1; }
.personaje div { padding: 14px 18px 18px; }
.personaje h3 { margin: 0 0 4px; color: var(--azul-profundo); }
.personaje p { margin: 0; font-size: .95rem; }

/* Guardianes */
.guardianes { background: radial-gradient(circle at 30% 50%, #5a1a05 0%, #2a0c06 45%, var(--noche) 100%); }
.elementos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.elementos span { padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: .9rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); }

/* Dropverse */
.juegos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px; }
.juego { background: #fff; border-radius: var(--radio); overflow: hidden; box-shadow: 0 10px 30px rgba(11, 111, 214, .14); display: flex; flex-direction: column; }
.juego .portada-juego { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--azul-profundo), var(--azul)); display: grid; place-items: center; }
.juego .portada-juego img { width: 100%; height: 100%; object-fit: cover; }
.juego .portada-logo { background: radial-gradient(circle, #9fd6ff 0%, #2f86d8 100%); }
.juego .portada-logo img { width: 80%; height: auto; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,.35)); }
.juego .portada-juego strong { font-family: "Baloo 2"; font-size: 2.6rem; color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, .2); }
.juego > div:last-child { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.juego h3 { color: var(--tinta); }
.juego .estado { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--azul-profundo); margin-bottom: 6px; }
.juego a.boton { align-self: flex-start; margin-top: auto; }

/* Comunidad */
.comunidad { text-align: center; }
.comunidad .mascota { width: 120px; margin: 0 auto 18px; border-radius: 28px; box-shadow: 0 0 0 4px var(--azul), 0 16px 40px rgba(29, 222, 253, .3); }
.redes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 26px 0; }
.redes a { padding: 10px 18px; border-radius: 999px; background: var(--noche-2); border: 1px solid rgba(114, 238, 250, .3); color: var(--texto); text-decoration: none; font-weight: 800; }
.redes a:hover { border-color: var(--brillo); color: var(--brillo); }

/* Pie */
.pie { padding: 36px 0; border-top: 1px solid rgba(114, 238, 250, .15); color: var(--texto-suave); font-size: .9rem; }
.pie .contenedor { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.pie a { color: var(--texto-suave); }

/* Páginas de texto (privacidad) */
.texto-legal { padding: 120px 0 80px; }
.texto-legal .contenedor { max-width: 760px; }
.texto-legal h2 { font-size: 1.5rem; margin-top: 1.6em; }

@media (max-width: 900px) {
  .dos-columnas { grid-template-columns: 1fr; }
  .rasgos { grid-template-columns: 1fr; }
  .personajes { grid-template-columns: repeat(2, 1fr); }
  .juegos { grid-template-columns: 1fr; }
  .menu { display: none; }
  .idioma { margin-left: auto; }
}
@media (max-width: 480px) {
  .seccion { padding: 64px 0; }
  .personajes { gap: 12px; }
  .personaje div { padding: 10px 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton, .personaje { transition: none; }
}

.guardian-arte img { filter: drop-shadow(0 0 40px rgba(246, 141, 19, .45)); }
