/* ===================== VARIABLES ===================== */
:root {
  --bg: #0a0a0a;              /* fondo oscuro */
  --card: #1c1c1c;            /* paneles oscuros */
  --glass: #3b2f2f99;         /* efecto vidrio bronceado */
  --text: #f5e6c4;            /* texto dorado suave */
  --muted: #8c7853;           /* bronce apagado */
  --primary: #cd7f32;         /* bronce vivo */
  --primary-2: #d4af37;       /* dorado antiguo */
  --accent: #c5a05a;          /* acento dorado */
  --danger: #a94442;          /* rojo oxidado */
  --border: #5c4033;          /* borde bronce oscuro */
  --shadow: 0 20px 40px rgba(0,0,0,.6);

  --primary-color: #cd7f32;   /* bronce */
  --secondary-color: #8c7853; /* bronce apagado */
}

/* ===================== BASE ===================== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  height: 100%;
  background: url('/assets/video-bg.mp4') no-repeat center center fixed;
  background-size: cover;
  color: var(--text);
  font-family: 'Inter', system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
.video-background-wrapper {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.video-background-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

/* Resplandor bronceado en los bordes */
.video-glow-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  box-shadow:
    inset 0 0 120px rgba(92, 58, 25, 0.699),
    inset 0 0 240px rgba(51, 36, 29, 0.507);
}

/* Asegura que el contenido esté encima */
body, header, main, footer, .container, .hero-section {
  position: relative;
  z-index: 1;
}



/* ===================== LAYOUT ===================== */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
main.content { padding: 32px 0; }

/* ===================== GLASS CORE ===================== */
.glass {
  background: linear-gradient(180deg, var(--glass), transparent);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px) saturate(120%);
  box-shadow: var(--shadow);
  border-radius: 14px;
}

/* ===================== GAME HEADER ===================== */
.game-header {
  background: linear-gradient(90deg, #1c1c1c, #0a0a0a);
  border-bottom: 2px solid var(--primary-color);
  box-shadow: 0 2px 12px rgba(0,0,0,0.8);
}
.game-header .navbar { padding: 0.75rem 1rem; }
.game-logo { height: 48px; width: auto; transition: transform 0.3s ease; }
.game-logo:hover { transform: scale(1.05); }

/* Nav Links */
.navbar-dark .navbar-nav .nav-link {
  color: #eee; font-weight: 600; padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}
.navbar-dark .navbar-nav .nav-link p {
  margin: 0; font-size: 0.75rem; color: #797979; font-weight: 400;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--accent);
  text-shadow: 0 0 6px #000; }

/* CTA Buttons */
.navbar-dark .navbar-nav .nav-link.cta {
  color: #fff; background: var(--primary-color);
  border-radius: 4px; margin-left: 8px;
}
.navbar-dark .navbar-nav .nav-link.cta:hover { background: #fff; color: var(--primary-color); }
.navbar-dark .navbar-nav .nav-link.cta-danger {
  color: #fff; background: #dc3545;
  border-radius: 4px; margin-left: 8px;
}
.navbar-dark .navbar-nav .nav-link.cta-danger:hover { background: #fff; color: #dc3545; }

/* Theme Switch */
.language-switch { font-size: 0.9rem; color: #ccc; transition: color 0.3s ease; }
.language-switch:hover { color: var(--primary-color); }

/* Navbar Toggler */
.navbar-toggler { border: none; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,0.8%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ===================== HERO ===================== */
.hero-section {
  position: relative;
  padding: 2rem 0;
  background: rgba(94, 74, 51, 0.452); /* capa translúcida */
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid rgba(90, 67, 42, 0.418);
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.05), 0 0 40px rgba(205, 127, 50, 0.2);
  border-radius: 16px;
  background-image: linear-gradient(rgba(59, 41, 25, 0.541), rgba(19, 18, 18, 0.445)), url('/assets/img/header-bg.jpg');
  background-size: cover;
  background-position: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  overflow: hidden;
}
/* Efecto cristalizado para el slider */
#heroSlider {
  background: rgba(255, 255, 255, 0.05); /* capa translúcida */
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.05),
              0 0 40px rgba(205, 127, 50, 0.25); /* resplandor bronceado */
  padding: 1rem;
}

/* Ajuste de imágenes dentro del slider */
#heroSlider .carousel-item img {
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* Indicadores con estilo cristal */
#heroSlider .carousel-indicators button {
  background-color: rgba(205,127,50,0.6); /* bronce translúcido */
  border-radius: 50%;
}
#heroSlider .carousel-indicators .active {
  background-color: var(--primary-color); /* bronce vivo */
}

/* Controles con efecto glass */
#heroSlider .carousel-control-prev-icon,
#heroSlider .carousel-control-next-icon {
  background-color: rgba(255,255,255,0.3);
  border-radius: 50%;
  backdrop-filter: blur(4px);
}

.hero-section .btn-game {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff; font-weight: 600; border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-section .btn-game:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.hero-section .btn-outline-game {
  border: 2px solid var(--primary-color); color: var(--primary-color);
  font-weight: 600; border-radius: 8px;
}
.hero-section .btn-outline-game:hover { background: var(--primary-color); color: #000; }

/* ===================== BUTTONS ===================== */
.btn-game {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(205,127,50,0.4);
}
.btn-game:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(212,175,55,0.6);
}
.btn-outline-game {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  border-radius: 8px;
}
.btn-outline-game:hover {
  background: var(--primary-color);
  color: #000;
}
/* ===================== FORMS ===================== */
.form-card { max-width: 520px; margin: 0 auto; padding: 24px; }
.form-group { margin-bottom: 14px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: #1f140bc0; color: var(--text); outline: none;
}
.form-control:focus { border-color: var(--primary); }
.actions { display: flex; gap: 12px; align-items: center; }
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 12px; }
.alert-success { background: #0f3424; color: #88f3b4; border: 1px solid #1d6b45; }
.alert-error   { background: #2a0f13; color: #ff9aa8; border: 1px solid #6b1d2e; }

/* ===================== CARDS ===================== */
.game-card {
  background: #1c1c1c;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 12px rgba(205,127,50,0.2), 0 5px 15px rgba(0,0,0,0.5);
}
.game-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); border-color: rgba(255,255,255,0.2); }
.card-header {
  background: linear-gradient(135deg, #3b2f2f, #5c4033);
  color: var(--primary-2);
  text-shadow: 0 0 6px #000;
}
.card-body { padding: 24px; }

/* ===== Download button ===== */
.download-button {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px; color: #fff; padding: 20px;
  text-align: left; transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.25); overflow: hidden;
}
.download-button:before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.12), transparent);
  transform: rotate(45deg); animation: shine 3s infinite;
}
@keyframes shine { 0% { left: -50%; } 100% { left: 150%; } }
.download-button:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(0,0,0,0.35); }
.download-icon {
  font-size: 2rem; color: #fff; background: rgba(255,255,255,0.15);
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 12px; flex: 0 0 56px;
}
.download-text h4 { margin: 0 0 4px 0; font-size: 18px; line-height: 1.2; color: #fff; }
.download-text span { display: block; color: rgba(255,255,255,0.92); font-size: 14px; }

/* ===================== REQUIREMENTS ===================== */
.requirement-box {
  background: rgba(77, 77, 77, 0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px; padding: 10px; transition: all 0.3s;
}
.requirement-box:hover { border-color: rgba(255,255,255,0.2); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.text-gold {
  color: var(--primary-color); margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  text-align: center; font-weight: 600;
  padding-bottom: 10px; border-bottom: 5px solid rgba(255,255,255,0.1);
}
.requirement-list { list-style: none; padding: 0; margin: 0; }
.requirement-list li { margin-bottom: 5px; font-size: 10px; display: flex; gap: 8px; }
.req-label { color: rgba(255,255,255,0.75); min-width: 140px; font-weight: 600; }

/* ===================== SIDEBAR STATS & TABLES ===================== */
.stats-highlight { font-size: 1.5rem; font-weight: bold; }
.stats-label { font-size: 0.9rem; color: #ccc; }
.server-status { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 5px; }
.status-online { background: #28a745; }

.rank-table { width: 100%; border-collapse: collapse; }
.rank-table thead th {
  font-weight: 700; font-size: 0.9rem; color: var(--primary-color);
  border-bottom: 1px solid var(--border); padding: 8px;
}
.rank-table tbody td { padding: 8px; color: var(--text); }
.rank-table tr + tr { border-top: 1px solid rgba(255,255,255,0.06); }

/* ===================== FOOTER ===================== */
.footer {
  background: #1c1c1c;
  color: var(--text);
  padding: 30px 0;
  border-top: 2px solid var(--primary-color);}
.footer .logo-mini { height: 50px; }
.footer .title { color: var(--primary-color); font-size: 1rem; margin-bottom: 10px; }
.footer a { color: #ddd; text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: var(--primary-color); }
.footer-min { background: rgba(0,0,0,0.6); color: #aaa; font-size: 0.9rem; }

/* ===================== GRID (GENERIC) ===================== */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }

/* ===================== NOTIFICATION ===================== */
.notification {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  background: #36271b;
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 14px;
}
.d-none { display: none !important; }

/* ===================== LATERAL LAYOUT ===================== */
.lateral-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}
.main-content { flex: 2; min-width: 300px; }
.server-status-block { flex: 1; min-width: 280px; }
.content-block {
  background-color: #332e29;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 0 10px rgba(255,255,255,0.05);
}
.block_title {
  font-size: 20px; font-weight: bold; color: #f0f0f0;
  margin-bottom: 15px; font-family: 'Alumni Sans', sans-serif;
}

/* ===================== VIDEO ===================== */
.video_wrapper iframe {
  width: 100%; height: 315px; border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* ===================== PRELOADER ===================== */
#preloader {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.eye-loader { width: 120px; height: 120px; animation: rotate 6s linear infinite; }
.eyelid { animation: blink 4s infinite ease-in-out; }
.iris { animation: pulse 2s infinite ease-in-out; }
@keyframes blink { 0%, 90%, 100% { opacity: 1; } 45%, 55% { opacity: 0; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: 0.6; } }
@keyframes rotate { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }

/* ===================== RANKING ===================== */
.ranking-wrapper {
  display: -ms-flexbox; justify-content: space-between;
  gap: 20px; margin: 40px auto; max-width: 1200px;
}
.ranking-box h2 {
  color: var(--primary-2);
  text-shadow: 0 0 8px rgba(205,127,50,0.6);
}
.ranking-box h2 {
  margin-bottom: 12px; color: #fff; font-size: 20px;
  border-bottom: 1px solid #555; padding-bottom: 6px; text-align: center;
}
.ranking-box ul { list-style: none; padding: 0; margin: 0; }
.ranking-box li {
  padding: 8px 12px; border-bottom: 1px solid #333;
  display: flex; justify-content: space-between; align-items: center; color: #ccc;
}
.ranking-box li.top-1,
.ranking-box li.top-2,
.ranking-box li.top-3 { animation: rgbGlow 3s infinite; font-weight: bold; }
@keyframes rgbGlow {
  0% { color: #ff0000; } 33% { color: #00ff00; } 66% { color: #f1d6b1; } 100% { color: #ff0000; }
}
.metric { font-weight: bold; color: #eee; }
.face-icon {
  width: 24px; height: 24px; border-radius: 4px; margin-right: 6px; vertical-align: middle; object-fit: cover;
}
li.top-1 .face-icon { width: 32px; height: 32px; border: 2px solid gold; }
li.top-2 .face-icon { width: 28px; height: 28px; border: 2px solid silver; }
li.top-3 .face-icon { width: 26px; height: 26px; border: 2px solid #cd7f32; }

/* ===================== SERVER STATUS BLOCK ===================== */
.server-status-block {
  background: rgba(80, 68, 57, 0.9);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 16px;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  margin-bottom: 24px;
}
.server-status-block .block_title {
  font-weight: 700; color: var(--primary-color);
  margin-bottom: 12px; text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 6px;
}
.server-status-block .server_wrapper h2 {
  font-size: 16px; color: var(--text); margin: 0;
}
.server-status-block .status {
  width: 14px; height: 14px; border-radius: 50%;
  display: inline-block; margin-right: 8px;
}
.server-status-block .status.online { background: #28a745; box-shadow: 0 0 8px #28a745; }
.server-status-block .status.offline { background: #dc3545; box-shadow: 0 0 8px #dc3545; }
.server-status-block .serverInfo__i { font-size: 0.85rem; color: var(--muted); }
.server-status-block iframe {
  border-radius: 8px; margin-top: 16px;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

/* ===================== STORE / SHOP ===================== */
.store-block {
  margin-bottom: 60px; padding: 20px; border-radius: 10px;
  background-color: #1a1a1a; box-shadow: 0 0 10px rgba(255,255,255,0.05);
}
.section-title {
  font-size: 28px; color: #f0f0f0; text-align: center; margin-bottom: 20px;
  font-family: 'Alumni Sans', sans-serif;
}
.card-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.card-package {
  width: 250px; background-color: #222; border: 1px solid #333;
  border-radius: 8px; padding: 15px; text-align: center; position: relative; transition: transform 0.3s;
}
.card-package:hover { transform: scale(1.03); box-shadow: 0 0 10px rgba(255,255,255,0.2); }
.card-package img { max-width: 100%; border-radius: 6px; margin-bottom: 10px; }
.card-package h3 { font-size: 18px; color: #fff; margin-bottom: 5px; }
.price { font-size: 16px; color: #ccc; margin-bottom: 10px; }
.tag-label {
  background-color: #88613c; color: #fff; font-size: 13px; padding: 4px 8px;
  border-radius: 4px; margin-bottom: 6px; display: inline-block;
}
.card-package.legendario {
  border: 2px solid gold; box-shadow: 0 0 15px rgba(255,215,0,0.6); animation: pulse 2s infinite;
}
.card-package.popular { border: 2px solid orange; box-shadow: 0 0 10px rgba(255,165,0,0.4); }
.card-package.special { border: 2px solid #555; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }

/* ===================== GAME BOOSTS ===================== */
.game-boost-area { padding: 50px 0; color: #5e5e5e; font-family: 'Segoe UI', sans-serif; }
.game-boost-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; }
.game-boost-item {
  background: linear-gradient(145deg, #3e332c, #2f271f); border: 2px solid #3f3f5a;
  border-radius: 12px; padding: 20px 25px; width: 180px; text-align: center;
  box-shadow: 0 0 12px rgba(255, 115, 0, 0.1); transition: all 0.3s ease; position: relative; overflow: hidden;
}
.game-boost-item::before {
  content: ""; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%; background: radial-gradient(circle, rgba(255, 187, 0, 0.1), transparent 70%);
  transform: rotate(45deg); transition: opacity 0.4s ease; opacity: 0;
}
.game-boost-item:hover::before { opacity: 1; }
.game-boost-item:hover {
  transform: translateY(-6px); box-shadow: 0 0 20px rgba(255, 217, 0, 0.3); border-color: #ffbb00;
}
.boost-title { font-size: 1rem; color: #ffbb00; margin-bottom: 8px; letter-spacing: 0.5px; }
.boost-value { font-size: 1.5rem; font-weight: bold; color: #ffd700; }

/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none; justify-content: center; align-items: center; z-index: 9999;
}
.modal-content {
  background: #fff; padding: 30px; border-radius: 10px; text-align: center;
  max-width: 400px; box-shadow: 0 0 20px rgba(0,0,0,0.3); animation: fadeIn 0.3s ease-in-out;
}
.modal-buttons { margin-top: 20px; display: flex; justify-content: space-around; }
.btn-confirm, .btn-cancel {
  padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; font-weight: bold;
}
.btn-confirm { background-color: #28a745; color: white; }
.btn-cancel { background-color: #dc3545; color: white; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .container { padding: 18px; }
}
@media (max-width: 991px) {
  .navbar-dark .navbar-nav .nav-link {
    padding: 0.75rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .navbar-dark .navbar-nav .nav-link p { font-size: 0.7rem; }
}
@media (max-width: 900px) {
  .hero-section { min-height: 260px; }
  .ranking-wrapper { flex-direction: column; gap: 16px; }
}
@media (max-width: 768px) {
  .download-button { padding: 16px; }
  .download-icon { width: 48px; height: 48px; font-size: 24px; }
  .download-text h4 { font-size: 16px; }
  .requirement-list li { font-size: 13px; }
  .req-label { min-width: 120px; }
}
/* ===== Theme Variants ===== */

/* Tema claro */
body.light-theme {
  background: #f5f5f5;
  color: #222;
}

body.light-theme .game-header {
  background: linear-gradient(90deg, #fff, #ddd);
  border-bottom: 2px solid #333;
}

body.light-theme .navbar-dark .nav-link {
  color: #222;
}

body.light-theme .game-card {
  background: #fff;
  color: #222;
}

body.light-theme .card-header {
  background: linear-gradient(135deg, #eee, #ccc);
  color: #d8d7d7;
}
/* Encabezado */
.page-title {
  color: #ffcc00; /* amarillo vivo */
  text-shadow: 2px 2px 6px #000;
}

.profile-header p {
  color: #ff4444; /* rojo vivo */
  font-weight: bold;
}

/* Avatar */
.avatar-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6600, #ffcc00);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 200, 0, 0.8);
}

/* Íconos principales */
.card-body i,
.stats-grid i {
  color: #e6a94e; /* turquesa brillante */
  text-shadow: 0 0 5px #000;
}

/* Valores de estadísticas */
.stat-value {
  font-size: 1.6rem;
  font-weight: bold;
  margin-top: .5rem;
  text-shadow: 0 0 8px #000;
}

/* Colores diferenciados por tipo */
.stat-card.rece .stat-value { color: #b87217; }     /* Recepoints: azul turquesa */
.stat-card.cp .stat-value { color: #ffc107; }       /* ConquerPoints: dorado */
.stat-card.boundcp .stat-value { color: #ffae00; }  /* Bound CP: azul intenso */
.stat-card.champion .stat-value { color: #dc3545; } /* ChampionPoints: rojo vivo */

/* Títulos dentro de las tarjetas */
.stat-card b {
  display: block;
  margin-bottom: .3rem;
  color: #fff;
  text-shadow: 0 0 5px #000;
}
