/* ==========================================================================
   RESET BÁSICO
   - Normaliza márgenes, padding y display para tener una base consistente
   ========================================================================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;                /* elimina márgenes por defecto */
  padding: 0;               /* elimina padding por defecto */
  border: 0;                /* elimina bordes por defecto */
  vertical-align: baseline; /* alinea elementos inline-block correctamente */
}

/* Soporte HTML5 para navegadores antiguos (asegura que sean block) */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

/* Línea base de texto */
body {
  line-height: 1;
}

/* Listas sin viñetas por defecto */
ol, ul {
  list-style: none;
}

/* Quita comillas automáticas en blockquote y q */
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

/* Tablas sin separación entre bordes celdas */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Redundante para mayor compatibilidad (HTML5) */
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
  display: block;
}

/* Box-sizing más predecible en todo el documento */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* ==========================================================================
   BASE DEL SITIO
   - Tipografía, fondo general y colores por defecto
   ========================================================================== */
body {
  width: 100%;
  /* Doble fondo: imagen arriba y abajo + color base */
  background: url(../images/body-top-bg.jpg) center top no-repeat,
              url(../images/body-bottom-bg.jpg) center bottom no-repeat;
  background-color: #27170b;        /* marrón oscuro del tema */
  font-family: Candara, sans-serif;  /* tipografía del theme */
  font-size: 15px;
  color: #29282d;                    /* texto general */
  min-height: 100vh;                 /* asegura ocupar alto de pantalla */
}

/* Enlaces con transición y color temático */
a {
  transition: all 0.3s ease;
  color: #836349;
}
a:hover {
  text-decoration: none;
}

/* Párrafos con separación inferior */
p {
  margin-bottom: 15px;
}

/* Títulos con color y ritmo vertical */
h1, h2, h3 {
  color: #28180c;
  margin-bottom: 20px;
  line-height: 1.2;
}
h1 { font-size: 20px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }

/* Leyendas de tablas separadas */
caption {
  margin-bottom: 15px;
}

/* ==========================================================================
   FORMULARIOS (select / inputs / botones)
   ========================================================================== */
/* Select con estilo plano y centrado, sin apariencia nativa */
.form select {
  background: none;
  min-width: 220px;
  width: 100%;
  border: 1px solid rgba(201, 170, 113, 0.1);
  color: #28180c;
  text-align: center;
  margin-bottom: 15px;
  padding: 6px 40px 6px 20px;
  position: relative;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-indent: 0.01px;
  text-overflow: '';
  -ms-appearance: none;
  appearance: none !important;
  font-family: Candara, sans-serif;
}

/* Inputs de texto y textarea planos y centrados */
.form input, textarea {
  background: none;
  border: none;
  color: #28180c;
  padding: 5px 0px;
  position: relative;
  text-align: center;
  font-size: 14px;
  min-width: 220px;
  font-family: Candara, sans-serif;
  width: 100%;
}

/* Checkbox no ocupa todo el ancho */
.form input[type=checkbox] {
  width: auto;
  min-width: auto;
  bottom: -2px;
}

/* Botón grande con imagen de fondo y sombreado */
.form button, .button {
  transition: all 0.3s ease;
  cursor: pointer;
  background: url(../images/button.png) no-repeat;
  height: 45px;
  width: 250px;
  border: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  position: relative;
  z-index: 1;
  text-align: center;
  text-transform: uppercase;
  font-family: Candara, sans-serif;
  filter: drop-shadow(0px 25px 15px rgba(0, 0, 0, 0.2));
}
.form button:hover, .button:hover {
  filter: drop-shadow(0px 25px 15px rgba(0, 0, 0, 0.2)) brightness(110%);
}

/* .button reutilizable (enlace-botón) */
.button {
  display: inline-block;
  text-decoration: none;
  line-height: 45px;
}

/* Botón pequeño variante */
.button-small {
  background: url(../images/button-small.png) no-repeat;
  height: 32px;
  line-height: 32px;
  width: 122px;
  text-transform: none;
  filter: drop-shadow(0px 15px 10px rgba(0, 0, 0, 0.1));
}
.button-small:hover {
  filter: drop-shadow(0px 15px 10px rgba(0, 0, 0, 0.1)) brightness(110%);
}

/* Accesibilidad: sin outline por defecto (usa estados visuales personalizados) */
:focus { outline: none; }

/* Placeholders */
::-webkit-input-placeholder { color: #5d5148; }
::-moz-placeholder { color: #5d5148; }
:-moz-placeholder { color: #5d5148; }
:-ms-input-placeholder { color: #5d5148; }

/* Colores de opciones en selects */
option:disabled { color: red !important; }
option { color: black !important; }

/* ==========================================================================
   LAYOUT GENERAL (wrapper / container / utilidades flex)
   ========================================================================== */
.wrapper_web {
  width: 1200px;       /* ancho fijo del tema */
  margin: 0 auto;      /* centrado horizontal */
  position: relative;
}
.container_web {
  min-height: 1100px;  /* asegura suficiente alto del marco central */
  display: flex;       /* layout de 3 columnas */
}

/* Utilidades flex de uso general */
.flex { display: flex; flex-wrap: wrap; }
.flex-c { display: flex; align-items: center; text-align: center; }
.flex-s { display: flex; justify-content: space-between; }
.flex-s-c { display: flex; justify-content: space-between; align-items: center; }
.flex-c-c { display: flex; justify-content: center; align-items: center; }

/* Efecto brillo genérico al hover */
.bright:hover { filter: brightness(120%); }

/* ==========================================================================
   HEADER / MENÚ SUPERIOR
   ========================================================================== */
.topMenu {
  top: 0;
  width: 100%;
  background-color: rgba(255, 242, 223, 0.3); /* franja translúcida */
  border-bottom: 1px solid rgba(255, 242, 223, 0.5);
  z-index: 20;
  transition: 0.4s; /* suaviza cambios (e.g., sticky) */
}
/* Variante comentada: versión con blur (se dejó como referencia) */
/*
.topMenu {
  width: 100%;
  backdrop-filter: blur(1px);
  border-bottom: 1px solid #3578b8;
  overflow: auto;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 5px;
  background-color: rgba(255, 242, 223, 0.2);
}
*/

.serverTTime { display: flex; } /* contenedor auxiliar */

/* Contenedor del menú a 1200px */
.topMenu-wrapper {
  width: 1200px;
  margin: 0 auto;
}

/* Lista de navegación centrada */
.topMenu ul {
  display: flex;
  justify-content: center;
}

/* Ítems de navegación */
.topMenu ul li a {
  text-decoration: none;
  position: relative;
  color: #957358;
  font-size: 18px;
  font-weight: bold;
  display: block;
  height: 80px;
  line-height: 80px;
  text-transform: uppercase;
  padding: 0px 27px;
}
/* Subrayado animado al hover */
.topMenu ul li a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  background: #7a6142;
  height: 2px;
  transition: 0.5s;
}
.topMenu ul li a:hover {
  color: #3b1f08;
}
.topMenu ul li a:hover:after {
  width: 100%;
}
/* Estado activo */
.topMenu ul .active a {
  color: #3b1f08;
}
.topMenu ul .active a:after {
  width: 100%;
}

/* Estilo cuando el menú se hace fijo (ej. con JS) */
.topMenu-fixed {
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #7a6142;
}
.topMenu-fixed ul li a {
  height: 50px;
  line-height: 50px;
}

/* Altura del header y capas decorativas */
.header_web {
  height: 450px;
  position: relative;
  z-index: 2;
}
.logo {
  position: absolute;
  display: block;
  top: 200px;
  left: 230px;
}

/* ==========================================================================
   EFECTOS DECORATIVOS (chispas y hojas animadas)
   ========================================================================== */

.spark-1 {
  background: url(../images/sparks_1.png);
  width: 450px;
  height: 226px;
  left: -50px;
  bottom: -250px;
  position: absolute;
  animation: 4s spark-1 linear infinite;
}
@keyframes spark-1 {
  0%   { transform: scale(0.4); bottom: -150px; }
  33%  { transform: scale(0.6); bottom: -100px; }
  66%  { transform: scale(0.8); bottom:  -50px; opacity: 1; }
  100% { transform: scale(1);   bottom:    0px; opacity: 0; }
}

.spark-2 {
  background: url(../images/sparks_2.png);
  width: 450px;
  height: 390px;
  left: -50px;
  bottom: -400px;
  position: absolute;
  animation: 5s spark-2 linear infinite;
  animation-delay: 1s;
}
@keyframes spark-2 {
  0%   { transform: scale(0.4); bottom: -400px; }
  33%  { transform: scale(0.6); bottom: -300px; }
  66%  { transform: scale(0.8); bottom: -200px; opacity: 1; }
  100% { transform: scale(1);   bottom: -100px; opacity: 0; }
}

.spark-3 {
  background: url(../images/sparks_3.png);
  width: 350px;
  height: 352px;
  left: -50px;
  bottom: -350px;
  position: absolute;
  animation: 5s spark-3 linear infinite;
  animation-delay: 2s;
}
@keyframes spark-3 {
  0%   { transform: scale(0.4); bottom: -350px; }
  33%  { transform: scale(0.6); bottom: -240px; }
  66%  { transform: scale(0.8); bottom: -130px; opacity: 1; }
  100% { transform: scale(1);   bottom:  -20px; opacity: 0; }
}

/* Hojas decorativas */
.leaves { position: absolute; bottom: 0; left: 200px; }
.leaves-1 {
  background: url(../images/leaves_1.png);
  width: 300px; height: 197px; left: 0px; bottom: -200px; position: absolute;
  animation: 5s leaves-1 linear infinite;
}
@keyframes leaves-1 {
  0%   { transform: scale(0.7) rotate(0deg);   bottom: -200px; left:  250px; }
  33%  { transform: scale(0.8) rotate(30deg);  bottom: -100px; left:  500px; }
  66%  { transform: scale(0.9 rotate(60deg));  bottom:    0px; left:  750px; opacity: 1; }
  100% { transform: scale(1)   rotate(90deg);  bottom:  100px; left: 1000px; opacity: 0; }
}
.leaves-2 {
  background: url(../images/leaves_2.png);
  width: 283px; height: 171px; left: 0px; bottom: -200px; position: absolute;
  animation: 5s leaves-2 linear infinite; animation-delay: 2s;
}
@keyframes leaves-2 {
  0%   { transform: scale(0.7) rotate(0deg);    bottom: -200px; left: 250px; }
  33%  { transform: scale(0.8) rotate(-30deg);  bottom: -100px; left: 500px; }
  66%  { transform: scale(0.9 rotate(-60deg));  bottom:    0px; left: 750px; opacity: 1; }
  100% { transform: scale(1)   rotate(-90deg);  bottom:  100px; left:1000px; opacity: 0; }
}
.leaves-3 {
  background: url(../images/leaves_3.png);
  width: 324px; height: 222px; left: 0px; bottom: -200px; position: absolute;
  animation: 5s leaves-3 linear infinite; animation-delay: 4s;
}
@keyframes leaves-3 {
  0%   { transform: scale(0.7) rotate(0deg);    bottom: -200px; left: 250px; }
  33%  { transform: scale(0.8) rotate(-30deg);  bottom: -100px; left: 500px; }
  66%  { transform: scale(0.9 rotate(-60deg));  bottom:    0px; left: 750px; opacity: 1; }
  100% { transform: scale(1)   rotate(-90deg);  bottom:  100px; left:1000px; opacity: 0; }
}


/* ==========================================================================
   CONTENEDORES: carril central + sidebars
   ========================================================================== */
.container_web {
  background: url(../images/container-bg.jpg); /* textura del body central */
  z-index: 10;
}
.sidebar {
  background: url(../images/sidebar-bg.jpg);
  width: 300px;
  padding: 10px 25px;
  z-index: 11;
  position: relative;
}
.sidebar a { text-decoration: none; }

.content {
  width: 600px;      /* ancho del carril central */
  line-height: 1.3;
  position: relative;
  z-index: 12;
}

.sidebarBlock {
  padding: 5px 0px;
  margin-bottom: 15px;
  position: relative;
}
.sidebarBlockLogin { margin-bottom: 2px; }

/* ==========================================================================
   SLIDER PRINCIPAL (Swiper grande)
   ========================================================================== */
.swiper-slider {
  width: 100%;
  height: 360px;
}
.swiper-slider .swiper-slide {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: 20px;
}
.swiper-slider .swiper-slide h2 {
  color: #fff;
  font-size: 24px;
  background: rgba(44, 28, 19, 0.25);
  margin-bottom: 0px;
  font-weight: normal;
  padding: 26px 0px 26px 50px;
}
.swiper-slider .swiper-slide .slider-info {
  position: absolute;
  bottom: 75px;
  padding: 0px 50px;
  width: 100%;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.swiper-slider .swiper-slide .slider-info p {
  color: #fff;
  font-size: 13px;
  width: 290px;
  line-height: 1.5;
  margin-bottom: 5px;
}
/* Paginación inferior estilo barra */
.swiper-slider .swiper-pagination {
  height: 60px;
  line-height: 60px;
  bottom: 0;
  background: rgba(32, 15, 6, 0.8);
  text-align: left;
  padding-left: 40px;
}
.swiper-slider .swiper-pagination .swiper-pagination-bullet {
  border-radius: 0px;
  background: #908783;
  margin: 0 8px;
}
.swiper-slider .swiper-pagination .swiper-pagination-bullet-active {
  background: #ffd481;
}
/* Flechas del slider principal */
.swiper-slider .slider-button { width: 55px; height: 55px; }
.swiper-slider .swiper-button-next {
  background: url(../images/arrow-right.png) center no-repeat;
  background-size: 11px 32px;
  background-color: #645344;
  right: 0;
}
.swiper-slider .swiper-button-prev {
  background: url(../images/arrow-left.png) center no-repeat;
  background-size: 11px 32px;
  background-color: #645344;
  left: 0;
}
.swiper-slider .swiper-button-disabled { opacity: 0.7; }

/* ==========================================================================
   TABS (botonera y paneles)
   ========================================================================== */
.tabBlockButton {
  border-bottom: 1px solid #cbbeb4;
  position: relative;
  display: flex;
}
.tabBlockButton span {
  display: block;
  cursor: pointer;
  color: #836349;
  font-size: 16px;
  font-weight: bold;
  padding: 25px;
  text-transform: uppercase;
  position: relative;
}
.tabBlockButton span:hover { color: #28180c; }
.tabBlockButton span:after {
  content: "";
  background: #28180c;
  height: 2px;
  width: 0;
  position: absolute;
  left: 0; bottom: 0;
  transition: 0.5s;
}
.tabBlockButton span.active { color: #28180c; }
.tabBlockButton span.active:after { width: 100%; }

/* Link de “más” en tabs (esquina derecha) */
.tab-more {
  position: absolute;
  right: 0;
  color: #f8e5b6;
  background: #836349;
  width: 18px;
  height: 18px;
  top: 50%;
  margin-top: -9px;
  line-height: 14px;
  text-align: center;
  display: block;
  text-decoration: none;
  font-size: 20px;
}

/* Paneles de tab visibles/ocultos */
.tab-block { display: none; padding: 25px; }
.tab-block.active { display: block; animation: tab 0.6s linear; }
.tab-block-media { display: none; padding: 5px 0px; }
.tab-block-media.active { display: block; animation: tab 0.6s linear; }

@keyframes tab {
  0%   { display: block; opacity: 0; }
  100% { display: block; opacity: 1; }
}

/* Imagen previa con sombra suave */
.prev-img img { box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.2); }

/* ==========================================================================
   BLOQUES DE NOTICIAS
   ========================================================================== */
.topNewsBlock { margin-bottom: 25px; }
.topNewsInfo { padding-left: 25px; }
.topNewsInfo h2 { font-size: 16px; }
.date { color: #836349; font-size: 16px; }

/* Renglón de noticia con hover que empuja el contenido */
.news {
  display: flex;
  position: relative;
  margin: 0px -25px;
  padding: 15px 25px;
  background: rgba(232, 228, 228, 0);
  transition: 0.4s;
}
.news:hover {
  padding: 15px 25px 15px 15px;
  background: #e8e4e4;
}
.news span { display: block; }
.news .tr { margin: 0px 14px; color: #836349; }
.news a {
  color: #29282d;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   MINI CARRUSEL DE BANNERS (Swiper pequeño)
   ========================================================================== */
.swiper-carousel {
  height: 160px;
  padding-top: 20px;
}
.swiper-carousel .swiper-slide a { display: block; }
.swiper-carousel .swiper-slide img {
  width: 180px;
  display: block;
  box-shadow: 0px 5px 14px 0px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}
.swiper-carousel .swiper-slide img:hover { transform: scale(1.05); }

/* Flechas mini carrusel */
.slider-button-carousel {
  width: 40px;
  height: 40px;
  margin-top: -20px;
}
.slider-button-carousel.swiper-button-next {
  background: url(../images/arrow-right.png) center no-repeat;
  background-size: 9px 26px;
  background-color: #645344;
  right: 0;
}
.slider-button-carousel.swiper-button-prev {
  background: url(../images/arrow-left.png) center no-repeat;
  background-size: 9px 26px;
  background-color: #645344;
  left: 0;
}
.slider-button-carousel.swiper-button-disabled { opacity: 0.7; }

/* ==========================================================================
   CONTENIDO DE PÁGINA / WYSIWYG
   ========================================================================== */
.page-content { padding: 25px; }
.page-content .form .formGroup { padding-top: 25px; margin-bottom: 15px; }
.page-content .form .formGroup:after { top: 0px; }
.page-content a { color: #aa4e15; }
.page-content img { max-width: 550px; }
.page-content table tr:nth-child(even) { background: #ececec; }
.page-content table tr:hover td { padding-left: 8px; padding-right: 8px; }
.page-content ul { margin-bottom: 15px; padding-left: 40px; }
.page-content ul li { padding: 4px 0px; list-style: square; }

/* Texto legal/aceptación */
.formGroup-accept {
  text-align: center;
  padding-top: 10px;
  margin-bottom: 20px;
}
.formGroup-accept a { text-decoration: none; color: #aa4e15; }
.formGroup-accept a:hover { text-decoration: underline; }

/* ==========================================================================
   LOGIN (sidebar izquierda)
   ========================================================================== */
.form {
  background: url(../images/form-bg.png) top center no-repeat;
  padding-top: 15px;
}
.form h3 {
  text-transform: uppercase;
  margin-bottom: 18px;
  text-align: center;
}
.formGroup {
  border-bottom: 1px solid #b9b4b1;
  position: relative;
  padding-top: 22px;
  margin-bottom: 12px;
}
.formGroup:after {
  content: "";
  width: 41px;
  height: 30px;
  position: absolute;
  left: 50%;
  margin-left: -20px;
  top: -5px;
}
/* Iconos del formulario */
.formGroup.login:after  { background: url(../images/user-icon.png) no-repeat; }
.formGroup.pass:after   { background: url(../images/password-icon.png) no-repeat; }
.formGroup.mail:after   { background: url(../images/mail-icon.png) no-repeat; }
.formGroup.select:after { background: url(../images/select-icon.png) no-repeat; }

/* Dropdown custom (select simulado) */
.dropcontainer { position: absolute; left: 0; top: 100%; width: 100%; z-index: 2; }
.trigger, .activetrigger {
  color: #5d5148 !important;
  padding: 10px; text-decoration: none; width: 100%; display: block;
  transition: all 0.5s ease; text-align: center;
}
.dropcontainer ul {
  background: #fff;
  list-style-type: none;
  padding: 10px; margin: 0;
  border-top: 1px solid #b9b4b1;
}
.dropcontainer ul li {
  padding: 5px; text-align: center; transition: all 0.5s ease; list-style: none;
}
.dropcontainer ul li a {
  text-decoration: none; text-transform: uppercase; display: block; padding: 5px 0px;
}
.dropcontainer ul li a:hover { background: #ececec; }
.dropcontainer ul li:first-child { display: none; }
.dropdownhidden { display: none; }
.dropdownvisible { display: block; }

/* Botón y enlaces auxiliares del login */
.formGroup-button { margin-bottom: 22px; text-align: center; }
.formGroup-links a { color: #5d5148; font-size: 14px; margin: 0px 4px; }
.formGroup-links a:hover { text-decoration: underline; }

/* Título de bloques en sidebar */
.sidebarTitle {
  padding: 22px 0px; position: relative;
}
.sidebarTitle h2 { font-size: 16px; text-transform: uppercase; margin-bottom: 4px; }
.sidebarTitle span { font-size: 13px; }
.sidebarTitle:after {
  content: "";
  background: url(../images/sidebar-title-icon.png) no-repeat;
  width: 113px; height: 83px; display: block; position: absolute; right: -25px; top: 0px;
}

/* Estado “abierto” para items (ej. servidores) */
.opened { color: #5b8c1e; }

/* ==========================================================================
   TABLAS DE EVENTOS / LISTADOS
   ========================================================================== */
.events tbody:before { display: none; }
.events td { padding: 12px 6px; }
.events td a { max-width: 115px; }

/* ==========================================================================
   SIDEBAR DERECHA: descarga / server / redes
   ========================================================================== */
.download {
  display: block;
  width: 300px; height: 120px;
  background: url(../images/download-button.jpg) no-repeat;
  position: relative;
  margin-top: -10px; margin-left: -25px;
  font-size: 16px;
  padding: 72px 0px 0px 110px;
  color: #6c5f22;
  text-shadow: 0px 1px 1px #f2e8a1;
}

/* Tarjeta “Server” con barra de progreso */
.serverBlock {
  width: 300px; height: 120px;
  background: url(../images/server-bg.jpg) no-repeat;
  position: relative;
  margin-left: -25px;
  padding-right: 25px;
  justify-content: flex-end;
}
.server { width: 160px; }
.server-name { color: #fff; font-size: 18px; margin-bottom: 10px; }
.server-progressbar { background: rgba(30, 30, 30, 0.4); padding: 3px; margin-bottom: 10px; }
.server-progressbar span { height: 3px; display: block; background: #b3d148; }
.server-online { color: #fff; font-size: 14px; }
.server-online span { float: right; color: #d6f75f; }
.server.offline .server-online span { color: #f85209; }

/* Bloque de redes sociales */
.soc-block {
  width: 300px; height: 120px;
  background: url(../images/soc-block-bg.jpg) no-repeat;
  position: relative;
  margin-left: -25px;
  display: flex; flex-wrap: wrap;
}
.soc-block div {
  background: url(../images/soc-icon-bg.png) no-repeat;
  width: 51px; height: 45px;
  display: flex; align-items: center; justify-content: center;
  margin-right: 10px;
  filter: drop-shadow(0px 5px 7px rgba(0, 0, 0, 0.2));
  transition: 0.3s;
}
.soc-block a {
  display: flex; align-items: center;
  width: 150px; height: 60px; line-height: 60px;
  color: #836349; font-size: 14px; position: relative; font-weight: bold; padding-left: 15px;
}
.soc-block a:hover { padding-left: 5px; color: #000000; }
.soc-block a:hover div { filter: drop-shadow(0px 5px 7px rgba(0, 0, 0, 0.3)) brightness(120%); }

/* Tabla de jugadores en sidebar */
.players td { padding: 12px 6px; }
.players tr:hover td { padding: 12px 3px; }
.players a { max-width: 100px; }
.players thead td { padding: 12px 8px; }

/* ==========================================================================
   FOOTER (MEJORADO)
   - ÚNICA SECCIÓN MODIFICADA RESPECTO AL ORIGINAL
   ========================================================================== */
.footer {
  /* Antes: height fijo 370px que causaba espacio sobrante.
     Ahora: altura automática, con fondo sutil y separador superior. */
  height: auto;
  position: relative;
  padding: 45px 0 28px;
  background: rgba(32, 15, 6, 0.25);            /* acorde a paleta marrón */
  border-top: 1px solid rgba(133, 52, 73, 0.35); /* línea superior suave */
  text-align: center;                             /* centra contenidos del pie */
}
.footer a { text-decoration: none; }

/* Franja superior decorativa y “volver arriba” */
.toTopBlock {
  background: url(../images/footer-line.png) top center no-repeat;
  height: 77px;
  padding-top: 18px;
  margin-bottom: 28px; /* ligeramente más compacta */
}
.toTopBlock span {
  /* Botón de subir: mantiene tu estructura, mejora área de click y feedback */
  width: 52px;
  height: 52px;
  display: block;
  margin: 0 auto;
  cursor: pointer;
  background: url(../images/to-top-arrow.png) no-repeat center / 60% 60%;
  border-radius: 50%;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.toTopBlock span:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,.28);
}

/* Menú del footer más legible y adaptable */
.footer-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  padding: 0 10px;
  flex-wrap: wrap;         /* permite salto en móviles */
  gap: 10px 22px;          /* espacio uniforme entre ítems */
  max-width: 1000px;       /* evita líneas muy largas */
}
.footer-menu li a {
  color: #b4967e;          /* tono arena del tema */
  font-size: 14px;
  text-transform: uppercase;
  padding: 8px 10px;       /* mayor área de click */
  display: block;
  margin: 0;               /* margin ya lo suple el gap */
  letter-spacing: .3px;
  transition: color .2s ease, transform .12s ease;
}
.footer-menu li a:hover {
  color: #ffcc7d;          /* realce en hover */
  transform: translateY(-1px);
}

/* Bloques informativos opcionales (si existen tres columnas, etc.) */
.footer-info > div {
  width: 400px;            /* se mantiene por compatibilidad */
}

/* Logo centrado en el pie (si se usa) */
.footer-logo { text-align: center; }

/* Línea de copyright */
.copy {
  text-align: center;
  color: #e0f0fd;     /* se conserva tu color original */
  font-size: 13px;
}
.copy a {
  color: #b4967e;
  text-decoration: none;
  transition: color .2s ease;
}
.copy a:hover { color: #ffcc7d; }

/* Firma / créditos (si se muestra) */
.at {
  padding-left: 180px;
  font-size: 12px;
  color: #6e4e3c;
  line-height: 1.3;
}

/* Footer responsive */
@media (max-width: 768px) {
  .footer { padding: 32px 0 22px; }
  .footer-menu { gap: 8px 16px; }
}

/* ==========================================================================
   LISTAS DE RANKING (efectos y layout)
   ========================================================================== */
.rank-list {
  display: none;
  animation: rank 0.4s ease;
}
.rank-list li {
  display: flex;
  align-items: center;
  font-size: 14px;
  transition: 0.4s;
  padding: 9px 0px;
}
.rank-list li .rank-ava {
  margin: 0px 15px;
  border-radius: 50%;
  box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.2);
  transition: 0.5s;
}
.rank-list li .rank-name { color: #ffafc0; }
.rank-list li .rank-name b { color: #fe95ad; }
.rank-list li a {
  display: block;
  width: 100%;
  color: #fff;
  margin-bottom: 4px;
}
.rank-list li:hover {
  background: rgba(56, 13, 20, 0.1);
  margin: 0px -40px;
  padding: 9px 35px;
  box-shadow: 2px 3px 10px 0px rgba(0, 0, 0, 0.4);
}
.rank-list li:hover .rank-ava { margin: 0px 25px 0px 15px; }
.rank-list li:before { display: none; }
.rank-list.active { display: block; }

@keyframes rank {
  0%   { display: none; opacity: 0; transform: scale(0); }
  1%   { display: block; opacity: 0; transform: scale(0); }
  100% { display: block; opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   BLOQUES “TOP” (rankings compactos)
   ========================================================================== */
.top-block { width: 100%; color: #28180c; }
.top-block span { display: block; padding-bottom: 1px; }
.top-block .top-number { width: 35px  !important; }
.top-block .top-flag   { width: 25px; padding-top: 2px; }
.top-block .top-name   { width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-block .top-event-name { width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-block .top-drop-name  { width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-block .top-lvl   { width: 55px; }
.top-block .top-lvl sup { font-size: 10px; color: #ff0000; }
.top-block .top-event-time { width: 100px; }

/* Renglones de lista con hover */
.top-list {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0px 10px;
  font-size: 12px;
  border-bottom: 1px solid rgba(133, 52, 73, 0.5);
  transition: 0.3s;
}
.top-list a { color: #28180c !important; }
.top-list:hover {
  background: rgba(56, 13, 20, 0.1);
  margin: -1px -15px 0px -15px;
  padding: 0px 25px 0px 25px;
  box-shadow: 0px 0px 10px 0px rgba(162, 132, 136, 0.5);
  height: 37px;
  color: #000;
}
.top-list:hover a { color: #28180c !important; }

/* Cabecera de lista */
.top-title {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0px 10px !important;
  background: rgba(56, 13, 20, 0.1) !important;
  font-size: 13px !important;
  border-bottom: 1px solid rgba(133, 52, 73, 0.5) !important;
}
.top-title a { color: #28180c !important; }

/* ==========================================================================
   COUNTDOWN (reloj de lanzamiento/eventos)
   ========================================================================== */
.countdown-block {
  position: absolute;
  bottom: 104px;
  left: 270px;
  text-align: center;
  width: 100%;
}
.countdown-block h3 {
  color: #2A1A0D;
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: bold;
}
.countdown li {
  margin: 0px 7px;
  position: relative;
  list-style-type: none;
}
.countdown li:after {
  content: ":";
  position: absolute;
  right: -12px;
  top: 8px;
  font-size: 38px;
  color: #3b0c16;
}
/* El primero no muestra separador (desactivado con subrayado accidental) */
.countdown li:first-child:after {
  __display: none; /* (mantengo tu línea original tal cual) */
}
.countdown li:last-child:after { display: none; }

.countdown span {
  display: block;
  background: rgba(42,26,13, 0.7);
  border-radius: 6px;
  height: 60px; width: 60px;
  font-size: 32px;
  color: #fff;
  text-align: center; line-height: 60px;
  margin-bottom: 7px;
}
.countdown p {
  font-size: 12px; margin-bottom: 0px; font-weight: bold;
  color: #2A1A0D; text-transform: uppercase;
}

/* ==========================================================================
   SLIDER CUSTOM (no Swiper) – carrusel manual
   ========================================================================== */
.slider {
  overflow: hidden;
  position: relative;
  width: 600px;
  height: 327px;
  margin-right: 1px;
}
.slider .slides {
  position: relative;
  transition: 1s;
}
.slider .slides .slide {
  float: left; display: block; position: relative;
  background-repeat: no-repeat; background-position: center;
  width: 637px; height: 327px;
}
.slider .slides .slide:before {
  content: ""; position: absolute; width: 100%; top: 0; left: 0;
}

/* Textos grandes en el slider custom */
.slide-info span{
  font-weight: 800; width: 100%;
  margin-left: 80px; margin-right: 80px;
  background: linear-gradient(#ffdb8a, #ffad47);
  font-size: 36px; font-style: italic;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-left: 8px; text-align: center;
}
.slide-text-big{
  font-weight: 800; background: linear-gradient(#ffdb8a, #ffad47);
  font-size: 40px; width: calc( 100% - 160px );
  margin-top: -15px; margin-left: 80px; margin-right: 80px;
  font-style: italic; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-align: center;
}
.slide-text p{
  width: calc( 100% - 160px ); margin-top: -5px;
  color: #fff; font-style: italic; font-size: 20px; font-weight: bold;
  margin-left: 80px; margin-right: 80px; text-align: center; display: block;
}

/* Aparición suave del bloque de texto sobre la diapositiva activa */
.slider .slides .slide-info {
  position: relative; width: 100%; opacity: 0; z-index: 4;
  display: flex; flex-wrap: wrap; align-items: stretch; margin-top: 220px;
}
.slider .slides .active .slide-info { transition: all 2s ease; opacity: 1; }

/* Flechas del slider custom */
.slider .arrows {
  position: absolute; height: 60px; width: 60px; top: 145px;
  z-index: 10; cursor: pointer; opacity: 0.5;
}
.slider .arrows:hover { cursor: pointer; opacity: 1; }
.slider .next { background: url(../images/arrow-right.png) no-repeat; right: 1px; }
.slider .prev { background: url(../images/arrow-left.png)  no-repeat; left:  1px; }

/* Indicadores del slider custom */
.slider .navigation {
  position: absolute; bottom: 20px; left: 0px; z-index: 4;
  display: flex; align-items: center; justify-content: center; width: 100%;
}
.slider .navigation .dot {
  border-radius: 50%; width: 5px; height: 5px; cursor: pointer;
  background-color: #72614f; margin: 0px 20px;
}
.next:hover, .prev:hover { opacity: 1; transition: all 0.7s ease; }
.slider .navigation .active {
  border-radius: 50%; width: 8px; height: 8px; margin: 0px 20px;
  background-color: #72614f; position: relative;
}
.slider .navigation .active:after {
  content: ""; position: absolute; left: -2px; top: -2px;
  width: 100%; height: 100%; border-radius: 50%;
  border: 2px solid #72614f; box-shadow: 0 0 4px 1px #72614f;
}

/* ==========================================================================
   BANNERS “download-img” (alineados como .download)
   ========================================================================== */
.download-img {
  display: block;
  width: 300px;            /* igual que .download */
  margin-left: -25px;      /* igual que .download */
}
.download-img img { display: block; width: 100%; height: auto; }
.download-img { margin-bottom: 5px; }

/* ==========================================================================
   PANELES OSCUROS (sidebar): estética moderna (tu estilo)
   ========================================================================== */
/* Panel contenedor base */
.panel.panel-sidebar {
  background: #1b1b1b !important;
  color: #e4e6eb !important;
  border: 1px solid #4e4f50 !important;
}
/* Header del panel con acento */
.panel.panel-sidebar > .panel-heading {
  background: #1b1b1b !important;
  color: #e4e6eb !important;
  border-bottom: 2px solid #ff3214 !important; /* acento rojo */
}
/* Título y botón “+” */
.panel.panel-sidebar .panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
}
.panel.panel-sidebar .panel-title .btn.btn-primary.btn-xs {
  background: #ff0000 !important;
  border: 1px solid #ff0000 !important;
  color: #fff !important;
  padding: 2px 6px;
  line-height: 1.1;
}
.panel.panel-sidebar .panel-title .btn.btn-primary.btn-xs:hover {
  filter: brightness(1.15);
}
/* Cuerpo del panel */
.panel.panel-sidebar .panel-body {
  background: #1b1b1b !important;
  color: #e4e6eb !important;
}

/* Overwrite moderno (borde redondeado, gradiente sutil) */
.panel.panel-sidebar {
  background: #131416 !important;
  color: #e4e6eb !important;
  border: 1px solid #2a2b2d !important;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  overflow: hidden;
}
.panel.panel-sidebar > .panel-heading {
  background: linear-gradient(180deg, rgba(255,50,20,.12), rgba(255,50,20,0));
  color: #fff !important;
  border-bottom: 1px solid rgba(255,50,20,.25) !important;
  padding: 12px 14px;
}
.panel.panel-sidebar .panel-title {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; letter-spacing: .3px;
}
.panel.panel-sidebar .panel-title .btn.btn-primary.btn-xs {
  background: #ff3214 !important; border: 0 !important; color: #fff !important;
  padding: 2px 8px; border-radius: 8px;
  transition: transform .12s ease, filter .12s ease;
}
.panel.panel-sidebar .panel-title .btn.btn-primary.btn-xs:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* ==========================================================================
   TABLA DE RANKINGS — estilo moderno
   ========================================================================== */
.rank-table-modern {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.rank-table-modern thead th {
  background: #1a1b1e;
  color: #eaecef;
  border-bottom: 2px solid #ff3214;
  font-size: 12px; text-transform: uppercase; letter-spacing: .6px;
  padding: 12px 10px; white-space: nowrap;
}
.rank-table-modern tbody tr {
  background: #131416;
  transition: background .15s ease, transform .08s ease;
}
.rank-table-modern tbody tr:nth-child(odd) { background: #15171a; }
.rank-table-modern tbody tr:hover {
  background: #1a1c21;
  transform: translateY(-1px);
}
.rank-table-modern td {
  border-bottom: 1px solid #232428;
  padding: 12px 10px;
  color: #e4e6eb;
}

/* Columna de posición tipo “pill” */
.rank-table-modern .rank-num {
  width: 52px;
  font-weight: 800;
  color: #fff;
}
.rank-table-modern .rank-num::before {
  content: "#";
  margin-right: 2px;
  opacity: .65;
}
.rank-table-modern tbody .rank-num {
  text-align: center;
  background: linear-gradient(180deg, rgba(255,50,20,.22), rgba(255,50,20,.06));
  border: 1px solid rgba(255,50,20,.3);
  color: #ffd9d3;
  border-radius: 999px;
  padding: 6px 0;
}

/* Enlace del personaje */
.rank-table-modern .rank-player a {
  color: #eaf2ff;
  font-weight: 600;
  text-decoration: none;
  transition: color .12s ease;
}
.rank-table-modern .rank-player a:hover { color: #ffda8a; }

/* Clase como “chip” */
.rank-table-modern .rank-class {
  font-weight: 600;
  color: #b6c2ff;
}
.rank-table-modern .rank-class::before {
  content: "●";
  font-size: 10px;
  margin-right: 6px;
  color: #7eb9ff; /* puntito indicador */
  opacity: .9;
}

/* Nivel en negrita */
.rank-table-modern .rank-level {
  font-weight: 800;
  color: #fff;
}

/* Cabecera con esquinas redondeadas */
.rank-table-modern thead th:first-child { border-top-left-radius: 12px; }
.rank-table-modern thead th:last-child  { border-top-right-radius: 12px; }

/* Responsive compacto para la tabla */
@media (max-width: 480px) {
  .rank-table-modern thead th,
  .rank-table-modern tbody td {
    padding: 10px 8px; font-size: 12px;
  }
  .rank-table-modern .rank-num { width: 44px; }
}
/* ============================
   RANKINGS — COMPACTO Y LIMPIO
   (añadir al final de style.css)
   ============================ */

/* ---------- Contenedor de iconos de clases (grilla) ----------
   Estructura sugerida:
   <div class="rank-classes">
     <figure class="rank-class-card">
       <img src="..." alt="Wizards">
       <figcaption>Wizards</figcaption>
     </figure>
     ...
   </div>
*/
.rank-classes{
  /* Centra el bloque y limita el ancho para que no crezca infinito */
  max-width: 880px;
  margin: 0 auto 18px;
  padding: 8px 8px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
@media (max-width: 980px){
  .rank-classes{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .rank-classes{ grid-template-columns: 1fr; }
}

/* Tarjeta para cada clase (imagen + nombre) */
.rank-class-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(133, 52, 73, 0.35);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.rank-class-card:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,.3);
}
.rank-class-card img{
  display:block;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
.rank-class-card figcaption{
  font-weight: 700;
  color: #28180c;
  text-align: center;
}

/* ---------- Tabla de ranking: contenedor con scroll vertical ----------
   Estructura sugerida:
   <div class="rank-table-wrap">
     <table class="rank-table">...</table>
   </div>
*/
.rank-table-wrap{
  /* centra, limita el ancho y evita que el contenido “alargue” toda la página */
  max-width: 900px;
  margin: 10px auto 26px;
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(133, 52, 73, .5);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
  overflow: hidden;      /* oculta los bordes redondeados de hijos */
}

/* Cabecera pegajosa + área con tope de alto y scroll suave */
.rank-table-wrap .rank-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.rank-table-wrap{
  /* hacemos que el propio wrap maneje el scroll vertical */
  max-height: 520px;     /* ajusta a gusto */
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #7a6142 rgba(0,0,0,.15);
}
.rank-table-wrap::-webkit-scrollbar{
  height: 10px;
  width: 10px;
}
.rank-table-wrap::-webkit-scrollbar-thumb{
  background: #7a6142;
  border-radius: 8px;
}

/* Estética de la tabla */
.rank-table thead th{
  position: sticky;     /* “pega” el header al hacer scroll */
  top: 0;
  z-index: 1;
  background: rgba(56, 13, 20, 0.85);
  color: #ffd481;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .35px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(133,52,73,.55);
}
.rank-table tbody tr{
  background: rgba(255,255,255,.03);
  transition: background .12s ease, transform .06s ease;
}
.rank-table tbody tr:nth-child(odd){
  background: rgba(255,255,255,.06);
}
.rank-table tbody tr:hover{
  background: rgba(255,255,255,.09);
  transform: translateY(-1px);
}
.rank-table td{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(133,52,73,.35);
  color: #28180c;
  white-space: nowrap;
}
.rank-table td:first-child{
  /* número de posición más vistoso */
  font-weight: 700;
  text-align: center;
  color: #3b1f08;
}
.rank-table td img{
  display:block;
  max-width: 28px;
  max-height: 28px;
  border-radius: 4px;
  margin: 0 auto;
}

/* Pie de tabla (ej. “Last Updated …”) */
.rank-table tfoot td{
  padding: 10px 14px;
  font-size: 12px;
  color: #6e4e3c;
  background: rgba(56,13,20,.08);
}

/* ---------- Responsivo: scroll horizontal “amable” en móviles ---------- */
@media (max-width: 720px){
  .rank-table-wrap{
    margin-left: 8px;
    margin-right: 8px;
  }
  .rank-table{
    display: block;
    overflow-x: auto;      /* si no entra, permite arrastrar de lado a lado */
    -webkit-overflow-scrolling: touch;
  }
  .rank-table td,
  .rank-table th{
    padding: 10px 12px;
  }
}

/* ---------- Ajustes suaves para integrarse con tu paleta actual ---------- */
.rank-table a{
  color: #29282d;
  text-decoration: none;
}
.rank-table a:hover{
  color: #3b1f08;
  text-decoration: underline;
}
