/* ══════════════════════════════════════════════════════════════
   Mu Sephirot — Global Design System
   Dark Fantasy Medieval Premium Theme
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* ── Colors ── */
  --bg-base: #06100f;
  --bg-deep: #020204;
  --bg-card: #0f1520;
  --bg-card-hover: #141c2a;
  --bg-sidebar: #080c14;
  --bg-overlay: rgba(5, 5, 8, .92);

  --cyan: #00d4ff;
  --cyan-bright: #00f5ff;
  --cyan-dim: rgba(0, 212, 255, .12);
  --cyan-glow: rgba(0, 212, 255, .25);
  --cyan-border: rgba(0, 212, 255, .18);

  --text: #e8eaf0;
  --text-secondary: #a0a8bc;
  --text-muted: #5a6480;

  --accent-gold: #d4a017;
  --danger: #ff4757;
  --success: #2ed573;
  --warning: #ffa502;

  /* ── Typography ── */
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;

  /* ── Spacing ── */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;

  /* ── Borders ── */
  --border: 1px solid var(--cyan-border);

  /* ── Shadows / Glows ── */
  --glow-sm: 0 0 12px rgba(0, 212, 255, .2);
  --glow-md: 0 0 24px rgba(0, 212, 255, .3);
  --glow-lg: 0 0 40px rgba(0, 212, 255, .15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, .6);
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ── Divisor Spark global (reemplaza sec-divider y h-px w-24) ── */
@keyframes sparkPulse {

  0%,
  100% {
    opacity: .5;
    box-shadow: 0 0 10px 2px rgba(0, 242, 255, .5);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 24px 6px rgba(0, 242, 255, .9), 0 0 48px 12px rgba(0, 212, 255, .25);
  }
}

.spark-divider {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(0, 242, 255, .15) 20%,
      rgba(0, 242, 255, .7) 50%,
      rgba(0, 242, 255, .15) 80%,
      transparent 100%);
}

.spark-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  background: #00f2ff;
  border-radius: 50%;
  animation: sparkPulse 3s ease-in-out infinite;
}

body {
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background texture ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(0, 212, 255, .07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 90% 80%, rgba(0, 100, 180, .05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Links ── */
a {
  color: var(--cyan);
  text-decoration: none;
  transition: color .15s;
}

a:hover {
  color: var(--cyan-bright);
}

/* ── Headings ── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

/* ── Layout ── */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

.main-content-area {
  flex: 1;
  padding-top: 24px;
  padding-bottom: 40px;
  position: relative;
  z-index: 1;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

/* ── Section titles ── */
.section-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-bottom: 10px;
  margin-bottom: 18px;
  position: relative;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cyan);
  color: #000;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--cyan-bright);
  box-shadow: var(--glow-md);
  transform: translateY(-1px);
  color: #000;
}

.btn-outline {
  background: transparent;
  border-color: var(--cyan-border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--cyan);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* ── Forms ── */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(8, 12, 20, .9);
  border: 1px solid var(--cyan-border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, .1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.badge-cyan {
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid var(--cyan-border);
}

.badge-gold {
  background: rgba(212, 160, 23, .15);
  color: var(--accent-gold);
  border: 1px solid rgba(212, 160, 23, .3);
}

.badge-success {
  background: rgba(46, 213, 115, .12);
  color: var(--success);
  border: 1px solid rgba(46, 213, 115, .25);
}

.badge-danger {
  background: rgba(255, 71, 87, .12);
  color: var(--danger);
  border: 1px solid rgba(255, 71, 87, .25);
}

/* ── Tables ── */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: var(--border);
}

.mu-table {
  width: 100%;
  border-collapse: collapse;
}

.mu-table thead tr {
  background: rgba(0, 212, 255, .05);
}

.mu-table th {
  padding: 11px 14px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  border-bottom: 1px solid var(--cyan-border);
  white-space: nowrap;
}

.mu-table td {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  transition: background .1s;
}

.mu-table tr:hover td {
  background: rgba(0, 212, 255, .04);
}

.mu-table tr:last-child td {
  border-bottom: none;
}

/* ── Rank badge ── */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
}

.rank-1 {
  background: linear-gradient(135deg, #d4a017, #f5c518);
  color: #000;
  box-shadow: 0 0 10px rgba(212, 160, 23, .5);
}

.rank-2 {
  background: linear-gradient(135deg, #8a9bb0, #b0bec5);
  color: #000;
}

.rank-3 {
  background: linear-gradient(135deg, #8b4513, #cd7f32);
  color: #fff;
}

.rank-n {
  background: rgba(255, 255, 255, .08);
  color: var(--text-muted);
}

/* ── Loader ── */
.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--cyan-border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Online dot ── */
.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .6;
    transform: scale(.85);
  }
}

/* ── Glow line ── */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  margin: 24px 0;
  opacity: .4;
}

.divider {
  height: 1px;
  background: var(--cyan-border);
  margin: 20px 0;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, .2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, .4);
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 8, .95);
  border-bottom: 1px solid rgba(0, 212, 255, .15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color .2s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 28px;
  color: #00d4ff;
  text-shadow: 0 0 12px rgba(0, 212, 255, .6);
  line-height: 1;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
  line-height: 1;
}

.logo-text span {
  color: var(--cyan);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.main-nav a {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #a0a8bc;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--cyan);
  background: rgba(0, 212, 255, .08);
}

.main-nav .nav-highlight a {
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, .25);
  padding: 5px 14px;
}

.main-nav .nav-highlight a:hover {
  background: rgba(0, 212, 255, .12);
  box-shadow: 0 0 12px rgba(0, 212, 255, .2);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #a0a8bc;
  border-radius: 2px;
  transition: all .2s;
}

.mobile-menu {
  display: none;
  padding: 12px 16px;
  border-top: 1px solid rgba(0, 212, 255, .1);
  background: rgba(8, 12, 20, .98);
}

.mobile-menu.open {
  display: block;
}

.mobile-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .5px;
  color: #a0a8bc;
  text-decoration: none;
  text-transform: uppercase;
}

.mobile-nav a:hover {
  color: var(--cyan);
  background: rgba(0, 212, 255, .07);
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════ */
.sidebar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-card {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.sidebar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, .3), transparent);
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
}

.sidebar-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  font-size: 13px;
}

.sidebar-row:last-child {
  border-bottom: none;
}

.sidebar-row-label {
  color: var(--text-muted);
}

.sidebar-row-value {
  color: var(--text);
  font-family: var(--font-heading);
}

.sidebar-row-value.cyan {
  color: var(--cyan);
  font-weight: 600;
}

.login-btn {
  width: 100%;
  background: var(--cyan);
  color: #000;
  border: none;
  padding: 9px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .5px;
  transition: all .2s;
}

.login-btn:hover {
  background: var(--cyan-bright);
  box-shadow: var(--glow-md);
}

.login-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.login-error {
  background: rgba(255, 71, 87, .1);
  border: 1px solid rgba(255, 71, 87, .25);
  color: var(--danger);
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 10px;
}

.user-welcome {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.user-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 4px;
}

.user-coins {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.user-actions {
  display: flex;
  gap: 8px;
}

.user-actions a,
.user-actions button {
  flex: 1;
  text-align: center;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all .15s;
}

.btn-panel {
  background: rgba(0, 212, 255, .1);
  border: 1px solid rgba(0, 212, 255, .2);
  color: var(--cyan);
}

.btn-panel:hover {
  background: rgba(0, 212, 255, .2);
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(255, 71, 87, .25);
  color: var(--danger);
}

.btn-logout:hover {
  background: rgba(255, 71, 87, .1);
}

/* ── Event row ── */
.event-row {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  font-size: 12px;
}

.event-row:last-child {
  border-bottom: none;
}

.event-name {
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2px;
}

.event-schedule {
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   SLIDER
   ═══════════════════════════════════════════════════════════════ */
.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 16/5;
  min-height: 200px;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1628 0%, #080d18 50%, #050810 100%);
  transition: opacity .5s ease;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 212, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 212, 255, .04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 24px 32px;
}

.hero-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: .8;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 10px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .8);
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan);
  color: #000;
  padding: 10px 24px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none;
  width: fit-content;
  transition: all .2s;
}

.hero-cta:hover {
  background: var(--cyan-bright);
  box-shadow: 0 0 20px rgba(0, 212, 255, .4);
  color: #000;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .5);
  border: 1px solid rgba(0, 212, 255, .2);
  color: var(--cyan);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all .2s;
}

.slider-arrow:hover {
  background: rgba(0, 212, 255, .15);
}

.slider-arrow.prev {
  left: 12px;
}

.slider-arrow.next {
  right: 12px;
}

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.slider-dot {
  height: 8px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  padding: 0;
  background: rgba(255, 255, 255, .2);
  width: 8px;
}

.slider-dot.active {
  background: var(--cyan);
  width: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   NEWS SECTION
   ═══════════════════════════════════════════════════════════════ */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.news-card {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.news-card:hover {
  border-color: rgba(0, 212, 255, .35);
  transform: translateY(-2px);
  box-shadow: var(--glow-sm);
}

.news-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(0, 212, 255, .05), rgba(0, 50, 100, .1));
}

.news-card-body {
  padding: 14px;
}

.news-card-category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.news-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.news-card-summary {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.news-card-date {
  font-size: 11px;
  color: var(--text-muted);
}

.news-featured {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: all .2s;
  text-decoration: none;
}

.news-featured:hover {
  border-color: rgba(0, 212, 255, .35);
  box-shadow: var(--glow-sm);
}

.news-featured-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(0, 212, 255, .08), rgba(0, 50, 100, .15));
}

.news-featured-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: #06080e;
  border-top: 1px solid rgba(0, 212, 255, .12);
  padding: 32px 0 20px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 10px;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 260px;
}

.footer-section-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color .15s;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-time-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 2px;
}

.footer-time-value {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.footer-time-local {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 212, 255, .08);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #3a4260;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — breakpoint principal 989px
   ═══════════════════════════════════════════════════════════════ */

/* ── Herencia de 900px (mantener) ── */
@media (max-width: 989px) {
  .main-grid {
    grid-template-columns: 1fr !important;
  }

  .sidebar-col {
    order: -1;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .news-featured {
    grid-template-columns: 1fr;
  }

  .news-featured-img {
    min-height: 160px;
  }

  /* ── Padding general ── */
  main,
  .main-content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* ── Tailwind grid utilities → 1 col ── */
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4,
  .md\:grid-cols-2,
  .md\:grid-cols-3,
  .md\:grid-cols-4 {
    grid-template-columns: 1fr !important;
  }

  /* ── Flex rows → columna ── */
  .md\:flex-row {
    flex-direction: column !important;
  }

  /* ── Padding horizontal en páginas ── */
  .md\:px-\[50px\],
  .px-\[50px\] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* ── Tipografía fluida ── */
  .text-h1,
  .font-h1 {
    font-size: clamp(26px, 5vw, 48px) !important;
  }

  .text-h2,
  .font-h2 {
    font-size: clamp(20px, 4vw, 32px) !important;
  }

  .text-h3,
  .font-h3 {
    font-size: clamp(16px, 3vw, 24px) !important;
  }

  /* ── Home sections ── */
  .home-section {
    padding: 60px 20px !important;
  }

  /* ── Tablas con scroll horizontal ── */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ── Ocultar columnas opcionales en tablas de ranking ── */
  .rank-hide-mob {
    display: none !important;
  }

  /* ── Cards en flex col ── */
  .md\:col-span-2 {
    grid-column: span 1 !important;
  }

  /* ── Páginas internas: contenedores internos ── */
  /* Noticias / Changelogs / Perfil */
  .max-w-3xl,
  .max-w-4xl {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Changelogs: timeline centralizado → left-aligned */
  .md\:left-1\/2 {
    left: 0 !important;
    transform: none !important;
  }

  .md\:flex-row-reverse {
    flex-direction: column !important;
  }

  .md\:w-1\/2 {
    width: 100% !important;
  }

  .md\:pl-8,
  .md\:pr-8 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hidden.md\:block {
    display: none !important;
  }

  /* ocultar fecha lateral en timeline */

  /* Donaciones: calculator y payment cards */
  .crystalline-border.p-8 {
    padding: 16px !important;
  }

  /* Login / Registro: centrar contenido */
  .min-h-screen.pt-28 {
    padding-top: 100px !important;
  }

  /* Descargas: card de download */
  .space-y-12>*+* {
    margin-top: 32px !important;
  }

  /* Personaje: stat grids */
  .grid-cols-2.gap-4 {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    aspect-ratio: 16/7;
  }

  /* Reducir padding en móvil pequeño */
  .home-section {
    padding: 40px 16px !important;
  }

  .p-6 {
    padding: 14px !important;
  }

  .p-8 {
    padding: 16px !important;
  }

  .p-10 {
    padding: 16px !important;
  }

  .p-12 {
    padding: 20px !important;
  }

  /* Texto más pequeño en mobile pequeño */
  .text-lg {
    font-size: 15px !important;
  }

  .text-xl {
    font-size: 16px !important;
  }
}

/* ── News inline view (homepage featured) ── */
.news-inline-view {}

.news-body-inline p {
  margin-bottom: 14px;
}

.news-body-inline h1,
.news-body-inline h2,
.news-body-inline h3 {
  font-family: var(--font-heading);
  color: var(--text);
  margin: 20px 0 10px;
}

.news-body-inline img {
  max-width: 100%;
  border-radius: var(--radius-lg);
}

.news-body-inline ul,
.news-body-inline ol {
  margin: 8px 0 14px 20px;
}

.news-body-inline li {
  margin-bottom: 4px;
}

.news-body-inline a {
  color: var(--cyan);
}

.news-body-inline blockquote {
  border-left: 3px solid var(--cyan-border);
  padding: 8px 16px;
  margin: 16px 0;
  background: var(--cyan-dim);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  color: var(--text-muted);
}

.news-body-inline code {
  background: rgba(0, 0, 0, .4);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--cyan);
}

/* ═══════════════════════════════════════════════════════════════
   NEWS ARTICLE — shared by homepage featured + single view
   ═══════════════════════════════════════════════════════════════ */
.news-article {
  max-width: 780px;
}

.news-category-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.news-article-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 8px;
}

.news-article-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.news-article-cover {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  margin-bottom: 24px;
}

.news-article-summary {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  padding-left: 16px;
  margin-bottom: 24px;
  border-left: 3px solid var(--cyan-border);
}

.news-article-body {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.news-article-body p {
  margin-bottom: 14px;
}

.news-article-body h1,
.news-article-body h2,
.news-article-body h3 {
  font-family: var(--font-heading);
  color: var(--text);
  margin: 22px 0 10px;
  line-height: 1.2;
}

.news-article-body h2 {
  font-size: 22px;
}

.news-article-body h3 {
  font-size: 18px;
}

.news-article-body img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  margin: 12px 0;
}

.news-article-body ul,
.news-article-body ol {
  margin: 10px 0 14px 22px;
}

.news-article-body li {
  margin-bottom: 5px;
}

.news-article-body a {
  color: var(--cyan);
}

.news-article-body blockquote {
  border-left: 3px solid var(--cyan-border);
  padding: 10px 20px;
  margin: 18px 0;
  background: var(--cyan-dim);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  color: var(--text-muted);
}

.news-article-body code {
  background: rgba(0, 0, 0, .4);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--cyan);
}

.news-article-body pre {
  background: rgba(0, 0, 0, .4);
  padding: 16px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  border: 1px solid var(--cyan-border);
  margin: 14px 0;
}

.news-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}

.news-article-body th,
.news-article-body td {
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 8px 12px;
  text-align: left;
}

.news-article-body th {
  background: var(--bg-card-hover);
  color: var(--text);
}