/* ==========================================================================
   Mu Manager PRO - Components & Layouts (components.css)
   Stitch Approved Ironforge — Texturas Nativas MU, Arte Épico y Biseles 3D
   ========================================================================== */

/* Barra Láser de Progreso */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #A68028, #EFD28D, #FEDF99, #EFD28D);
  box-shadow: 0 0 12px rgba(239, 210, 141, 0.9);
  z-index: 9999;
  transition: width 0.08s ease-out;
  pointer-events: none;
}

/* Container General */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   1. BOTONES NATIVOS DE MU ONLINE (100% Cobertura de Texturas)
   ========================================================================== */
.btn-mu-gold {
  background-image: var(--btn-big-normal);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  color: var(--gold-radiant) !important;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 2px #000;
  border: none;
  min-height: 44px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: filter var(--trans-fast), transform 0.08s ease;
}

.btn-mu-gold:hover {
  filter: brightness(1.15) drop-shadow(0 0 8px rgba(239, 210, 141, 0.3));
}

.btn-mu-gold:active {
  background-image: var(--btn-big-pressed);
  transform: translateY(1px);
}

.btn-mu-medium {
  background-image: var(--btn-med-normal);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  color: var(--gold-radiant) !important;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px #000;
  border: none;
  min-height: 38px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: filter var(--trans-fast), transform 0.08s ease;
}

.btn-mu-medium:hover {
  filter: brightness(1.12);
}

.btn-mu-medium:active {
  background-image: var(--btn-med-pressed);
  transform: translateY(1px);
}

.btn-mu-small {
  background-image: var(--btn-small-normal);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  color: var(--gold-radiant) !important;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px #000;
  border: none;
  height: 32px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: filter var(--trans-fast), transform 0.08s ease;
}

.btn-mu-small:hover {
  filter: brightness(1.12);
}

.btn-mu-small:active {
  background-image: var(--btn-small-pressed);
  transform: translateY(1px);
}

/* Botón de Piedra / Hierro Elevado para Acciones Secundarias */
.btn-mu-stone {
  background-color: var(--bg-surface-high);
  background-image: var(--bg-stone);
  color: var(--text-ivory) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-structural);
  box-shadow: var(--shadow-chiseled);
  min-height: 44px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: border-color var(--trans-fast), transform 0.08s ease;
}

.btn-mu-stone:hover {
  border-color: var(--gold-antique);
  color: var(--gold-radiant) !important;
  box-shadow: var(--shadow-chiseled), 0 0 10px rgba(239, 210, 141, 0.2);
}

.btn-mu-stone:active {
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.9);
  transform: translateY(1px);
}

/* ==========================================================================
   2. NAVBAR PRINCIPAL (Gothic Console Header)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #0E0F0E;
  background-image: var(--bg-stone);
  border-bottom: 2px solid var(--border-structural);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-antique);
  box-shadow: var(--shadow-chiseled);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px #000;
  line-height: 1.2;
}

.brand-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-silver);
  font-family: var(--font-mono);
  font-weight: 500;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--green-online);
  box-shadow: 0 0 6px var(--green-online);
}

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

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-silver);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--trans-fast);
}

.nav-link:hover {
  color: var(--gold-radiant);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--gold-primary);
  border-radius: 1px;
}

/* ==========================================================================
   3. SECCIÓN HERO DE ALTO IMPACTO (Con Lorencia & Emblema 3D MU)
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: 110px;
  padding-bottom: 60px;
  overflow: hidden;
  background-image: 
    linear-gradient(180deg, rgba(11, 12, 11, 0.75) 0%, rgba(11, 12, 11, 0.9) 65%, #0B0C0B 100%),
    url('../assets/art/bg_lorencia.jpg');
  background-size: cover;
  background-position: center top;
  border-bottom: 2px solid var(--border-structural);
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-mu-crest {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.hero-mu-crest-img {
  width: 170px;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(239, 210, 141, 0.45));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge-wrap {
  margin-bottom: 14px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(13, 14, 13, 0.85);
  background-image: var(--bg-stone);
  border: 1px solid var(--gold-antique);
  box-shadow: var(--shadow-chiseled), 0 0 14px rgba(239, 210, 141, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-ivory);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
}

.hero-title .gold-accent {
  color: var(--gold-primary);
  text-shadow: 0 0 14px rgba(239, 210, 141, 0.4);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-silver);
  line-height: 1.6;
  margin-bottom: 26px;
  max-width: 600px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-chips-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.hero-chip {
  background-color: rgba(26, 27, 26, 0.85);
  background-image: var(--bg-stone);
  border: 1px solid var(--border-structural);
  box-shadow: var(--shadow-chiseled);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-chip-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-radiant);
}

.hero-chip-lbl {
  font-size: 0.72rem;
  color: #B5AFA2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
}

/* ==========================================================================
   4. CHASSIS SMARTPHONE & VISTAS OFICIALES DE LA APK
   ========================================================================== */
.mockup-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 380px;
}


/* Selector de Pantallas Superior (Con texturas mu_tab_active / mu_tab_inactive) */
.device-screen-selector {
  display: flex;
  width: 100%;
  max-width: 380px;
  gap: 4px;
  margin-bottom: 8px;
}

.device-tab-btn {
  flex: 1;
  height: 34px;
  background-image: var(--tab-inactive);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: var(--text-silver);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: filter var(--trans-fast);
}

.device-tab-btn:hover {
  filter: brightness(1.1);
}

.device-tab-btn.active {
  background-image: var(--tab-active);
  color: var(--gold-radiant);
  font-weight: 800;
  text-shadow: 0 1px 2px #000;
}

/* Chasis Físico Android */
.android-device {
  width: 100%;
  max-width: 380px;
  background-color: #080908;
  border: 3px solid #333433;
  box-shadow: 
    0 0 0 1px #1B1C1B,
    0 16px 40px rgba(0, 0, 0, 0.95),
    0 0 25px rgba(239, 210, 141, 0.18);
  border-radius: 24px;
  padding: 10px;
  position: relative;
}

.android-camera-hole {
  width: 10px;
  height: 10px;
  background-color: #000;
  border-radius: 50%;
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: inset 0 0 2px #333;
}

.android-screen {
  background-color: var(--bg-canvas);
  background-image: var(--bg-stone);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-structural);
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

/* Barra de Estado Android */
.android-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 4px;
  font-size: 0.72rem;
  color: var(--text-silver);
  font-family: var(--font-mono);
  background: rgba(13, 14, 13, 0.75);
}

.status-icons {
  display: flex;
  gap: 6px;
  font-size: 0.7rem;
}

/* Header Oficial de la APK */
.apk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: var(--bg-deep);
  border-bottom: 2px solid var(--gold-dark);
  box-shadow: inset 0 1px 2px rgba(239, 210, 141, 0.15);
}

.apk-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.apk-header-icon {
  width: 26px;
  height: 26px;
  border: 1px solid var(--gold-antique);
  border-radius: var(--radius-xs);
}

.apk-header-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.apk-header-subtitle {
  font-size: 0.68rem;
  color: var(--text-dimmed);
  font-family: var(--font-mono);
}

.apk-header-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: var(--bg-surface-low);
  border: 1px solid var(--border-structural);
  padding: 3px 7px;
  border-radius: var(--radius-xs);
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--green-online);
  font-weight: 700;
}

.apk-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--green-online);
  box-shadow: 0 0 5px var(--green-online);
}

/* Banner de Licencia Oficial */
.apk-watermark-banner {
  background-color: var(--bg-surface-low);
  border-bottom: 1px solid var(--border-structural);
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--gold-primary);
  font-weight: 700;
}

.apk-pro-badge {
  background-color: var(--bg-surface-high);
  border: 1px solid var(--gold-dark);
  color: var(--gold-radiant);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  font-size: 0.62rem;
}

/* Contenedor de Vistas Dinámicas */
.apk-screen-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

.apk-view {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.apk-view.active {
  display: flex;
}

/* Estilos de Tarjetas Dentro del Mockup */
.apk-card {
  background-color: var(--bg-surface-panel);
  background-image: var(--bg-stone);
  border: 1px solid var(--border-structural);
  box-shadow: var(--shadow-chiseled);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.apk-card-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(239, 210, 141, 0.2);
  padding-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Grilla de Métricas Dashboard */
.apk-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.apk-metric-item {
  background-color: var(--bg-surface-low);
  border: 1px solid var(--border-structural);
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.7);
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  display: flex;
  flex-direction: column;
}

.apk-metric-lbl {
  font-size: 0.65rem;
  color: #B5AFA2;
  text-transform: uppercase;
  font-weight: 500;
}

.apk-metric-val {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-radiant);
}

.apk-metric-val.green {
  color: var(--green-online);
}

/* Filas de Actividad Reciente */
.apk-user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(76, 70, 58, 0.4);
  font-size: 0.74rem;
}

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

.apk-user-name {
  font-weight: 700;
  color: var(--text-ivory);
}

.apk-user-sub {
  font-size: 0.66rem;
  color: #B5AFA2;
}

.apk-badge-tag {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.apk-badge-tag.gold {
  background: rgba(239, 210, 141, 0.15);
  border: 1px solid var(--gold-antique);
  color: var(--gold-radiant);
}

.apk-badge-tag.green {
  background: rgba(98, 230, 66, 0.15);
  border: 1px solid var(--green-online);
  color: var(--green-online);
}

.apk-badge-tag.red {
  background: rgba(122, 46, 40, 0.25);
  border: 1px solid var(--danger-iron);
  color: #FFAAA0;
}

/* Vista Personaje */
.apk-char-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.apk-char-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-antique);
  box-shadow: var(--shadow-chiseled);
  object-fit: cover;
}

.apk-stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 0.72rem;
}

.apk-stat-name {
  width: 60px;
  color: var(--text-silver);
  font-weight: 600;
}

.apk-stat-bar-bg {
  flex: 1;
  height: 8px;
  background-color: var(--bg-deep);
  border: 1px solid var(--border-structural);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.apk-stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #A68028, #EFD28D);
}

.apk-stat-num {
  width: 42px;
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold-radiant);
}

/* Vista Paperdoll 16b (Slots con Imágenes Reales) */
.apk-paperdoll-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.apk-slot {
  aspect-ratio: 1;
  background-color: var(--bg-deep);
  background-image: var(--slot-box);
  background-size: 100% 100%;
  border: 1px solid var(--border-structural);
  border-radius: var(--radius-xs);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.apk-slot.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.apk-slot-img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.apk-slot-level {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.6rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--gold-radiant);
  background: rgba(0, 0, 0, 0.7);
  padding: 1px 3px;
  border-radius: 1px;
}

/* Tooltip Ítem Legendario */
.apk-item-tooltip {
  background-color: #0A0B0A;
  border: 1px solid var(--border-structural);
  box-shadow: inset 1px 1px 0 rgba(239, 210, 141, 0.15);
  padding: 8px;
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  line-height: 1.4;
}

.apk-tooltip-name {
  color: var(--mu-excellent);
  font-weight: 700;
  font-size: 0.76rem;
  text-shadow: 0 0 6px rgba(63, 207, 142, 0.35);
  margin-bottom: 2px;
}

.apk-tooltip-opt {
  color: var(--mu-excellent);
  font-size: 0.68rem;
}

.apk-tooltip-harmony {
  color: var(--mu-harmony);
  font-size: 0.68rem;
}

.apk-hex-preview {
  margin-top: 4px;
  padding: 4px 6px;
  background: #000;
  border: 1px dashed var(--border-structural);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--gold-primary);
  word-break: break-all;
}

/* Vista Banco de Joyas */
.apk-jewels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.apk-jewel-cell {
  background-color: var(--bg-surface-low);
  border: 1px solid var(--border-structural);
  border-radius: var(--radius-xs);
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.apk-jewel-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.apk-jewel-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-radiant);
}

.apk-jewel-name {
  font-size: 0.65rem;
  color: var(--text-silver);
  text-transform: uppercase;
  font-weight: 500;
}

/* Barra de Navegación Inferior (BottomTabs Oficiales) */
.apk-bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 52px;
  background-color: var(--bg-deep);
  border-top: 2px solid var(--gold-dark);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.8);
}

.apk-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 2px;
  color: var(--text-dimmed);
  transition: all var(--trans-fast);
}

.apk-nav-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.6;
}

.apk-nav-label {
  font-size: 0.62rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.apk-nav-item.active {
  background-color: var(--bg-surface-panel);
  border-top: 2px solid var(--gold-primary);
  color: var(--gold-radiant);
}

.apk-nav-item.active .apk-nav-icon {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(239, 210, 141, 0.5));
}

.apk-nav-item.active .apk-nav-label {
  font-weight: 800;
}

/* ==========================================================================
   5. SECCIÓN SALA DE LOS HÉROES (Showcase Artístico de Razas de MU)
   ========================================================================== */
.hero-classes-showcase {
  background-color: #0E0F0E;
  background-image: 
    linear-gradient(180deg, rgba(14, 15, 14, 0.92) 0%, rgba(14, 15, 14, 0.82) 50%, #0E0F0E 100%),
    url('../assets/art/hero_characters.jpg');
  background-size: cover;
  background-position: center;
  border-top: 2px solid var(--border-structural);
  border-bottom: 2px solid var(--border-structural);
  padding: 60px 0;
  position: relative;
}

.hero-classes-selector {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-class-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background-image: var(--tab-inactive);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: none;
  padding: 6px 18px;
  height: 38px;
  border-radius: var(--radius-sm);
  color: var(--text-silver);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: filter var(--trans-fast), transform 0.08s ease;
}

.hero-class-tab img {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--gold-dark);
}

.hero-class-tab:hover {
  filter: brightness(1.15);
  color: var(--gold-radiant);
}

.hero-class-tab.active {
  background-image: var(--tab-active);
  color: var(--gold-radiant);
  font-weight: 800;
  text-shadow: 0 1px 2px #000;
  box-shadow: 0 0 14px rgba(239, 210, 141, 0.35);
}

.hero-class-display-card {
  max-width: 860px;
  margin: 0 auto;
  background-color: rgba(22, 23, 22, 0.94);
  background-image: var(--bg-stone);
  border: 1px solid var(--gold-antique);
  box-shadow: var(--shadow-chiseled), 0 16px 40px rgba(0, 0, 0, 0.95);
  border-radius: var(--radius-sm);
  padding: 30px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  align-items: center;
  position: relative;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.hero-class-avatar-frame {
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--bg-deep);
  border: 2px solid var(--gold-antique);
  box-shadow: var(--shadow-chiseled), 0 0 20px rgba(239, 210, 141, 0.25);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.hero-class-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-class-info-pane h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.hero-class-subtitle {
  font-size: 0.85rem;
  color: #D2C9B8;
  font-family: var(--font-mono);
  margin-bottom: 14px;
  display: block;
}

.hero-class-desc {
  font-size: 0.95rem;
  color: var(--text-ivory);
  line-height: 1.65;
  margin-bottom: 18px;
}

.hero-class-app-power {
  background-color: var(--bg-deep);
  border: 1px solid var(--border-structural);
  border-left: 3px solid var(--gold-primary);
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  color: var(--text-ivory);
}

.hero-class-app-power strong {
  color: var(--gold-radiant);
}

/* ==========================================================================
   6. SECCIÓN DE FUNCIONES CLAVE (4 Pilares con Emblemas Oficiales)
   ========================================================================== */
.section {
  padding: 60px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-ivory);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-silver);
  line-height: 1.55;
}

.features-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-panel {
  background-color: #141514;
  background-image: 
    linear-gradient(180deg, rgba(26, 28, 26, 0.90) 0%, rgba(14, 15, 14, 0.96) 100%),
    var(--bg-stone);
  border: 1px solid var(--border-structural);
  box-shadow: var(--shadow-chiseled), 0 8px 24px rgba(0, 0, 0, 0.85);
  border-radius: var(--radius-sm);
  padding: 24px;
  position: relative;
  transition: transform var(--trans-fast), border-color var(--trans-fast);
}

.feature-panel:hover {
  transform: translateY(-3px);
  border-color: var(--gold-antique);
  box-shadow: var(--shadow-panel), var(--shadow-gold);
}

.feature-panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.feature-panel-icon {
  width: 64px;
  height: 64px;
  background: radial-gradient(circle at 50% 40%, rgba(35, 38, 35, 0.95), rgba(10, 11, 10, 0.98));
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.9), inset 0 0 8px rgba(0, 0, 0, 0.7), 0 4px 12px rgba(0, 0, 0, 0.75);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.feature-panel-icon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.9));
  transition: transform var(--trans-fast), filter var(--trans-fast);
}

.feature-panel:hover .feature-panel-icon {
  border-color: var(--gold-radiant);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 16px rgba(239, 210, 141, 0.4);
}

.feature-panel:hover .feature-panel-icon img {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 8px rgba(239, 210, 141, 0.35));
}

.feature-panel-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 1px #000;
}

.feature-panel-desc {
  font-size: 0.94rem;
  color: var(--text-ivory);
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   7. SECCIÓN MODOS DE CONEXIÓN (Gateway vs Conector Local)
   ========================================================================== */
.connection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.conn-panel {
  background-color: #141514;
  background-image: 
    linear-gradient(180deg, rgba(26, 28, 26, 0.90) 0%, rgba(14, 15, 14, 0.96) 100%),
    var(--bg-stone);
  border: 1px solid var(--border-structural);
  box-shadow: var(--shadow-chiseled), 0 8px 24px rgba(0, 0, 0, 0.85);
  border-radius: var(--radius-sm);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.conn-panel.recommended {
  border-color: var(--gold-antique);
  box-shadow: var(--shadow-chiseled), 0 0 16px rgba(239, 210, 141, 0.18);
}

.conn-badge-top {
  position: absolute;
  top: -12px;
  right: 20px;
  background-color: var(--bg-deep);
  border: 1px solid var(--gold-antique);
  color: var(--gold-radiant);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px #000;
}

.conn-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 1px #000;
}

.conn-desc {
  font-size: 0.94rem;
  color: var(--text-ivory);
  line-height: 1.6;
  margin-bottom: 18px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.conn-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.conn-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-ivory);
}

.conn-list-item strong {
  color: var(--gold-primary);
}

.conn-check-icon {
  color: var(--green-online);
  font-weight: 800;
  flex-shrink: 0;
}

/* ==========================================================================
   8. ZONA DE DESCARGAS & QR (Acción Rápida)
   ========================================================================== */
.downloads-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.dl-card-main {
  background-color: #141514;
  background-image: 
    linear-gradient(180deg, rgba(26, 28, 26, 0.90) 0%, rgba(14, 15, 14, 0.96) 100%),
    var(--bg-stone);
  border: 1px solid var(--gold-antique);
  box-shadow: var(--shadow-chiseled), var(--shadow-gold);
  border-radius: var(--radius-sm);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dl-card-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dl-card-sub {
  background-color: #141514;
  background-image: 
    linear-gradient(180deg, rgba(26, 28, 26, 0.90) 0%, rgba(14, 15, 14, 0.96) 100%),
    var(--bg-stone);
  border: 1px solid var(--border-structural);
  box-shadow: var(--shadow-chiseled), 0 8px 24px rgba(0, 0, 0, 0.85);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.dl-title-group {
  margin-bottom: 16px;
}

.dl-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-radiant);
  background: rgba(239, 210, 141, 0.15);
  border: 1px solid var(--gold-dark);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.dl-main-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-ivory);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dl-main-title .version-num {
  color: var(--gold-primary);
}

.dl-desc {
  font-size: 0.94rem;
  color: var(--text-ivory);
  line-height: 1.6;
  margin-bottom: 20px;
}

.dl-meta-box {
  background-color: var(--bg-deep);
  border: 1px solid var(--border-structural);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  margin-bottom: 22px;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dl-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dl-meta-lbl {
  color: #B5AFA2;
  font-weight: 500;
}

.dl-meta-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold-primary);
}

.dl-actions-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dl-mirror-link {
  font-size: 0.82rem;
  color: var(--text-silver);
  text-align: center;
}

.dl-mirror-link a {
  color: var(--gold-primary);
  text-decoration: underline;
  font-weight: 600;
}

/* Código QR */
.qr-card-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qr-code-wrapper {
  background: #FFF;
  padding: 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-wrapper svg {
  width: 100% !important;
  height: 100% !important;
}

.qr-info-text {
  font-size: 0.82rem;
  color: var(--text-silver);
  line-height: 1.45;
}

/* ==========================================================================
   9. PREGUNTAS FRECUENTES (FAQ Compacto)
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: #141514;
  background-image: 
    linear-gradient(180deg, rgba(26, 28, 26, 0.90) 0%, rgba(14, 15, 14, 0.96) 100%),
    var(--bg-stone);
  border: 1px solid var(--border-structural);
  box-shadow: var(--shadow-chiseled), 0 4px 14px rgba(0, 0, 0, 0.85);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--trans-fast);
}

.faq-item.active {
  border-color: var(--gold-antique);
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-ivory);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: transparent;
  border: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95);
}

.faq-question:hover {
  color: var(--gold-radiant);
  text-shadow: 0 1px 2px #000, 0 0 8px rgba(239, 210, 141, 0.35);
}

.faq-icon {
  font-size: 0.75rem;
  color: var(--gold-primary);
  transition: transform var(--trans-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.92rem;
  color: var(--text-ivory);
  line-height: 1.6;
  border-top: 1px solid rgba(76, 70, 58, 0.4);
  padding-top: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer strong {
  color: var(--gold-primary);
}

/* ==========================================================================
   10. BANNER DE SOPORTE & DISCORD
   ========================================================================== */
.support-banner {
  background-color: #141514;
  background-image: 
    linear-gradient(180deg, rgba(26, 28, 26, 0.90) 0%, rgba(14, 15, 14, 0.96) 100%),
    var(--bg-stone);
  border: 1px solid var(--gold-antique);
  box-shadow: var(--shadow-chiseled), 0 0 24px rgba(239, 210, 141, 0.18);
  border-radius: var(--radius-sm);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
}

.support-info h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 1px #000;
}

.support-info p {
  font-size: 0.94rem;
  color: var(--text-ivory);
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.support-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   11. FOOTER GÓTICO OFICIAL
   ========================================================================== */
.footer {
  background-color: #080808;
  background-image: var(--bg-stone);
  border-top: 2px solid var(--border-structural);
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-cornice {
  width: 100%;
  height: 20px;
  background-image: var(--divider-gold);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-bottom: 24px;
  opacity: 0.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 0.82rem;
  color: var(--text-silver);
  line-height: 1.5;
  margin-bottom: 10px;
}

.footer-legal-notice {
  font-size: 0.72rem;
  color: var(--text-dimmed);
  line-height: 1.4;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-ivory);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-silver);
}

.footer-links-list a:hover {
  color: var(--gold-radiant);
}

.footer-bottom {
  border-top: 1px solid rgba(76, 70, 58, 0.4);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-dimmed);
  font-family: var(--font-mono);
}

/* ==========================================================================
   12. MODALES & TOASTS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background-color: var(--bg-surface-panel);
  background-image: var(--bg-stone);
  border: 1px solid var(--gold-antique);
  box-shadow: var(--shadow-chiseled), 0 20px 50px rgba(0, 0, 0, 0.95);
  border-radius: var(--radius-sm);
  max-width: 620px;
  width: 100%;
  padding: 26px;
  max-height: 85vh;
  overflow-y: auto;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--bg-deep);
  background-image: var(--bg-stone);
  border: 1px solid var(--gold-primary);
  box-shadow: var(--shadow-chiseled), var(--shadow-gold);
  color: var(--gold-radiant);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 3000;
  display: none;
  animation: slideToast 0.25s ease-out;
}

.toast.show {
  display: block;
}

@keyframes slideToast {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   13. BANNER DE ALMACENAMIENTO TÉCNICO Y CONSENTIMIENTO DE PRIVACIDAD
   ========================================================================== */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 820px;
  background-color: var(--bg-surface-panel);
  background-image: var(--bg-stone);
  border: 1px solid var(--border-structural);
  border-top: 2px solid var(--gold-antique);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95);
  z-index: 9998;
  animation: slideToast 0.3s ease-out;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-icon-wrap {
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-text {
  flex: 1;
  min-width: 260px;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-silver);
  line-height: 1.5;
}

.cookie-actions {
  flex-shrink: 0;
}

