/* =====================================================================
   Santuario Zombie RP · Web
   ===================================================================== */
:root {
    --bg: #0b0a12;
    --bg2: #110e1a;
    --surface: rgba(255, 255, 255, .04);
    --surface2: rgba(255, 255, 255, .07);
    --line: rgba(255, 255, 255, .09);
    --line-pink: rgba(255, 159, 215, .22);
    --text: #f6f1f7;
    --muted: #b9a8bd;
    --pink: #ff5f9e;
    --violet: #9148ff;
    --lime: #c6ff3d;
    --cyan: #65c7ff;
    --gold: #ffbd3f;
    --red: #ff4d5e;
    --green: #4ade80;
    --discord: #5865f2;
    --grad: linear-gradient(135deg, var(--pink), var(--violet));
    --radius: 18px;
    --shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--bg);
    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, h4 { font-family: 'Rajdhani', sans-serif; line-height: 1.1; letter-spacing: .5px; }
.container { width: min(1180px, 100% - 40px); margin: 0 auto; }

/* ---------- botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 12px 22px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
    font: 700 15px/1 'Inter', sans-serif; color: #fff; transition: transform .15s, box-shadow .2s, background .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); box-shadow: 0 8px 24px rgba(255, 95, 158, .35); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(255, 95, 158, .5); }
.btn-discord { background: var(--discord); box-shadow: 0 8px 24px rgba(88, 101, 242, .35); }
.btn-ghost { background: var(--surface2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--pink); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 9px 15px; font-size: 13px; border-radius: 10px; }
.link { color: var(--pink); font-weight: 600; font-size: 14px; }
.link:hover { text-decoration: underline; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; flex-shrink: 0; }
.dot.green, .online .dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.offline .dot { background: var(--red); box-shadow: 0 0 10px var(--red); }
.dot.grey { background: #8b8b99; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); }

/* ---------- nav ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    display: flex; align-items: center; gap: 24px; padding: 14px max(20px, calc((100% - 1180px) / 2));
    transition: background .25s, border-color .25s, padding .25s; border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(11, 10, 18, .85); backdrop-filter: blur(14px); border-color: var(--line); padding-top: 10px; padding-bottom: 10px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font: 700 20px 'Rajdhani', sans-serif; letter-spacing: 1px; }
.nav-brand img { height: 36px; filter: drop-shadow(0 0 8px rgba(255, 95, 158, .5)); }
.nav-brand b { color: var(--pink); margin-left: 4px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.nav-pill b { color: #fff; }
.nav-burger { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 20px 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(3px) saturate(1.1); transform: scale(1.05); }
.hero-shade {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 35%, rgba(145, 72, 255, .25), transparent 60%),
        linear-gradient(180deg, rgba(11, 10, 18, .55) 0%, rgba(11, 10, 18, .78) 60%, var(--bg) 100%);
}
.hero-grain { position: absolute; inset: 0; opacity: .08; background-image: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 3px); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 900px; display: flex; flex-direction: column; align-items: center; }
.status-badge {
    display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 99px;
    background: rgba(0, 0, 0, .45); border: 1px solid var(--line); font-size: 14px; font-weight: 600; margin-bottom: 26px;
}
.hero-logo { width: min(640px, 92vw); filter: drop-shadow(0 10px 40px rgba(255, 95, 158, .35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero-slogan {
    margin-top: 18px; font-size: clamp(30px, 5vw, 52px); font-weight: 700; text-transform: uppercase;
    background: linear-gradient(90deg, #fff, var(--pink-2, #ffc2dc), #fff); -webkit-background-clip: text; color: transparent;
}
.hero-desc { margin-top: 10px; max-width: 640px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 46px; border-radius: 16px; overflow: hidden; background: var(--line); border: 1px solid var(--line); width: min(820px, 100%); }
.hstat { padding: 16px 12px; background: rgba(11, 10, 18, .72); backdrop-filter: blur(10px); text-align: center; }
.hstat b { display: block; font: 700 32px 'Rajdhani', sans-serif; background: var(--grad); -webkit-background-clip: text; color: transparent; }
.hstat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 30px; color: var(--muted); animation: bounce 2s infinite; }
@keyframes bounce { 50% { transform: translate(-50%, 6px); } }

/* ---------- secciones ---------- */
.section { padding: 100px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 15%, var(--bg2) 85%, var(--bg) 100%); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.eyebrow { display: inline-block; font: 700 13px 'Rajdhani', sans-serif; letter-spacing: 3px; text-transform: uppercase; color: var(--pink); margin-bottom: 8px; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); }
.section-head p { color: var(--muted); margin-top: 10px; }
.section-head b { color: #fff; }

/* ---------- estado ---------- */
.status-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; }
.status-card, .players-card { padding: 26px; }
.sc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.sc-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.sc-top h3 { font-size: 26px; margin-top: 2px; }
.state-chip { padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--surface2); }
.state-chip.on { color: var(--green); background: rgba(74, 222, 128, .12); }
.state-chip.off { color: var(--red); background: rgba(255, 77, 94, .12); }
.capacity { margin-bottom: 22px; }
.cap-nums { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.cap-nums b { font: 700 54px/1 'Rajdhani', sans-serif; }
.cap-nums span { color: var(--muted); }
.cap-nums i { font-style: normal; color: #fff; font-weight: 700; }
.cap-bar { height: 10px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
#capFill { height: 100%; width: 0; background: var(--grad); border-radius: 99px; box-shadow: 0 0 16px rgba(255, 95, 158, .5); transition: width .8s ease; }
.sc-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.sc-meta div { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.sc-meta span { display: block; font-size: 12px; color: var(--muted); }
.sc-meta b { font-size: 15px; }
.connect-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line-pink); background: rgba(255, 95, 158, .05); flex-wrap: wrap; }
.connect-box code { display: block; font: 600 15px ui-monospace, Consolas, monospace; color: var(--lime); margin-top: 2px; word-break: break-all; }
.connect-actions { display: flex; gap: 8px; }

.count-chip { min-width: 42px; text-align: center; padding: 6px 12px; border-radius: 99px; font-weight: 700; background: var(--grad); }
.player-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 300px; overflow-y: auto; padding-right: 4px; }
.player-list::-webkit-scrollbar { width: 6px; }
.player-list::-webkit-scrollbar-thumb { background: rgba(255, 95, 158, .4); border-radius: 6px; }
.player { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.player small { color: var(--muted); font-size: 11px; }
.empty { color: var(--muted); font-size: 14px; }

/* ---------- características ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.feature {
    padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
    transition: transform .25s, border-color .25s, background .25s; position: relative; overflow: hidden;
}
.feature::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 0 0, rgba(255, 95, 158, .12), transparent 60%); opacity: 0; transition: opacity .25s; }
.feature:hover { transform: translateY(-4px); border-color: var(--line-pink); }
.feature:hover::before { opacity: 1; }
.f-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, rgba(255, 95, 158, .2), rgba(145, 72, 255, .2)); border: 1px solid var(--line-pink); margin-bottom: 16px; }
.feature h4 { font-size: 21px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14.5px; }
.tag { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--lime); }

/* ---------- especialidades ---------- */
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .jobs { grid-template-columns: 1fr 1fr; } }
.job { padding: 24px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center; transition: transform .25s, border-color .25s; }
.job:hover { transform: translateY(-4px); border-color: var(--line-pink); }
.job .j-icon { font-size: 40px; margin-bottom: 10px; }
.job h4 { font-size: 22px; }
.job p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.job.second { border-color: rgba(255, 189, 63, .35); background: linear-gradient(180deg, rgba(255, 189, 63, .08), var(--surface)); }
.job .lvl { display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(255, 189, 63, .15); color: var(--gold); }

/* ---------- comandos ---------- */
.cmd-tools { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-bottom: 26px; }
.cmd-tools input { width: min(560px, 100%); padding: 13px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); color: var(--text); font: 500 15px Inter, sans-serif; outline: none; }
.cmd-tools input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 95, 158, .15); }
.cmd-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cmd-chip { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 600 13px Inter, sans-serif; cursor: pointer; }
.cmd-chip.on { background: var(--grad); color: #fff; border-color: transparent; }
.cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.cmd-card { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); cursor: copy; transition: border-color .2s, transform .15s; }
.cmd-card:hover { border-color: var(--line-pink); transform: translateY(-2px); }
.cmd-card code { font: 700 14px ui-monospace, Consolas, monospace; color: var(--cyan); word-break: break-word; }
.cmd-card p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.cmd-card .cg { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--pink); }
.cmd-card .key { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--surface2); border: 1px solid var(--line); font-size: 11px; color: var(--gold); font-weight: 700; }
.cmd-card small { display: block; color: #8d7f92; font-size: 12px; margin-top: 2px; }

/* ---------- pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); font: 700 22px 'Rajdhani', sans-serif; margin-bottom: 14px; box-shadow: 0 8px 20px rgba(255, 95, 158, .35); }
.step h4 { font-size: 21px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }
.step b { color: #fff; }

/* ---------- discord ---------- */
.discord-card {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 40px;
    background: linear-gradient(135deg, rgba(88, 101, 242, .22), rgba(145, 72, 255, .14)); border-color: rgba(88, 101, 242, .4);
    box-shadow: var(--shadow); flex-wrap: wrap;
}
.dc-left { display: flex; align-items: center; gap: 22px; }
.dc-left img { width: 84px; height: 84px; border-radius: 22px; object-fit: cover; background: var(--bg2); border: 2px solid rgba(255, 255, 255, .15); }
.dc-left h2 { font-size: 32px; }
.dc-stats { display: flex; gap: 20px; margin-top: 6px; color: var(--muted); font-size: 15px; }
.dc-stats span { display: inline-flex; align-items: center; gap: 7px; }
.dc-stats b { color: #fff; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 50px 0 26px; background: #08070d; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 22px; max-width: 620px; }
.footer-brand img { width: 170px; }
.footer-brand p { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-links a { padding: 9px 14px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.footer-links a:hover { border-color: var(--pink); }
.footer-copy { text-align: center; color: #6f6475; font-size: 13px; margin-top: 30px; }

/* ---------- toast / animaciones ---------- */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 12px; background: #1b1424; border: 1px solid var(--line-pink); box-shadow: var(--shadow); font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s; z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* modo captura (?shot): todo visible y portada de alto fijo */
.shot .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.shot .hero { min-height: 900px; }
.shot .nav { position: absolute; }
.shot .hero-logo, .shot .scroll-hint { animation: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
    .status-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(11, 10, 18, .97); border-bottom: 1px solid var(--line); }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 14px 24px; border-top: 1px solid var(--line); }
    .nav-burger { display: block; }
    .nav-pill { display: none; }
}
@media (max-width: 600px) {
    .steps { grid-template-columns: 1fr; }
    .sc-meta { grid-template-columns: 1fr; }
    .discord-card { padding: 26px; }
    .dc-left { flex-direction: column; align-items: flex-start; }
    .hero-actions .btn { width: 100%; }
    .footer-brand { flex-direction: column; align-items: flex-start; }
}
