/* ===== PlanetCraft · Minimal Dark UI (v1.4.0) ===== */

/* Reset suave */
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica,Arial,sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}

/* Paleta */
:root{
  --bg:#0b0f14;
  --bg-2:#0f141a;
  --panel:rgba(19,25,32,.65);
  --panel-solid:#141c23;
  --border:rgba(255,255,255,.06);
  --text:#d7e2ee;
  --muted:#92a4b5;
  --brand:#46b2ff;
  --brand-2:#6cd0ff;
  --ok:#48d597;
  --warn:#f7c04a;
  --err:#ff6b6b;
  --shadow:0 10px 35px rgba(0,0,0,.35);
}

/* Fondo global (gradiente, limpio) */
body{
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, #0f1822 0%, transparent 60%),
    linear-gradient(180deg, #0b0f14, #0b0f14);
  background-attachment:fixed;
}

/* HERO con imagen local en /public/img/hero-minecraft.svg */
.hero--image{
  --overlay: linear-gradient(180deg, rgba(8,12,17,.86) 0%, rgba(8,12,17,.93) 55%, rgba(8,12,17,.98) 100%);
  background:
    var(--overlay),
    url("/public/img/hero-minecraft.svg") center/cover no-repeat;
}

/* Layout */
.container{width:min(1080px,92%);margin-inline:auto}
.row{display:flex;gap:10px;align-items:center}
.row.center{justify-content:center}
.row.between{justify-content:space-between}
.grid{display:grid}

/* Header */
.site-header{
  position:sticky;top:0;z-index:40;
  backdrop-filter:saturate(1.1) blur(8px);
  background:rgba(11,15,20,.55);
  border-bottom:1px solid var(--border);
}
.site-header .brand{color:var(--brand-2);text-decoration:none;font-weight:700;display:flex;align-items:center;gap:10px}
.site-header .brand img{display:block;height:28px}
.site-header .nav a{color:var(--muted);text-decoration:none;padding:14px 8px;border-radius:10px}
.site-header .nav a.active,.site-header .nav a:hover{color:var(--text);background:rgba(255,255,255,.03)}

/* Footer */
.site-footer{border-top:1px solid var(--border);padding:24px 0;background:#0b0f14;color:var(--muted)}

/* Tipografía utilitaria */
h1,h2,h3,h4{margin:0 0 8px 0}
h1{font-size:36px;letter-spacing:.2px}
h2{font-size:26px}
h3{font-size:20px}
.small{font-size:.9rem}
.muted{color:var(--muted)}
.pill{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid var(--border);color:var(--muted)}

/* Hero */
.hero{padding:64px 0 24px 0;text-align:center}
.hero p{color:var(--muted)}

/* Botones */
.btn{
  appearance:none;border:1px solid var(--border);
  background:linear-gradient(180deg,#15202b,#121a23);
  color:var(--text);padding:10px 14px;border-radius:12px;
  cursor:pointer;transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow:0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.25);
  text-decoration:none;display:inline-flex;align-items:center;gap:8px
}
.btn:hover{transform:translateY(-1px);background:linear-gradient(180deg,#182431,#131c25)}
.btn:active{transform:translateY(0)}
.btn.primary{border-color:rgba(70,178,255,.4);background:linear-gradient(180deg,#1a3e5a,#102739);color:#e9f6ff}

/* Tarjetas */
.card{
  border:1px solid var(--border);border-radius:16px;
  background:var(--panel);backdrop-filter:saturate(1.2) blur(8px);
  box-shadow:var(--shadow);
  transition:transform .18s ease, background .18s ease;
}
.card:hover{transform:translateY(-2px)}
.card-body{padding:16px 18px}

/* Estados (dot) */
.dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#6b7280;margin-right:8px}
.dot.online{background:var(--ok)}
.dot.offline{background:var(--err)}

/* Toast */
.toast{
  position:fixed;left:50%;transform:translateX(-50%) translateY(20px);bottom:22px;z-index:60;
  padding:10px 14px;border-radius:12px;background:#101820;border:1px solid var(--border);color:var(--text);
  box-shadow:var(--shadow);opacity:0;transition:opacity .18s ease, transform .18s ease
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* News list cards */
.news-card{display:block;border-radius:14px;border:1px solid var(--border);background:rgba(21,30,38,.6)}
.news-card:hover{background:rgba(21,30,38,.75)}
.news-card .title{font-weight:600}
.news-card .date{color:var(--muted);font-size:.85rem}

/* Responsive */
@media (max-width:920px){
  .grid-col-2{grid-template-columns:1fr}
  h1{font-size:30px}
}

/* Light theme */
.theme-light{
  --bg:#f7fbff; --bg-2:#f2f7fb; --panel:rgba(255,255,255,.85);
  --panel-solid:#fff; --border:rgba(0,0,0,.08); --text:#10212e; --muted:#5b7389;
}
.theme-light body{background:#f4f8fc}
.theme-light .site-header{background:rgba(255,255,255,.7)}
.theme-light .btn{background:linear-gradient(180deg,#ffffff,#f0f5f9)}
.theme-light .btn:hover{background:linear-gradient(180deg,#ffffff,#e8eef5)}
/* Cubos de fondo (suave) */
body::before{
  content:""; position:fixed; inset:0; z-index:-1;
  background:
    radial-gradient(1000px 500px at 50% -10%, rgba(15,24,34,.35) 0%, transparent 60%),
    url("/public/img/bg-cubes.svg") top center / 1200px auto repeat-y;
  opacity:.45; pointer-events:none;
}

/* Hero con imagen (si existe hero-minecraft.svg o webp) */
.hero.hero--image{
  --overlay: linear-gradient(180deg, rgba(8,12,17,.84) 0%, rgba(8,12,17,.94) 55%, rgba(8,12,17,.98) 100%);
  background:
    var(--overlay),
    url("/public/img/hero-minecraft.svg") center/cover no-repeat;
}

/* Cards ligeramente elevadas al hover */
.card{ transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.card:hover{ transform: translateY(-2px); }

/* News card hover */
.news-card{ transition: background .18s ease, transform .18s ease; border-radius:16px; }
.news-card:hover{ transform: translateY(-1px); }

/* Enlaces más visibles al foco teclado */
.kbd-focus a:focus-visible, .kbd-focus button:focus-visible{
  outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 10px;
}
/* ====== Overrides de diseño (v1.5.0) ====== */

/* Arregla el skip link para que NO se vea siempre */
.skip-link{
  position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;
}
.skip-link:focus{
  left:12px;top:12px;width:auto;height:auto;padding:8px 12px;z-index:1000;
  background:#101820;border:1px solid var(--border);border-radius:10px;color:var(--text);
  box-shadow:var(--shadow);
}

/* Hero más respirado y tipografías */
.hero{ padding: 84px 0 36px; text-align:center; }
.hero-inner{ max-width:880px; margin:0 auto; }
.hero-title{ font-size:42px; line-height:1.15; margin:8px 0 6px; }
.hero-subtitle{ color:var(--muted); margin:0 0 10px; }
.badge{ display:inline-block; padding:6px 12px; border-radius:999px; border:1px solid var(--border); background:rgba(255,255,255,.06); color:var(--muted); font-size:.9rem; }
.brand-accent{ color:var(--brand-2); }
.hero-actions{ display:flex; gap:10px; justify-content:center; margin-top:12px; flex-wrap:wrap; }

/* Features */
.features{ margin-top:18px; gap:12px; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.feature{ display:flex; align-items:flex-start; gap:12px; padding:14px; }
.feature .icon{ width:34px; height:34px; border-radius:10px; display:grid; place-items:center;
  background:linear-gradient(180deg,#15202b,#121a23); border:1px solid var(--border);}
.feature-title{ margin:0 0 2px; font-size:16px; }
.feature-text{ margin:0; font-size:.95rem; }

/* Layout principal */
.layout-main{ display:grid; grid-template-columns:minmax(0,1.7fr) minmax(0,.9fr); gap:16px; margin-top:26px; }
.layout-main .left .section-title{ margin:0 0 10px; }
.stack{ display:grid; gap:12px; }

/* News list */
.news-card .news-link{ display:block; padding:14px 16px; text-decoration:none; color:inherit; }
.news-card .news-link:hover{ background:rgba(255,255,255,.03); border-radius:14px; }
.news-meta .date{ color:var(--muted); font-size:.85rem; }
.news-title{ margin:2px 0 6px; font-size:18px; }
.news-summary{ margin:0 0 6px; color:var(--muted); }
.news-cta{ font-size:.95rem; color:var(--brand-2); }

/* Aside */
.aside-title{ margin:0 0 8px; }
.discord-box{ display:grid; place-items:center; height:300px; background:rgba(21,30,38,.6); border:1px dashed var(--border); border-radius:12px; }

/* Info tiles al final */
.info-tiles{ gap:16px; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); margin-top:24px; }

/* Cards un pelín más sólidas para contraste */
.card{ background: rgba(19,25,32,.72); }

/* Responsive */
@media (max-width: 960px){
  .hero-title{ font-size:36px; }
  .layout-main{ grid-template-columns:1fr; }
}
/* --- Hero refinado --- */
.hero-inner{max-width:900px;margin-inline:auto;text-align:center;padding:38px 0 8px}
.badge{display:inline-block;padding:6px 10px;border-radius:999px;border:1px solid var(--border);
  background:rgba(255,255,255,.06);color:var(--muted);font-weight:600;margin-bottom:10px}
.hero-title{font-size:40px;line-height:1.2;margin:0 0 6px}
.hero-subtitle{color:var(--muted);margin:0 0 10px}
.brand-accent{color:var(--brand-2)}
.hero-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:12px}

/* --- Features (3 tarjetas pequeñas) --- */
.features{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
.feature{display:flex;align-items:center;gap:12px;padding:10px}
.feature .icon{font-size:20px;line-height:1}
.feature-title{margin:0;font-size:16px}
.feature-text{margin:2px 0 0}

/* --- Layout principal noticias/aside --- */
.layout-main{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,.9fr);gap:16px;margin-top:24px}
.layout-main .left{}.layout-main .right{display:grid;gap:12px}
.section-title{margin:0 0 10px 0}

/* --- Tiles inferiores --- */
.info-tiles{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin-top:22px}

/* micro-pulido */
.card:hover{transform:translateY(-1px);background:rgba(21,30,38,.72)}
/* ========== Micro-interacciones & look premium (v1.5) ========== */

/* Hero layout */
.hero{ position:relative; }
.hero-inner{ max-width:980px; margin:0 auto; padding:52px 0 20px; text-align:center; }
.hero-title{ font-size:clamp(28px,4vw,42px); margin:6px 0 6px; }
.hero-subtitle{ color:var(--muted); margin:0 0 14px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }

/* Cubos/luz sutil arriba (solo CSS, sin imágenes nuevas) */
.hero--image::before,
.hero--image::after{ content:""; position:absolute; inset:0; pointer-events:none; }
.hero--image::before{
  background:
    radial-gradient(36px 36px at 20% 18%, rgba(255,255,255,.04) 0, transparent 60%),
    radial-gradient(42px 42px at 80% 24%, rgba(255,255,255,.035) 0, transparent 60%),
    radial-gradient(30px 30px at 60% 12%, rgba(255,255,255,.03) 0, transparent 60%);
  filter: blur(2px);
}
.hero--image::after{
  animation: floaty 16s linear infinite; opacity:.25;
  background: radial-gradient(1000px 500px at 50% -15%, rgba(108,208,255,.06), transparent 60%);
}
@keyframes floaty{
  0%{ transform:translateY(0) } 50%{ transform:translateY(6px) } 100%{ transform:translateY(0) }
}

/* Badge / acento marca */
.badge{ display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px;
  background:rgba(255,255,255,.06); border:1px solid var(--border); color:var(--muted); }
.brand-accent{ color:var(--brand-2); }

/* Botones con glow suave */
.btn{ position:relative; overflow:hidden; }
.btn.primary{ box-shadow:0 0 0 0 rgba(70,178,255,0); }
.btn.primary:hover{ box-shadow:0 8px 30px rgba(70,178,255,.20); }
.btn:focus-visible{ outline:2px solid var(--brand); outline-offset:2px; }

/* Tarjetas con lift */
.card{ transition:transform .16s ease, background .16s ease, border-color .16s ease; }
.card:hover{ transform:translateY(-2px); background:rgba(21,30,38,.75); border-color:rgba(255,255,255,.09); }

/* Lista de noticias */
.news-list{ display:grid; gap:12px; }
.news-card{ transition:background .16s ease, border-color .16s ease; }
.news-card:hover{ border-color:rgba(108,208,255,.22); }

/* Mini features */
.features{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:18px; }
.feature{ display:flex; gap:10px; align-items:flex-start; padding:12px 14px; }
.feature .icon{
  width:36px; height:36px; display:grid; place-items:center; border-radius:12px;
  background:linear-gradient(180deg,#15202b,#111a22); border:1px solid var(--border); font-size:18px;
}
.feature-title{ margin:0 0 2px 0; }

/* Layout principal */
.layout-main{ display:grid; grid-template-columns:minmax(0,1.7fr) minmax(0,.9fr); gap:16px; margin-top:24px; }
.layout-main .right{ display:grid; gap:12px; }

/* Bloques informativos */
.info-tiles{ grid-template-columns:repeat(2,minmax(280px,1fr)); gap:16px; margin-top:24px; }

/* Discord placeholder */
.discord-box{
  display:grid; place-items:center; height:300px; border:1px dashed var(--border);
  border-radius:12px; background:rgba(255,255,255,.03);
}

/* Chip opcional en header */
#nav-online-chip{ margin-left:8px; }

/* Accesibilidad: reducir movimiento */
@media (max-width:920px){
  .features{ grid-template-columns:1fr; }
  .layout-main{ grid-template-columns:1fr; }
  .info-tiles{ grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; }
}
/* ===== v1.6 · Responsive & polish ===== */

/* Tipografía fluida y tamaños */
:root{
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 28px;
  --radius: 16px;
}

.hero-title{
  font-size: clamp(28px, 4.2vw + 8px, 48px);
  line-height: 1.1;
}
.hero-subtitle{
  font-size: clamp(14px, 1.4vw + 10px, 18px);
}

.btn{
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 15px;
}
.btn.primary{ font-weight: 600 }

/* Grids */
.features{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.feature.card{ padding: 8px 10px }
.feature .icon{ font-size: 18px }

/* Layout principal */
.layout-main{
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, .9fr);
  gap: 16px;
}
.layout-main .right .card iframe{
  width: 100%;
  border: 0;
  border-radius: 12px;
}

/* Tarjetas compactas */
.card{ border-radius: var(--radius) }
.card-body{ padding: 14px 16px }

/* Menú superior */
.site-header{
  position: sticky; top: 0; z-index: 50;
  padding: 8px 0;
}
.site-header .brand img{ display:inline-block; vertical-align:middle }

/* Chip de online en nav */
.nav-chip{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;border:1px solid var(--border);background:rgba(255,255,255,.05);color:var(--muted)}
.nav-chip .dot{margin:0}

/* =============  Breakpoints  ============= */

/* Tablet */
@media (max-width: 980px){
  .container{ width: min(96%, 860px) }

  /* grid 2→1 */
  .layout-main{
    grid-template-columns: 1fr;
  }
  .features{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  /* header responsive: oculta nav desktop */
  .site-header .nav{ display: none }
  .site-header .mobile-toggle{
    display:inline-flex; align-items:center; justify-content:center;
    width:40px; height:40px; border-radius:12px; border:1px solid var(--border);
    background: rgba(255,255,255,.04); cursor:pointer;
  }
  /* menú móvil */
  .mobile-menu{
    position: fixed; inset: 56px 0 0 0; /* bajo el header */
    background: rgba(10,14,18,.88); backdrop-filter: blur(8px) saturate(1.1);
    border-top: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; pointer-events:none;
    transition: transform .18s ease, opacity .18s ease;
  }
  .mobile-menu.open{ transform: none; opacity:1; pointer-events:auto }
  .mobile-menu .menu{
    display: grid; gap: 8px; padding: 14px;
  }
  .mobile-menu a{
    padding: 12px 14px; border-radius: 12px; text-decoration: none;
    color: var(--text); border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
  }
}

/* Móvil pequeño */
@media (max-width: 520px){
  .container{ width: 92% }
  .hero{ padding: 44px 0 18px }
  .hero-actions{ display: grid; gap: 10px }
  .features{ grid-template-columns: 1fr }
  .info-tiles{ grid-template-columns: 1fr !important }
  .card-body{ padding: 12px 12px }
}
/* ===== Responsive refinements (v1.6.1) ===== */
@media (max-width: 920px){
  .site-header .nav{ display:none; }
  #nav-toggle.mobile-toggle{ display:inline-flex !important; }

  .container{ width:min(100%, 92%); }
  .hero{ padding:48px 0 18px; }
  .hero-title{ font-size: clamp(28px, 6vw, 40px); }
  .hero-subtitle{ font-size: clamp(14px, 3.6vw, 16px); }
  .hero-actions .btn{ width:100%; justify-content:center; }

  /* Grillas a 1 columna */
  .layout-main{ display:block; }
  .layout-main .left, .layout-main .right{ width:100%; }
  .features{ grid-template-columns: 1fr; }
  .info-tiles{ grid-template-columns: 1fr; }

  /* Menú móvil (sheet) */
  .mobile-menu[hidden]{ display:block; visibility:hidden; height:0; overflow:hidden; }
  .mobile-menu{
    position:fixed; inset:auto 0 0 0; height:0; background:transparent; z-index:50;
    transition: height .18s ease;
  }
  .mobile-menu.open{ height: 45vh; }
  .mobile-menu .menu{
    height:100%; padding:16px; border-top:1px solid var(--border);
    background:rgba(11,15,20,.95); backdrop-filter: blur(10px) saturate(1.1);
    display:flex; flex-direction:column; gap:10px;
  }
  .mobile-menu .menu a{
    display:block; padding:10px 12px; border-radius:12px; text-decoration:none;
    color:var(--text); background:rgba(255,255,255,.03);
  }
}

/* Botón hamburguesa */
.mobile-toggle{
  appearance:none; border:1px solid var(--border); background:var(--panel);
  color:var(--text); padding:8px 12px; border-radius:12px; cursor:pointer;
}
.mobile-toggle:focus{ outline:2px solid rgba(70,178,255,.4); outline-offset:2px; }

/* Touch targets cómodos */
.btn{ min-height:44px; }
.nav a{ padding:12px 10px; }

/* Safe areas (iPhone notch) */
@supports (padding: max(0px)){
  body{ padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }
}
/* Chip header compacto */
.nav-chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  background:rgba(255,255,255,.06); border:1px solid var(--border);
  white-space:nowrap; font-size:.92rem;
}

/* Drawer móvil */
.mobile-toggle{
  appearance:none; border:1px solid var(--border);
  background:linear-gradient(180deg,#15202b,#121a23);
  color:var(--text); padding:8px 10px; border-radius:12px; cursor:pointer;
}
.mobile-menu{ position:relative; }
.mobile-menu .menu{
  display:flex; flex-direction:column; gap:10px;
  padding:12px 0; border-top:1px solid var(--border);
  background:rgba(11,15,20,.55); backdrop-filter:saturate(1.1) blur(8px);
}
.mobile-menu:not(.open){ display:block; } /* se controla con [hidden] en JS */

@media (max-width:920px){
  .nav { display:none; }
  .nav-chip{ font-size:.86rem; padding:6px 10px; }
}
/* ===== Fix header brand (móvil vs desktop) ===== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

.site-header .brand-logo{ display:inline-block; line-height:1; }
.site-header .brand-text{
  font-weight:700; color:var(--brand-2); line-height:1;
  font-size: clamp(14px, 2.8vw, 18px);
}

/* En móviles: mostrar solo el icono para evitar que compita con el texto gigantesco del hero */
@media (max-width: 520px){
  .site-header .brand-text{ display:none; }
}

/* Chip compacto en header (para que no tape el hero en móvil) */
.nav-chip{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:6px 10px; border-radius:999px;
  background:rgba(255,255,255,.06); border:1px solid var(--border);
  color:var(--muted); font-size:.85rem;
}
/* ===== Header limpio y consistente ===== */
.header-bar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}

.brand{
  font-weight:800; letter-spacing:.2px;
  color:var(--brand-2); text-decoration:none;
  font-size: clamp(18px, 2.2vw, 20px);
}

.site-header .nav{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
}
.site-header .nav a{
  color:var(--muted); text-decoration:none;
  padding:14px 8px; border-radius:10px;
}
.site-header .nav a:hover,
.site-header .nav a.active{
  color:var(--text);
  background:rgba(255,255,255,.06);
}

/* Acciones derechas */
.header-actions{ display:flex; align-items:center; gap:10px; }

/* Chip compacto */
.nav-chip{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:6px 10px; border-radius:999px;
  background:rgba(255,255,255,.06); border:1px solid var(--border);
  color:var(--muted); font-size:.9rem;
}

/* Toggle menú móvil: escondido en desktop */
.mobile-toggle{ display:none; }

/* --- MÓVIL --- */
@media (max-width: 920px){
  .site-header .nav{ display:none; }       /* Oculta barra de nav en móvil */
  .mobile-toggle{ display:inline-flex; }   /* Muestra botón ☰ */

  /* Menú móvil */
  .mobile-menu[hidden]{ display:none !important; }
  .mobile-menu .menu{ padding:10px 0; }
  .mobile-menu .menu a{
    display:block; padding:12px 8px;
    color:var(--text); text-decoration:none; border-radius:8px;
  }
  .mobile-menu .menu a:hover{
    background:rgba(255,255,255,.06);
  }
}
/* ===== Header fixes ===== */
.brand { align-items:center; }
.brand-mark { display:inline-block; width:24px; height:24px; }
.brand-text { font-weight:800; color:var(--brand-2); font-size: clamp(18px, 2.2vw, 20px); }

.site-header .nav a,
.site-header .nav a:visited{
  color:var(--muted);
  text-decoration:none;
}
.site-header .nav a:hover,
.site-header .nav a.active{
  color:var(--text);
  background:rgba(255,255,255,.06);
  border-radius:10px;
}

/* Botón móvil oculto en desktop */
.mobile-toggle{ display:none; }
@media (max-width: 920px){
  .site-header .nav{ display:none; }
  .mobile-toggle{ display:inline-flex; }
  .mobile-menu[hidden]{ display:none !important; }
  .mobile-menu .menu a{
    display:block; padding:12px 8px; border-radius:8px;
    color:var(--text); text-decoration:none;
  }
  .mobile-menu .menu a:hover{ background:rgba(255,255,255,.06); }
}
/* ===================== PlanetCraft · Galaxy Add‑on (no breaking) ===================== */
/* Fondo estelar detrás de todo */
#stars{
  position:fixed; inset:0; z-index:-1; background:transparent; pointer-events:none;
}

/* Paleta adicional (usa tu esquema actual) */
:root{
  --accent: var(--brand-2, #6cd0ff);
  --accent-2: #8a6bff;
  --success: var(--ok, #48d597);
  --danger: var(--err, #ff6b6b);
}

/* HERO con planeta voxel (si lo usas en la home nueva) */
.hero-planet{ display:flex; align-items:center; justify-content:center; }
.planet-img{
  width:min(420px, 92%);
  filter: drop-shadow(0 30px 80px rgba(108,208,255,.15));
  animation: pc-float 8s ease-in-out infinite;
}
@keyframes pc-float{ 0%,100%{transform: translateY(0)} 50%{transform: translateY(-8px)} }

/* Pills de IP/Jugadores */
.ip{
  display:inline-flex; align-items:center; gap:.6rem;
  margin:8px 0 6px; padding:10px 14px; border-radius:12px;
  background:rgba(255,255,255,.05); color:var(--text);
  border:1px solid var(--border);
}
.players{
  display:inline-flex; align-items:center; gap:.6rem;
  margin-top:8px; padding:8px 12px; border-radius:999px;
  background:rgba(108,208,255,.10); color:#d7f1ff;
  border:1px solid rgba(108,208,255,.30);
}

/* Grid de tarjetas de modos */
.card-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; }
.card-icon{ width:80px; height:80px; display:block;
  filter: drop-shadow(0 8px 28px rgba(138,107,255,.22));
}

/* Status del servidor */
.status-card{
  background: var(--panel-solid, #141c23);
  border:1px solid var(--border); border-radius:16px; padding:16px;
  box-shadow: var(--shadow);
}
.status-row{ display:flex; align-items:center; gap:.6rem; margin-bottom:10px; color:var(--muted); }
.status-dot{
  width:10px; height:10px; border-radius:50%;
  background:var(--danger); box-shadow:0 0 18px rgba(255,107,107,.55);
}
.status-stats{ display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; }
.status-stats > div{
  background: rgba(255,255,255,.03);
  border:1px solid var(--border); padding:12px; border-radius:12px;
}
.status-stats span{ color:var(--muted); display:block; margin-bottom:4px; }

/* Noticias en 2 columnas (sin pisar tus .news-card existentes) */
.news-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap:12px; }
.news-grid .news-card{ border-radius:16px; }

/* Discord embed card */
.discord-card{
  display:grid; grid-template-columns: 1.2fr .9fr; gap:12px;
  background: var(--panel); border:1px solid var(--border);
  border-radius:16px; padding:16px; box-shadow: var(--shadow);
}
.discord-embed{ width:100%; min-height:260px; border-radius:12px; border:0; }

/* Botones “tema galaxia” (respeta tu estilo base) */
.btn.primary{
  background: linear-gradient(135deg, var(--brand,#46b2ff), var(--accent-2));
  border-color: rgba(70,178,255,.4);
  color:#0e1116;
}

/* Responsive para los nuevos grids */
@media (max-width: 960px){
  .card-grid{ grid-template-columns: 1fr; }
  .news-grid{ grid-template-columns: 1fr; }
  .discord-card{ grid-template-columns: 1fr; }
}

/* Header sutil del tema (mantiene tu header) */
.site-header{
  backdrop-filter: saturate(1.15) blur(8px);
  background: linear-gradient(to bottom, rgba(11,15,20,.70), rgba(11,15,20,.40));
}
/* ==== GALAXY FIXES (override) ==== */

/* 1) Apagar el fondo antiguo de cubos en todas las páginas */
body::before{
  background: none !important;
  opacity: 0 !important;
}

/* 2) Evitar scroll horizontal por el canvas de estrellas */
html, body { overflow-x: hidden; }
#stars{
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100vw;             /* asegura ancho visual */
  height: 100vh;            /* asegura alto visual */
  max-width: 100%;          /* evita desbordes por DPR */
}

/* 3) Contraste/legibilidad general en bloques oscuros del home */
.card,
.news-card,
.discord-card,
.status-card{
  background: rgba(19,25,32,.72) !important;
  border: 1px solid var(--border) !important;
}

/* 4) Ajuste de rellenos verticales para que no queden vacíos al final */
section { padding-top: 24px; padding-bottom: 18px; }
.site-footer { margin-top: 18px; }
/* ===== FIX: salto al inicio / gap superior ===== */

/* Evita colapso de márgenes con el primer hijo del body */
body { margin:0 !important; padding-top:0 !important; }
body > *:first-child { margin-top: 0 !important; }

/* Asegura que el header esté por encima y sin desplazamientos */
.site-header { position: sticky; top:0; z-index: 20; }

/* El hero nunca empuja hacia abajo por margen inicial accidental */
.hero, main { margin-top: 0 !important; }

/* El canvas no interfiere con el flujo y no crea scroll */
#stars{
  position: fixed !important;
  top:0; left:0; right:0; bottom:0;
  width:100vw; height:100vh;
  display:block;            /* evita el gap de inline-canvas */
  pointer-events:none;
  z-index:-1;
}

/* Si quedó algún bloque con alto de viewport que empuje, neutralízalo */
[style*="min-height:100vh"], [style*="height:100vh"] {
  min-height: auto !important;
  height: auto !important;
}
/* ==== FIX: salto al cargar / página empieza abajo ==== */

/* Asegura que todo arranque pegado arriba y sin scroll horizontal */
html, body { height: 100%; overflow-x: hidden; }
body { margin: 0 !important; padding-top: 0 !important; }

/* Evita colapso de márgenes con el primer bloque real */
body > *:first-child { margin-top: 0 !important; }

/* El lienzo no ocupa flujo ni empuja contenido */
#stars{
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  display: block;            /* evita comportamiento inline */
  pointer-events: none;
  z-index: -1;
}

/* Si algún bloque trae height/min-height:100vh inline, no empuje al inicio */
[style*="min-height:100vh"], [style*="height:100vh"]{
  min-height: auto !important;
  height: auto !important;
}

/* Cuando hay hash (#status, etc.), compensa el header sticky */
:target { scroll-margin-top: 72px; }
/* ==== FIX FINAL: evitar anclaje de scroll por el canvas ==== */
html, body { overflow-anchor: none !important; }  /* desactiva el anclaje */
#stars { contain: paint; }                        /* el canvas no influye en el anclaje */
/* === HERO más preciso (no tapa la navbar y queda centrado) === */
.hero.hero--image{
  /* sube un poco el fondo del planeta */
  background-position: center -80px;
  padding-top: clamp(56px, 12vh, 84px); /* respira sin “empujar” */
}
@media (max-width: 980px){
  .hero.hero--image{ background-position: center -40px; }
}

/* === Suaviza estrellas detrás del contenido (mejor lectura) === */
body::after{
  content:"";
  position:fixed; inset:0; pointer-events:none; z-index:-1;
  /* una veladura que atenúa las estrellas fuera del hero */
  background: linear-gradient(
    to bottom,
    rgba(11,15,20,0) 0%,
    rgba(11,15,20,.18) 30%,
    rgba(11,15,20,.36) 100%
  );
}

/* === Ajuste fino tarjetas y secciones (look premium) === */
.section-title{ letter-spacing:.2px; }
.card{ border-color: rgba(255,255,255,.08); }
.card:hover{ border-color: rgba(255,255,255,.10); }

.news-list{ gap: 14px; }
.info-tiles{ gap: 18px; }

/* Footer pegado pero con respiro */
.site-footer{ margin-top: 16px; }
/* === Ajuste de HERO: menos aire y planeta un poco más arriba === */
:root{ --planet-shift: -120px; }         /* desktop */
@media (max-width: 980px){ :root{ --planet-shift: -64px; } }  /* tablet/móvil */

.hero.hero--image{
  background-position: center var(--planet-shift) !important;
  padding-top: clamp(56px, 10vh, 80px) !important;
  padding-bottom: 18px !important;
}

/* Compacta lo que sigue al hero (tarjetas/features) */
.hero + .container,
.hero + .layout-main{
  margin-top: 12px !important;
}
.features{ margin-top: 10px !important; }

/* News/aside un pelín más respirado pero sin “saltos” visuales */
.news-list{ gap: 14px; }
.card-body{ padding-top: 14px; padding-bottom: 14px; }

/* Suaviza estrellas detrás del contenido (mejor lectura) */
body::after{
  content:"";
  position:fixed; inset:0; pointer-events:none; z-index:-1;
  background: linear-gradient(
    to bottom,
    rgba(11,15,20,0) 0%,
    rgba(11,15,20,.18) 28%,
    rgba(11,15,20,.34) 100%
  );
}

/* Detalles visuales premium leves */
.section-title{ letter-spacing:.2px; }
.card{ border-color: rgba(255,255,255,.08) !important; }
.card:hover{ border-color: rgba(255,255,255,.10) !important; }

/* Footer pegado pero con respiro */
.site-footer{ margin-top: 16px; }
/* ===== Pixel Hero (mockup) ===== */
.pixel-hero{ position:relative; padding:52px 0 14px; text-align:center; }
.pixel-hero__inner{ max-width:1000px; margin:0 auto; }

.pixel-title{
  font-family: "Press Start 2P", system-ui, sans-serif;
  font-size: clamp(28px, 4.4vw, 64px);
  line-height: 1.1;
  letter-spacing: 1px;
  margin: 4px 0 8px;
  background: linear-gradient(180deg, #8fd3ff 0%, #6bb7ff 55%, #a486ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow:
    0 2px 0 rgba(14,18,24,.4),
    0 14px 40px rgba(108,208,255,.18);
}

.pixel-tagline{ color:var(--muted); margin:0 0 14px; font-size: clamp(14px, 1.8vw, 18px); }

.pixel-cta{
  display:flex; flex-wrap:wrap; gap:10px; justify-content:center; align-items:center;
  margin: 10px 0 14px;
}
.cta-btn{
  min-width: 140px;
  padding: 12px 16px; font-weight:700; border-radius: 14px;
  box-shadow: 0 10px 36px rgba(120,140,255,.15);
}
.cta-btn.primary{
  background: linear-gradient(135deg, var(--brand), #8a6bff);
  color: #0e1116;
}

.status-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px; border-radius:12px;
  background:rgba(255,255,255,.04); border:1px solid var(--border); color:var(--text);
}

.pixel-planet{ display:flex; justify-content:center; }
.pixel-planet__img{
  width:min(520px, 82vw);
  filter: drop-shadow(0 26px 80px rgba(108,208,255,.22));
  animation: pc-float 9s ease-in-out infinite;
}
.pixel-planet--fallback{ width:min(640px, 92vw); opacity:.9 }
@keyframes pc-float{ 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-8px) } }

/* Tira de modos */
.modes-row{
  display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px;
  margin-top: 10px;
}
.mode-card{
  display:grid; justify-items:center; gap:8px; padding:12px; text-decoration:none; color:var(--text);
  border:1px solid var(--border); border-radius:16px; background:rgba(255,255,255,.04);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.mode-card:hover{ transform: translateY(-2px); background:rgba(255,255,255,.06); border-color:rgba(108,208,255,.22) }
.mode-card span{ font-weight:700 }

@media (max-width: 760px){
  .modes-row{ grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 520px){
  .pixel-hero{ padding-top: 38px; }
  .modes-row{ grid-template-columns: 1fr; }
  .cta-btn{ flex:1 }
}
/* === Hero minimal v2 — planeta detrás del título === */
.hero{ 
  position: relative; 
  z-index: 0; 
  padding: 48px 0 14px;            /* menos alto, más compacto */
  text-align: center;
}

/* el contenedor del planeta no ocupa flujo y no roba espacio */
.hero-planet{
  position: absolute;
  left: 50%;
  top: -120px;                      /* súbelo/ bájalo ajustando este valor */
  transform: translateX(-50%);
  width: clamp(420px, 52vw, 740px); /* tamaño responsivo */
  opacity: .92;
  pointer-events: none;
  z-index: -1;                      /* detrás de todo el contenido del hero */
  filter: drop-shadow(0 50px 120px rgba(80,160,220,.18));
}
.hero-planet img{ width:100%; height:auto; display:block }

/* desenfoque/gradient para que el planeta se funda y no tape las secciones */
.hero-planet::after{
  content:"";
  position:absolute; inset:auto 0 -22%;
  height:46%;
  background: linear-gradient(
    to bottom,
    rgba(11,15,20,0) 0%,
    rgba(11,15,20,.75) 55%,
    rgba(11,15,20,1) 100%
  );
}

/* tipografía y espaciado del encabezado más fino */
.hero-title{ margin: 10px 0 6px }
.hero-subtitle{ margin: 0 0 10px; opacity:.9 }
.hero-actions{ margin-top: 8px }
.features{ margin-top: 18px }

/* cards/chips del hero un poco más elevadas para separar del planeta */
.feature.card{ backdrop-filter: blur(8px); background: rgba(19,25,32,.72) }

/* Responsive */
@media (max-width: 640px){
  .hero{ padding: 36px 0 12px }
  .hero-planet{ top: -70px; width: min(96vw, 560px) }
}
/* ===== Hero legible sobre el planeta (contraste + minimal) ===== */
.hero{ position:relative; z-index:0; padding:48px 0 14px; text-align:center; }

/* Capa de contraste entre el texto y el planeta (oscurece detrás del título) */
.hero::after{
  content:"";
  position:absolute; left:0; right:0; top:0;
  height: clamp(260px, 42vh, 520px);
  background:
    radial-gradient(60% 80% at 50% 40%,
      rgba(8,12,17,.92) 0%,
      rgba(8,12,17,.76) 55%,
      rgba(8,12,17,0) 72%);
  pointer-events:none;
  z-index:1; /* queda ENTRE el contenido y el planeta */
}

/* El contenido va arriba de la capa de contraste */
.hero-content{ position:relative; z-index:2; }

/* Planeta detrás de todo */
.hero-planet{
  position:absolute;
  left:50%; transform:translateX(-50%);
  top:-120px;
  width: clamp(420px, 52vw, 740px);
  opacity:.96; pointer-events:none;
  z-index:0; /* por debajo de .hero::after */
  filter: drop-shadow(0 50px 120px rgba(80,160,220,.18));
}
.hero-planet img{ width:100%; height:auto; display:block; }

/* Suaviza el corte inferior del planeta para que no tape secciones */
.hero-planet::after{
  content:""; position:absolute; inset:auto 0 -22%;
  height:46%;
  background: linear-gradient(to bottom,
    rgba(11,15,20,0) 0%,
    rgba(11,15,20,.75) 55%,
    rgba(11,15,20,1) 100%);
}

/* Tipografía: más definición encima del fondo */
.hero-title{
  margin:10px 0 6px;
  font-weight:800;
  letter-spacing:.3px;
  text-shadow:
    0 2px 0 rgba(0,0,0,.25),
    0 10px 30px rgba(0,0,0,.35),
    0 0 22px rgba(108,208,255,.15);
}
.hero-subtitle{
  margin:0 0 10px; opacity:.95;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}

/* Botones: un pelín más sólidos encima del planeta */
.hero-actions .btn{
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(21,32,43,.92), rgba(16,26,37,.92));
  border-color: rgba(255,255,255,.08);
}
.hero-actions .btn.primary{
  background: linear-gradient(135deg, rgba(70,178,255,.95), rgba(138,107,255,.95));
  color:#0d1116; font-weight:700;
}

/* Tarjetas debajo del hero, con leve elevación */
.feature.card{ backdrop-filter: blur(8px); background: rgba(19,25,32,.72); }

/* Responsive fino */
@media (max-width: 640px){
  .hero{ padding:36px 0 12px; }
  .hero-planet{ top:-70px; width:min(96vw,560px); }
  .hero::after{ height: clamp(220px, 38vh, 420px); }
}
/* ===== Barra legal fija (footer flotante) ===== */
:root{ --legalbar-h: 56px; }  /* alto aproximado de la barra */

#legalbar{
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);     /* centrado */
  z-index: 60;

  background: rgba(10,14,18,.86);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 14px;

  color: var(--muted);
  max-width: min(980px, 92vw);
  width: fit-content;

  opacity: 1;
  pointer-events: auto;
  transition: transform .25s ease, opacity .2s ease;
  will-change: transform, opacity;
}

#legalbar a{ color: var(--muted); text-decoration: underline; }

/* Deja espacio para que la barra no tape el footer */
.site-footer{ padding-bottom: calc(24px + var(--legalbar-h)); }

/* Si NO quieres verla en móvil, deja este @media.
   Si SÍ quieres que también aparezca en móvil, ELIMINA todo este bloque. */
@media (max-width: 768px){
  #legalbar{ display:none; }
}
