:root {
  --bg-main: #0b0f19;
  --bg-surface: #131b2e;
  --bg-card: #182238;
  --bg-subtle: #1e2a45;
  --bg-accent-glow: rgba(99, 102, 241, 0.15);
  
  --border-color: #273554;
  --border-glow: #3b82f6;
  
  --text-title: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  
  --brand-color: #3b82f6;
  --brand-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --brand-hover: #2563eb;
  --brand-light: rgba(59, 130, 246, 0.15);
  
  --accent-purple: #8b5cf6;
  --accent-gold: #f59e0b;
  --accent-gold-bg: rgba(245, 158, 11, 0.12);
  --accent-gold-border: rgba(245, 158, 11, 0.4);
  
  --font-family: 'Plus Jakarta Sans', 'Google Sans', 'Inter', -apple-system, sans-serif;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 100px;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 40px -15px rgba(59, 130, 246, 0.3);
  --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family: var(--font-family);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(139, 92, 246, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Header / Navbar Glassmorphism */
.navbar {
  background: rgba(19, 27, 46, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  letter-spacing: -0.02em;
}

.brand span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.nav-menu {
  display: flex;
  gap: 0.6rem;
}

.nav-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
}

.nav-menu a:hover {
  color: #ffffff;
  background-color: var(--bg-subtle);
}

/* Layout Principal */
.main-wrapper {
  max-width: 1140px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
}

@media (max-width: 880px) {
  .main-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Post Header / Estilo Hero Artículo */
.post-header {
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, var(--bg-surface) 0%, #17233d 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.post-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.post-meta {
  display: flex;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--brand-color);
  font-weight: 600;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.meta-item {
  background-color: var(--bg-subtle);
  color: #a5b4fc;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  border: 1px solid rgba(165, 180, 252, 0.15);
}

.meta-item i {
  margin-right: 0.45rem;
  color: var(--brand-color);
}

.post-header h1 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.25;
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
}

.lead-text {
  font-size: 1.12rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* Cards del Ranking */
.ranking-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.server-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.server-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* Tarjeta Destacada (#1 Glorium) */
.server-card.featured {
  border: 2px solid var(--brand-color);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(180deg, var(--bg-surface) 0%, #15223e 100%);
}

.card-top-bar {
  background-color: var(--bg-subtle);
  padding: 0.8rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.featured .card-top-bar {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  border-bottom-color: rgba(59, 130, 246, 0.4);
}

.badge-featured {
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-gradient);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.rank-number {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--brand-color);
  margin-left: auto;
}

.card-body {
  padding: 1.8rem 2rem;
}

.server-title-container {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1rem;
}

.server-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background-color: var(--bg-main);
  padding: 5px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.server-header-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0;
  line-height: 1.3;
}

.tag-list {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.tag {
  background-color: var(--bg-subtle);
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(147, 197, 253, 0.15);
}

.server-review {
  color: var(--text-body);
  font-size: 1rem;
  margin-bottom: 1.6rem;
  line-height: 1.7;
}

.server-review strong {
  color: #ffffff;
}

/* Acciones e IP */
.server-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-main);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  gap: 1rem;
  border: 1px solid var(--border-color);
}

@media (max-width: 580px) {
  .server-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.ip-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ip-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.ip-text {
  font-family: 'Roboto Mono', consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: #60a5fa;
  background-color: var(--bg-surface);
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

/* Botones Gaming Modernos */
.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--brand-color);
  color: #ffffff;
}

.btn-primary.full-width {
  width: 100%;
  justify-content: center;
}

/* Sección Guía */
.article-section {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 3.5rem;
  box-shadow: var(--shadow-card);
}

.article-section h2 {
  font-size: 1.55rem;
  color: var(--text-title);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.article-section h2 i {
  color: var(--brand-color);
}

.steps-list {
  margin-left: 1.5rem;
  margin-bottom: 1.8rem;
}

.steps-list li {
  margin-bottom: 0.8rem;
  color: var(--text-body);
}

.info-note {
  background-color: var(--bg-subtle);
  border-left: 4px solid var(--brand-color);
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.96rem;
  color: #93c5fd;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Sidebar Widgets Gaming */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.widget {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
}

.widget-highlight {
  border: 2px solid var(--brand-color);
  background: linear-gradient(180deg, var(--bg-surface) 0%, #162442 100%);
  box-shadow: var(--shadow-glow);
}

.widget-header {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget h3 {
  font-size: 1.3rem;
  color: var(--text-title);
  margin-bottom: 0.6rem;
}

.widget p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  line-height: 1.65;
}

.widget-ip {
  background-color: var(--bg-main);
  padding: 0.75rem;
  text-align: center;
  border-radius: var(--radius-md);
  margin-bottom: 1.4rem;
  font-weight: 700;
  border: 1px dashed rgba(96, 165, 250, 0.4);
}

.widget-ip code {
  color: #60a5fa;
  font-size: 1.15rem;
  font-family: 'Roboto Mono', monospace;
}

.widget h4 {
  font-size: 1.1rem;
  color: var(--text-title);
  margin-bottom: 1.2rem;
}

.widget-links {
  list-style: none;
}

.widget-links li {
  margin-bottom: 0.75rem;
}

.widget-links a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.2s;
}

.widget-links a i {
  color: var(--brand-color);
}

.widget-links a:hover {
  color: #60a5fa;
}

/* Footer Dark */
.footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  margin-top: 5rem;
  padding: 4rem 1.5rem 2.5rem;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 750px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  color: var(--text-title);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.footer-col p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.7rem;
}

.footer-col ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--brand-color);
}

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Toast flotante */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--bg-card);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  display: none;
  z-index: 9999;
  border: 1px solid var(--brand-color);
}

/* Banner de Aviso de Cookies */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 880px;
  background: rgba(19, 27, 46, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  padding: 1.4rem 1.8rem;
  z-index: 9990;
  display: none;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
}

@media (max-width: 650px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

.cookie-text {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.cookie-icon {
  font-size: 1.8rem;
  color: var(--brand-color);
}

.cookie-text p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.55;
}

.btn-cookie-accept {
  background: var(--brand-gradient);
  color: #ffffff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  transition: all 0.25s ease;
}

.btn-cookie-accept:hover {
  transform: scale(1.03);
}

