/* MuDot - pagina del servidor. Oscuro, rojo de las alas del logo y dorado de "DOT". */
:root {
  --bg: #0a0607;
  --bg2: #120c0d;
  --panel: #171012;
  --panel2: #1e1517;
  --line: #3b2a1e;
  --line2: #5a3e27;
  --gold: #e9b24c;
  --gold2: #ffd98a;
  --red: #b51f2b;
  --red2: #e2333f;
  --text: #ece4d6;
  --muted: #a69c8e;
  --ok: #6fd28a;
  --radius: 10px;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Lato", system-ui, sans-serif;
  background-image: radial-gradient(1200px 600px at 50% -200px, rgba(181, 31, 43, .16), transparent 70%);
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold2); }
img { max-width: 100%; display: block; }
h1, h2, h3, .cinzel { font-family: "Cinzel", Georgia, serif; letter-spacing: .04em; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .4em; color: var(--gold2); text-align: center; }
.sub { text-align: center; color: var(--muted); margin: 0 auto 2rem; max-width: 640px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
section { padding: 72px 0; }
.sep { height: 1px; background: linear-gradient(90deg, transparent, var(--line2), transparent); border: 0; margin: 0; }

/* ---- barra de arriba */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10, 6, 7, .86); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: "Cinzel", serif; font-weight: 700;
  font-size: 1.2rem; letter-spacing: .08em; }
.brand img { width: 40px; height: 40px; }
.menu { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.menu a { color: var(--text); padding: 8px 12px; border-radius: 6px; font-size: .95rem; }
.menu a:hover { background: var(--panel2); color: var(--gold2); }
.menu .clock { color: var(--muted); font-size: .85rem; padding: 0 8px; white-space: nowrap; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line2); color: var(--text);
  border-radius: 6px; padding: 6px 10px; font-size: 1.1rem; }
@media (max-width: 880px) {
  .burger { display: block; }
  .menu { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .menu.open { display: flex; }
  .menu .clock { padding: 8px 12px; }
}

/* ---- botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 8px;
  font-family: "Cinzel", serif; font-weight: 700; letter-spacing: .06em; border: 1px solid transparent; cursor: pointer;
  font-size: .95rem; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: linear-gradient(180deg, var(--red2), var(--red)); color: #fff; border-color: #ff6a72;
  box-shadow: 0 6px 24px rgba(181, 31, 43, .35); }
.btn-red:hover { color: #fff; box-shadow: 0 8px 30px rgba(226, 51, 63, .5); }
.btn-gold { background: linear-gradient(180deg, #f5c86a, #c88d2a); color: #2a1a06; border-color: #ffe2a0; }
.btn-gold:hover { color: #1c1004; }
.btn-ghost { background: transparent; color: var(--gold2); border-color: var(--line2); }
.btn-ghost:hover { background: var(--panel2); color: var(--gold2); }
.btn-sm { padding: 8px 14px; font-size: .82rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---- portada */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url(../img/hero.jpg) center/cover no-repeat;
  filter: saturate(.85) brightness(.45); transform: scale(1.04); }
.hero::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,6,7,.1) 0%, rgba(10,6,7,.75) 70%), linear-gradient(180deg, transparent 60%, var(--bg)); }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero .logo { width: min(380px, 78vw); margin: 0 auto -6px; filter: drop-shadow(0 10px 40px rgba(181, 31, 43, .45)); }
.hero .tag { font-family: "Cinzel", serif; color: var(--gold2); font-size: clamp(1rem, 2.2vw, 1.3rem); letter-spacing: .14em; margin: 0 0 18px; }
.online { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(23, 16, 18, .8);
  border: 1px solid var(--line2); margin-bottom: 26px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.off { background: #777; box-shadow: none; }
.online b { color: var(--gold2); font-size: 1.15rem; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- tarjetas */
.grid { display: grid; gap: 18px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .g4, .g3, .g2 { grid-template-columns: 1fr; } }
.card { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative; }
.card h3 { margin: 0 0 8px; color: var(--gold2); font-size: 1.05rem; }
.rate { text-align: center; }
.rate .v { font-family: "Cinzel", serif; font-size: 2rem; color: var(--gold2); line-height: 1.1; }
.rate .k { color: var(--muted); font-size: .9rem; }
.feat p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---- eventos */
.next-ev { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  border-color: var(--line2); background: linear-gradient(90deg, rgba(181,31,43,.18), var(--panel)); margin-bottom: 18px; }
.next-ev .label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.next-ev .name { font-family: "Cinzel", serif; font-size: 1.6rem; color: var(--gold2); }
.next-ev .count { font-family: "Cinzel", serif; font-size: 2.2rem; color: #fff; font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
th { color: var(--muted); font-weight: 400; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.times { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); font-size: .82rem;
  font-variant-numeric: tabular-nums; }
.chip.now { border-color: var(--gold); color: var(--gold2); background: rgba(233, 178, 76, .1); }
.evcount { color: var(--gold2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

/* ---- ranking */
.rk-grid { grid-template-columns: 2fr 1fr; }
@media (max-width: 880px) { .rk-grid { grid-template-columns: 1fr; } }
.pos { width: 42px; color: var(--muted); }
.pos.p1 { color: #ffd34d; } .pos.p2 { color: #d8dde3; } .pos.p3 { color: #d39158; }
.cls { color: var(--muted); font-size: .88rem; }
.castle { display: flex; align-items: center; gap: 14px; }
.castle .ic { font-size: 2rem; }
.empty { color: var(--muted); text-align: center; padding: 18px; }

/* ---- galeria */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery a { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 16px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; border-radius: 8px; }

/* ---- descarga */
.steps { counter-reset: s; display: grid; gap: 14px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step::before { counter-increment: s; content: counter(s); flex: 0 0 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); font-family: "Cinzel", serif; font-weight: 700; }
.req li { color: var(--muted); }

/* ---- tienda */
.store-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.prod { display: flex; flex-direction: column; text-align: center; }
.prod.hot { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(233,178,76,.3), 0 10px 40px rgba(233,178,76,.08); }
.prod .badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #2a1a06;
  font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase; }
.prod .ic { width: 88px; height: 88px; margin: 6px auto 10px; image-rendering: auto; filter: drop-shadow(0 6px 16px rgba(0,0,0,.6)); }
.prod .price { font-family: "Cinzel", serif; font-size: 2rem; color: #fff; margin: 4px 0; }
.prod .price small { font-size: .9rem; color: var(--muted); }
.prod .desc { color: var(--muted); font-size: .9rem; flex: 1; margin: 8px 0 16px; text-align: left; }
.prod .desc li { margin-bottom: 4px; }
.prod .pay { display: grid; gap: 8px; }
.login-card { max-width: 420px; margin: 0 auto; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .85rem; color: var(--muted); }
.field input { background: #0d0909; border: 1px solid var(--line2); border-radius: 8px; color: var(--text); padding: 11px 12px;
  font: inherit; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233,178,76,.15); }
.msg { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; border: 1px solid; }
.msg.ok { border-color: #2f7a46; background: rgba(47,122,70,.18); color: #bff0cc; }
.msg.err { border-color: #8a2a2a; background: rgba(138,42,42,.2); color: #ffc9c9; }
.msg.info { border-color: var(--line2); background: var(--panel2); color: var(--text); }
.hidden { display: none !important; }
.note { color: var(--muted); font-size: .85rem; }

/* ---- pie */
footer { border-top: 1px solid var(--line); background: var(--bg2); padding: 40px 0 28px; color: var(--muted); font-size: .9rem; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }
footer h4 { font-family: "Cinzel", serif; color: var(--gold2); margin: 0 0 10px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 6px; }
footer .legal { margin-top: 26px; text-align: center; font-size: .8rem; opacity: .8; }
