/* HazyCraft — paleta tomada del logo: azul noche, azul hielo y plata de piedra tallada.
   Titulares en serif (como el "HAZY" del logo), cuerpo en sans moderna. */
:root {
  --bg: #090c17;
  --bg-2: #0e1325;
  --bg-3: #131a31;
  --card: rgba(150, 178, 235, 0.06);
  --card-hover: rgba(150, 178, 235, 0.10);
  --line: rgba(170, 195, 245, 0.16);
  --line-strong: rgba(170, 195, 245, 0.30);
  --text: #eef3ff;
  --muted: #98a6c6;
  --ice: #d6e1f7;
  --blue: #8fb2fb;            /* acento hielo */
  --blue-press: #6f98f0;
  --silver-1: #e6eefc;
  --silver-2: #a9bfe6;
  --green: #72dba4;
  --amber: #f3c76e;
  --red: #f28b86;
  --radius: 18px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased;
  background: radial-gradient(1100px 700px at 50% -8%, #1c2748 0%, transparent 62%), var(--bg); background-attachment: fixed;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(20px, calc((100vw - 1200px) / 2));
  background: rgba(9, 12, 23, .72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 8px; }
.nav-links a { padding: 8px 14px; color: var(--muted); font-size: 14px; font-weight: 500; border-radius: 10px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Botones ---------- */
.btn {
  appearance: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .01em;
  padding: 10px 20px; border: 1px solid transparent; border-radius: 12px; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, filter .2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-fill { background: linear-gradient(180deg, var(--silver-1), var(--silver-2)); color: #0b1226; box-shadow: 0 6px 22px rgba(143,178,251,.25), inset 0 1px 0 rgba(255,255,255,.7); }
.btn-fill:hover { box-shadow: 0 8px 30px rgba(143,178,251,.45), inset 0 1px 0 rgba(255,255,255,.8); filter: brightness(1.04); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(190,210,250,.5); }
.btn-soft { background: rgba(160,185,240,.14); color: var(--text); }
.btn-soft:hover { background: rgba(160,185,240,.24); }
.btn-danger { background: rgba(242,139,134,.14); color: #ff9d98; }
.btn-danger:hover { background: rgba(242,139,134,.26); }
.btn-lg { font-size: 16px; padding: 14px 30px; border-radius: 14px; }
.btn-sm { font-size: 13px; padding: 7px 15px; border-radius: 10px; }

/* ---------- Layout ---------- */
.wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
section { padding: 110px 0; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.title { font-size: clamp(32px, 5vw, 56px); letter-spacing: -0.03em; background: linear-gradient(180deg, #fff 0%, var(--silver-2) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); max-width: 620px; margin-top: 16px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.band-a { background: linear-gradient(180deg, transparent, rgba(24,34,66,.55) 18%, rgba(24,34,66,.55) 82%, transparent); }
.band-b { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-c { background: radial-gradient(800px 420px at 50% 0%, rgba(110,150,235,.22), transparent 70%), var(--bg-3); border-top: 1px solid var(--line); }

/* ---------- Portada ---------- */
.hero { position: relative; min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 0;
  background:
    radial-gradient(560px 500px at 50% 40%, rgba(150,180,235,.28), transparent 70%),
    linear-gradient(180deg, rgba(200,218,255,.10) 0%, transparent 40%),
    linear-gradient(180deg, #131b33 0%, #0b1020 62%, var(--bg) 100%); }
.hero::before { content: ""; position: absolute; top: 0; left: 50%; width: min(70vw, 780px); height: 100%; transform: translateX(-50%); background: linear-gradient(180deg, rgba(190,210,255,.20), transparent 78%); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; padding: 40px 0 70px; display: flex; flex-direction: column; align-items: center; }
.hero-medals { height: clamp(260px, 52vh, 520px); width: auto; filter: drop-shadow(0 0 46px rgba(140,175,255,.45)) drop-shadow(0 18px 24px rgba(0,0,0,.45)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero .lead { color: var(--ice); font-weight: 500; max-width: 560px; margin-top: 28px; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 8px 18px; border-radius: 980px; background: rgba(160,185,240,.08); border: 1px solid var(--line); backdrop-filter: blur(10px); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--green); box-shadow: 0 0 0 4px rgba(114,219,164,.2); }
.dot.off { background: var(--red); }
.copy-ip { cursor: pointer; color: var(--text); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .hero-medals { animation: none; } }

/* ---------- Niveles de prank ---------- */
.levels { display: grid; gap: 20px; margin-top: 52px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.level-card { position: relative; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(160,185,240,.08), rgba(160,185,240,.03)); border: 1px solid var(--line); transition: transform .25s, border-color .25s; }
.level-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.level-card .band { height: 150px; display: grid; place-items: center; position: relative; border-bottom: 1px solid var(--line);
  background: radial-gradient(260px 150px at 50% 110%, var(--tint), transparent 75%), linear-gradient(180deg, #17203b, #101730); }
.level-card .band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px); }
.level-card.P { --tint: rgba(114,219,164,.38); }
.level-card.E { --tint: rgba(243,199,110,.38); }
.level-card.D { --tint: rgba(242,139,134,.40); }
.level-card .body { padding: 26px 28px 32px; }
.badge { position: relative; z-index: 1; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 34px; background: rgba(9,12,23,.6); box-shadow: inset 0 0 0 2px currentColor, 0 0 34px -4px currentColor; }
.P .badge, .pill.P { color: var(--green); }
.E .badge, .pill.E { color: var(--amber); }
.D .badge, .pill.D { color: var(--red); }
.level-card h3 { font-size: 24px; margin-bottom: 10px; }
.level-card p { color: var(--ice); opacity: .88; font-size: 15.5px; }
.modifier { margin-top: 20px; display: flex; align-items: center; gap: 22px; padding: 22px 28px; border-radius: 20px; border: 1px dashed var(--line-strong); background: rgba(160,185,240,.04); flex-wrap: wrap; }
.modifier .mods { display: flex; gap: 10px; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: 3px 12px; border-radius: 980px; font-size: 13px; font-weight: 700; background: rgba(9,12,23,.5); box-shadow: inset 0 0 0 1.5px currentColor; }
.rules { margin-top: 20px; border-radius: 22px; background: linear-gradient(180deg, rgba(160,185,240,.08), rgba(160,185,240,.03)); border: 1px solid var(--line); padding: 36px 40px; }
.rules h3 { font-size: 22px; margin-bottom: 20px; }
.rules ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.rules li { position: relative; padding-left: 28px; color: var(--ice); font-size: 16px; }
.rules li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; transform: rotate(45deg); background: var(--blue); box-shadow: 0 0 12px rgba(143,178,251,.7); }
.rules b { color: #fff; }

/* ---------- Galería ---------- */
.gallery { columns: 3 280px; column-gap: 18px; margin-top: 48px; }
.shot { break-inside: avoid; margin: 0 0 18px; border-radius: 18px; overflow: hidden; position: relative; border: 1px solid var(--line); background: var(--bg-2); }
.shot img { width: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; font-size: 13px; background: linear-gradient(transparent, rgba(5,8,18,.88)); opacity: 0; transition: opacity .3s; }
.shot:hover figcaption { opacity: 1; }
.empty { color: var(--muted); text-align: center; padding: 60px 20px; border: 1px dashed var(--line-strong); border-radius: 22px; margin-top: 48px; background: rgba(160,185,240,.03); }

/* ---------- Ediciones ---------- */
.timeline { display: grid; gap: 20px; margin-top: 48px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.edition { border-radius: 22px; border: 1px solid var(--line); background: var(--card); padding: 30px; }
.edition .num { font-family: var(--display); font-weight: 700; font-size: 76px; line-height: 1; margin: 6px 0 12px; background: linear-gradient(180deg, #fff, var(--silver-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.edition.current { background: linear-gradient(165deg, rgba(143,178,251,.22), rgba(160,185,240,.05)); border-color: rgba(143,178,251,.5); box-shadow: 0 0 60px -20px rgba(143,178,251,.55); }
.edition small { color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .2em; font-size: 11.5px; }
.edition p { color: var(--ice); opacity: .85; font-size: 15px; text-align: justify; hyphens: auto; }
.edition p + p { margin-top: 14px; }

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 20px; margin-top: 48px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.step { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.step::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(180deg, var(--silver-1), var(--silver-2)); color: #0b1226; font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 18px; box-shadow: 0 0 24px rgba(143,178,251,.4); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Cards genéricas ---------- */
.cards { display: grid; gap: 20px; margin-top: 48px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card:hover { background: var(--card-hover); }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 14px; background: #070a14; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(3, 1fr); }
footer h4 { margin: 0 0 14px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); text-decoration: none; }
.foot-brand { display: flex; gap: 12px; align-items: center; color: var(--text); font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; font-size: 18px; margin-bottom: 14px; }
.foot-brand img { height: 52px; }
.foot-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: span 2; } }

/* ---------- Revelar al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Avatar / usuario ---------- */
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--silver-2), #6f8fd0); color: #0b1226; display: grid; place-items: center; font-size: 13px; font-weight: 700; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chip { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ice); font-weight: 600; }

/* ---------- Formularios ---------- */
.center-page { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 20px; background: radial-gradient(700px 480px at 50% 30%, rgba(120,155,235,.22), transparent 70%); }
.panel-card { width: min(480px, 100%); background: rgba(16, 22, 42, .72); border: 1px solid var(--line); border-radius: 26px; padding: 42px 36px; backdrop-filter: blur(22px); text-align: center; box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); }
.panel-card h1 { font-size: 26px; margin-bottom: 10px; }
.panel-card p.sub { color: var(--muted); margin-bottom: 24px; }
.field { text-align: left; margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; letter-spacing: .02em; }
input, textarea, select { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(143,178,251,.18); }
select option { background: #131a31; }
textarea { resize: vertical; min-height: 86px; }
.msg { font-size: 14px; margin-top: 14px; min-height: 20px; }
.msg.err { color: #ff9d98; }
.msg.ok { color: var(--green); }
.notice { background: rgba(243,199,110,.1); border: 1px solid rgba(243,199,110,.35); color: #f7d98f; border-radius: 14px; padding: 12px 16px; font-size: 14px; margin-bottom: 20px; text-align: left; }

@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 760px) {
  section { padding: 76px 0; }
  .btn-lg { padding: 13px 22px; font-size: 15px; }
  .rules { padding: 26px 22px; }
  .brand span { display: none; }
  .nav-actions .btn { padding: 8px 12px; font-size: 12px; }
}
