/* NoStar — landing styles
   Visual language tomado del juego (Pages/Game/AcercaDe.js + StartScreen.js):
   - Fondo: assets/fondo.jpg con veladura rgba(8,12,28,0.55)
   - Botón principal dorado #FFD600 con sombra/glow + borde blanco
   - Botón secundario translúcido (rgba(255,255,255,0.08) + borde blanco 0.45)
   - Tipografía blanca, títulos con letter-spacing alto, dorado para acentos
*/

:root {
  --amarillo: #FFD600;
  --azul-oscuro: #16203a;
  --texto: #e6e8f0;
  --veladura: rgba(8, 12, 28, 0.55);
  --borde-suave: rgba(255, 255, 255, 0.45);
  --fondo-tarjeta: rgba(255, 255, 255, 0.08);
  --borde-tarjeta: rgba(255, 255, 255, 0.18);
  --fondo-card: rgba(10, 16, 34, 0.72);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body {
  background:
    radial-gradient(
      ellipse at 50% 30%,
      #0e3e58 0%,
      #0b3149 30%,
      #082539 55%,
      #05182a 80%,
      #020b15 100%
    );
  background-attachment: fixed;
  position: relative;
}

/* Textura sutil tipo papel/scratches (SVG inline) por encima del gradiente */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 320px 320px;
  mix-blend-mode: overlay;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

/* Viñeta extra en los bordes para reforzar la sensación de fotografía */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer, section {
  position: relative;
  z-index: 1;
}

a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

a:hover {
  text-decoration-color: var(--amarillo);
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 48px;
  text-align: center;
}

.hero .logo {
  width: min(320px, 70vw);
  height: auto;
  margin-bottom: 28px;
  animation: pulse 2.8s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.45));
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.hero .lema {
  font-size: clamp(18px, 2.4vw, 22px);
  letter-spacing: 1.5px;
  color: #fff;
  max-width: 640px;
  margin: 0 0 36px;
}

.botones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  padding: 14px 32px;
  border-radius: 14px;
  border: 2px solid var(--borde-suave);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  background: var(--fondo-tarjeta);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.2s ease;
}

.boton:hover { opacity: 0.9; }
.boton:active { transform: scale(0.97); }

.boton.primario {
  background: var(--amarillo);
  border-color: #fff;
  color: var(--azul-oscuro);
  box-shadow: 0 0 24px rgba(255, 214, 0, 0.45);
}

.boton.primario:hover {
  box-shadow: 0 0 32px rgba(255, 214, 0, 0.7);
  opacity: 1;
}

.tiendas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.enlace-discreto {
  display: inline-block;
  margin-top: 26px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.enlace-discreto:hover {
  color: var(--amarillo);
}

/* ---------- Secciones ---------- */

.seccion {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 24px;
}

.seccion h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-align: center;
  margin: 0 0 32px;
  color: #fff;
}

.seccion p {
  color: #fff;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.seccion .intro {
  text-align: center;
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 32px;
}

/* ---------- Cómo se juega ---------- */

.pasos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.paso {
  background: var(--fondo-card);
  border: 1px solid var(--borde-tarjeta);
  border-radius: 16px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.paso .numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--amarillo);
  color: var(--azul-oscuro);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0;
}

.paso h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}

.paso p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--texto);
}

.paso .ficha {
  width: 36px;
  height: 36px;
  margin-top: 6px;
  image-rendering: -webkit-optimize-contrast;
}

/* ---------- Piezas (showcase) ---------- */

.piezas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.pieza {
  background: var(--fondo-card);
  border: 1px solid var(--borde-tarjeta);
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.pieza img {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  padding: 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.35),
    inset 0 -3px 0 rgba(0, 0, 0, 0.08);
}

.pieza h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--amarillo);
}

.pieza p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--texto);
}

/* ---------- Footer ---------- */

footer {
  text-align: center;
  padding: 36px 24px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  letter-spacing: 1px;
}

footer a {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 8px;
}

/* ---------- Privacidad ---------- */

.privacidad {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 64px;
}

.privacidad h1 {
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: 1.5px;
  text-align: center;
  margin: 0 0 12px;
}

.privacidad .subtitulo {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  letter-spacing: 1.5px;
  margin: 0 0 36px;
}

.privacidad h2 {
  color: var(--amarillo);
  font-size: 18px;
  letter-spacing: 1px;
  margin: 32px 0 12px;
}

.privacidad p,
.privacidad li {
  color: var(--texto);
  font-size: 15px;
  line-height: 1.75;
}

.privacidad ul {
  padding-left: 22px;
}

.privacidad li {
  margin-bottom: 8px;
}

.privacidad .volver {
  display: inline-flex;
  margin-top: 40px;
  padding: 12px 30px;
  border-radius: 12px;
  border: 2px solid var(--borde-suave);
  background: var(--fondo-tarjeta);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 15px;
}

.privacidad .volver:hover {
  border-color: var(--amarillo);
}

.cabecera-privacidad {
  display: flex;
  justify-content: center;
  padding: 24px;
}

.cabecera-privacidad img {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
}

/* ---------- Portada (selector de idioma) ---------- */

.portada {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.logo-portada {
  width: min(320px, 70vw);
  height: auto;
  margin-bottom: 40px;
  animation: pulse 2.8s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.45));
}

.idiomas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 640px;
}

.idiomas .boton {
  min-width: 0;
  padding: 14px 20px;
  font-size: 16px;
  letter-spacing: 1px;
}

@media (max-width: 480px) {
  .boton { min-width: 180px; padding: 12px 24px; font-size: 16px; }
  .hero { padding: 48px 18px 32px; }
  .seccion { padding: 48px 18px; }
}
