/* Web de Nexos MC: mismos colores que el launcher y el juego. */
:root {
  --bg: #07040f;
  --bg-2: #0e0820;
  --panel: rgba(22, 12, 42, 0.72);
  --border: rgba(169, 120, 255, 0.28);
  --purple: #8a4cd6;
  --purple-2: #a96bff;
  --lavender: #d9b8ff;
  --teal: #3ee6d8;
  --gold: #ffc828;
  --red: #ff4d6a;
  --green: #45d483;
  --text: #f1e9ff;
  --muted: #a39abb;
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
h2 { font-size: clamp(32px, 5vw, 58px); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 22px; font-weight: 700; }
section { position: relative; padding: 130px max(24px, calc((100vw - var(--max)) / 2)); }
.eyebrow {
  margin: 0 0 14px;
  font-family: "Silkscreen", monospace;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---------------------------------------------------------------- botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.btn span { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.btn small { font-weight: 500; font-size: 12.5px; opacity: 0.8; }
.btn-big { padding: 16px 26px; font-size: 18px; }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-primary {
  background: linear-gradient(135deg, #b37bff, #6a2fc0 60%, #3a8fd6);
  box-shadow: 0 10px 40px -10px rgba(169, 107, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(62, 230, 216, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }

/* ---------------------------------------------------------------- barra de arriba */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  background: linear-gradient(180deg, rgba(7, 4, 15, 0.85), rgba(7, 4, 15, 0));
  transition: transform 0.35s, background 0.35s;
}
.nav.scrolled { background: rgba(9, 5, 20, 0.82); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(169, 120, 255, 0.15); }
.nav.hidden { transform: translateY(-100%); }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: "Silkscreen", monospace; font-size: 18px; letter-spacing: 0.06em; }
.nav-brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ---------------------------------------------------------------- portada */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 120px;
  padding-bottom: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-sky { position: absolute; inset: 0; z-index: -3; background: radial-gradient(ellipse at 50% 30%, #2a0f57 0%, #12072a 45%, var(--bg) 80%); }
#stars { width: 100%; height: 100%; display: block; }
.hero-glow {
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 40%;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(150, 90, 255, 0.45) 0%, rgba(90, 40, 200, 0.18) 35%, transparent 65%);
  filter: blur(10px);
}
.hero-city {
  position: absolute;
  z-index: -1;
  left: -5%;
  right: -5%;
  bottom: -2px;
  height: 46%;
  background: url("../img/fondo.png") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
  opacity: 0.95;
}
.hero-city::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, var(--bg) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(640px, 88vw); image-rendering: pixelated; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(169, 107, 255, 0.35)); }
.hero-tagline { margin: 22px 0 34px; font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; line-height: 1.35; }
.hero-tagline span { color: var(--red); text-shadow: 0 0 24px rgba(255, 77, 106, 0.45); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.hero-note { margin-top: 26px; font-size: 14px; color: var(--muted); }

/* Cristal del Nexo en 3D (dos piramides de cuatro caras) */
.crystal-wrap {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 38%;
  width: 0;
  height: 0;
  perspective: 1100px;
}
.crystal {
  --s: 230px;   /* lado de la base */
  --l: 300px;   /* altura de cada cara */
  --a: 22deg;   /* inclinacion de las caras */
  position: absolute;
  transform-style: preserve-3d;
  animation: spin 16s linear infinite;
}
.pyramid { position: absolute; transform-style: preserve-3d; }
.pyramid.bottom { transform: rotateX(180deg); }
.pyramid i {
  position: absolute;
  left: calc(var(--s) / -2);
  top: calc(var(--l) * -1);
  width: var(--s);
  height: var(--l);
  transform-origin: 50% 100%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(225, 200, 255, 0.55), rgba(140, 80, 240, 0.28) 55%, rgba(62, 230, 216, 0.22));
  opacity: 0.75;
}
.pyramid i:nth-child(1) { transform: rotateY(0deg) translateZ(calc(var(--s) / 2)) rotateX(var(--a)); }
.pyramid i:nth-child(2) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)) rotateX(var(--a)); background: linear-gradient(180deg, rgba(200, 160, 255, 0.5), rgba(110, 60, 220, 0.3)); }
.pyramid i:nth-child(3) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)) rotateX(var(--a)); }
.pyramid i:nth-child(4) { transform: rotateY(270deg) translateZ(calc(var(--s) / 2)) rotateX(var(--a)); background: linear-gradient(180deg, rgba(160, 255, 245, 0.45), rgba(62, 200, 216, 0.25)); }
.pyramid.bottom i { opacity: 0.55; }
@keyframes spin { from { transform: rotateX(-12deg) rotateY(0deg); } to { transform: rotateX(-12deg) rotateY(360deg); } }
@media (max-width: 700px) { .crystal { --s: 150px; --l: 196px; } }

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint span { width: 24px; height: 38px; border: 2px solid rgba(217, 184, 255, 0.5); border-radius: 12px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--teal); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------------------------------------------------------------- que es */
.about { min-height: 100vh; display: flex; align-items: center; }
.about-pin { width: 100%; }
.reveal-words { font-size: clamp(28px, 4.2vw, 52px); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; max-width: 1050px; }
.reveal-words .w { opacity: 0.14; transition: none; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 60px; }
.about-stats div { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
.about-stats strong { display: block; font-size: 46px; font-weight: 800; background: linear-gradient(135deg, var(--lavender), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-stats span { color: var(--muted); font-size: 15px; }
@media (max-width: 800px) { .about-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------- caracteristicas */
.features { padding-left: 0; padding-right: 0; overflow: hidden; }
.features-head { padding: 0 max(24px, calc((100vw - var(--max)) / 2)); margin-bottom: 50px; }
.features-track { display: flex; gap: 28px; padding: 0 max(24px, calc((100vw - var(--max)) / 2)); width: max-content; }
.feature {
  position: relative;
  width: min(820px, 78vw);
  min-height: 440px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: center;
  padding: 38px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    linear-gradient(160deg, rgba(30, 16, 58, 0.9), rgba(12, 7, 26, 0.95));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  overflow: hidden;
}
.feature-num { font-family: "Silkscreen", monospace; font-size: 15px; color: var(--accent); }
.feature h3 { font-size: clamp(28px, 3vw, 40px); margin: 8px 0 14px; }
.feature p { margin: 0; color: #d1c6e6; }
.feature-shot {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 60px -20px var(--accent);
  transform: perspective(900px) rotateY(-8deg);
  transition: transform 0.5s;
}
.feature:hover .feature-shot { transform: perspective(900px) rotateY(0deg) scale(1.02); }
.feature-shot img { width: 100%; }
.feature-shot.pixel img { image-rendering: pixelated; }
@media (max-width: 900px) {
  .features-track { flex-direction: column; width: auto; }
  .feature { width: auto; grid-template-columns: 1fr; padding: 26px; min-height: 0; }
  .feature-shot { transform: none; }
}

/* ---------------------------------------------------------------- galeria */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
  margin-top: 44px;
}
.shot {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(169, 120, 255, 0.25);
  cursor: zoom-in;
  background: var(--bg-2);
}
.shot.big { grid-column: span 2; grid-row: span 2; }
.shot.wide { grid-column: span 2; }
.shot img { width: 100%; height: 115%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.shot:hover img { transform: scale(1.06); }
.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(7, 4, 15, 0.85));
  font-weight: 600;
  font-size: 15px;
}
@media (max-width: 800px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .shot.big { grid-column: span 2; }
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px;
  background: rgba(4, 2, 10, 0.92);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1500px, 100%); max-height: 82vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
.lightbox p { margin: 0; color: var(--lavender); font-weight: 600; }
.lightbox-close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.06); color: var(--text); font-size: 18px; cursor: pointer; }

/* ---------------------------------------------------------------- semana */
.week { text-align: center; }
.raid-word { color: var(--red); }
.week-bar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  max-width: 900px;
  margin: 60px auto 18px;
}
.day {
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-family: "Silkscreen", monospace;
  font-size: 26px;
  transform-origin: bottom;
}
.day.safe { background: linear-gradient(180deg, rgba(69, 212, 131, 0.28), rgba(69, 212, 131, 0.08)); border: 1px solid rgba(69, 212, 131, 0.45); color: #b8f5d2; }
.day.raid { background: linear-gradient(180deg, rgba(255, 77, 106, 0.45), rgba(255, 77, 106, 0.12)); border: 1px solid rgba(255, 77, 106, 0.6); color: #ffd1d8; box-shadow: 0 0 40px -10px rgba(255, 77, 106, 0.7); }
.week-now { position: absolute; z-index: 2; top: -14px; bottom: -14px; width: 3px; margin-left: -1.5px; background: var(--gold); border-radius: 2px; box-shadow: 0 0 14px var(--gold); left: 0; opacity: 0; }
.week-now span { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.week-legend { display: flex; gap: 24px; justify-content: center; color: var(--muted); font-size: 14px; }
.week-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.week-legend i.safe { background: var(--green); }
.week-legend i.raid { background: var(--red); }
.week-status { margin-top: 26px; font-size: 20px; font-weight: 600; }
.week-status strong { color: var(--gold); }

/* ---------------------------------------------------------------- noticias */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 44px; }
.news-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}
.news-card:hover { transform: translateY(-4px); border-color: rgba(62, 230, 216, 0.5); }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.news-tag { padding: 2px 9px; border-radius: 6px; background: rgba(62, 230, 216, 0.15); color: var(--teal); font-weight: 700; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.news-card h3 { margin: 12px 0 8px; color: var(--lavender); }
.news-card p { margin: 0; color: #cfc4e4; font-size: 15.5px; }
.news-empty { color: var(--muted); }

/* ---------------------------------------------------------------- como jugar */
.steps { list-style: none; padding: 0; margin: 50px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
.step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  font-family: "Silkscreen", monospace;
  font-size: 20px;
  background: linear-gradient(135deg, var(--purple-2), #3a8fd6);
  box-shadow: 0 8px 24px -8px rgba(169, 107, 255, 0.9);
}
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: #cfc4e4; font-size: 15.5px; }
.steps em { color: var(--gold); font-style: normal; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.download-box {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 46px;
  padding: 26px 30px;
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(120, 60, 230, 0.35), rgba(62, 230, 216, 0.12));
  border: 1px solid rgba(169, 120, 255, 0.45);
}
.download-box img { width: 72px; height: 72px; }
.download-box h3 { font-size: 26px; }
.download-version { margin: 4px 0 0; color: var(--muted); }
.download-box .btn { margin-left: auto; }
@media (max-width: 700px) {
  .download-box { flex-direction: column; text-align: center; }
  .download-box .btn { margin: 0; }
}

/* ---------------------------------------------------------------- pie */
.footer {
  padding: 50px max(24px, calc((100vw - var(--max)) / 2)) 40px;
  border-top: 1px solid rgba(169, 120, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 36px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: "Silkscreen", monospace; }
.footer-brand img { width: 28px; }
.footer nav { display: flex; gap: 22px; color: var(--muted); }
.footer nav a:hover { color: var(--text); }
.legal { width: 100%; margin: 0; font-size: 13px; color: #6f6789; }

/* Con los efectos de animacion de Windows apagados: el cristal no gira sin parar (lo demas se anima igual) */
@media (prefers-reduced-motion: reduce) {
  .crystal { animation: none; transform: rotateX(-12deg) rotateY(35deg); }
}
