/*!
 =========================================================
 * WebEngine CMS - Dark Inferno Theme Override
 * MUMT 99B - Premium Dark Fantasy Edition
 =========================================================
 * 
 * Transformación del template AtlasDark a estética:
 * - Infernal / Dark Fantasy
 * - Fuego y Magma
 * - 80% oscuro / 20% fuego
 * - MUMT clásico + Diablo aesthetic
 * 
 =========================================================
*/

/* ====================================================
   PALETA DE COLORES DARK INFERNO
   ==================================================== */
:root {
    --bg-primary: #050505;
    --bg-secondary: #0B0B0B;
    --bg-tertiary: #111111;
    --bg-quaternary: #151515;
    
    --border-primary: #2A1208;
    --border-secondary: #3A1A0D;
    
    --accent-primary: #FF5A1F;
    --accent-secondary: #D72626;
    --accent-tertiary: #B31217;
    
    --glow-fire: rgba(255,90,31,.35);
    
    --title-color: #FFB347;
    
    --text-primary: #F5F5F5;
    --text-secondary: #B8B8B8;
}

/* ====================================================
   BODY Y ESTRUCTURA PRINCIPAL
   ==================================================== */

body {
    background: var(--bg-primary) url('../img/background-2600.jpg') no-repeat top center;
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-primary);
}

/* Overlay oscuro sutil para mejorar legibilidad */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(5,5,5,0.4) 0%, rgba(11,11,11,0.6) 100%);
    pointer-events: none;
    z-index: 0;
}

/* ====================================================
   HEADER
   ==================================================== */

#header {
    color: var(--title-color);
    text-shadow: 0 0 20px rgba(255,90,31,0.5);
}

/* ====================================================
   CONTENEDOR PRINCIPAL
   ==================================================== */

#container {
    background: rgba(17, 17, 17, 0.95);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(10px);
}

#content {
    color: var(--text-primary);
}

/* ====================================================
   NAVBAR - Estilo fuego infernal
   ==================================================== */

#navbar {
    background: rgba(11, 11, 11, 0.95);
    border-bottom: 1px solid var(--border-secondary);
    backdrop-filter: blur(15px);
}

#navbar ul li a {
    color: var(--text-primary) !important;
}

#navbar ul li a:focus,
#navbar ul li a:hover {
    color: var(--accent-primary) !important;
    background: rgba(255, 90, 31, 0.1);
    box-shadow: 0 0 15px rgba(255, 90, 31, 0.2);
}

/* Active state */
#navbar ul li a.active {
    color: var(--accent-primary) !important;
    background: rgba(179, 18, 23, 0.2);
    border-bottom: 2px solid var(--accent-primary);
}

/* ====================================================
   ENLACES GLOBALES
   ==================================================== */

a {
    color: var(--accent-primary);
    transition: all .3s ease-in-out;
}

a:hover {
    color: var(--title-color);
    text-shadow: 0 0 8px rgba(255,90,31,0.3);
}

/* ====================================================
   CAMPOS INPUT
   ==================================================== */

input[type=text],
input[type=password],
input[type=number],
select,
textarea {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}

input[type=text]:focus,
input[type=password]:focus,
input[type=number]:focus,
select:focus,
textarea:focus {
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 10px var(--glow-fire);
    outline: none;
}

/* ====================================================
   BOTONES - Gradiente fuego premium
   ==================================================== */

button,
input[type=submit],
input[type=button],
.btn,
.btn-primary,
.btn-default {
    background: linear-gradient(180deg, var(--accent-primary), #a30000) !important;
    border: 1px solid #5A1A0A !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all .3s ease !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

button:hover,
input[type=submit]:hover,
input[type=button]:hover,
.btn:hover,
.btn-primary:hover {
    background: linear-gradient(180deg, #ff7a3f, var(--accent-tertiary)) !important;
    box-shadow: 0 0 20px var(--glow-fire), 0 4px 20px rgba(0,0,0,0.5) !important;
    transform: translateY(-2px);
}

/* ====================================================
   TÍTULOS
   ==================================================== */

.page-title,
h1, h2, h3 {
    color: var(--title-color) !important;
    text-shadow: 0 0 15px rgba(255,90,31,0.3);
    font-weight: 700;
}

.panel-title {
    color: var(--title-color) !important;
    text-shadow: 0 0 10px rgba(255,90,31,0.2);
}

/* ====================================================
   PANELS / CARDS - Premium oscuro
   ==================================================== */

.panel-general,
.panel-sidebar,
.panel-news,
.panel-usercp,
.panel-downloads,
.panel-addstats {
    background: rgba(17, 17, 17, 0.95) !important;
    border: 1px solid var(--border-primary) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.panel-general:hover,
.panel-sidebar:hover,
.panel-news:hover {
    box-shadow: 0 0 25px rgba(255, 90, 31, 0.15), 0 10px 30px rgba(0, 0, 0, 0.6);
}

.panel-sidebar > .panel-heading {
    background: linear-gradient(135deg, rgba(42, 18, 8, 0.4), rgba(17, 17, 17, 0.9));
    color: var(--title-color);
    border-bottom: 1px solid var(--border-secondary);
}

.panel-news .panel-heading {
    background: linear-gradient(135deg, rgba(42, 18, 8, 0.3), transparent);
    border-bottom: 1px solid var(--border-primary);
}

.panel-news .panel-footer {
    background: rgba(11, 11, 11, 0.8);
    color: var(--text-secondary);
    border-top: 1px solid var(--border-primary);
}

.panel-body .panel-title {
    border-bottom: 1px solid var(--border-secondary);
}

/* ====================================================
   RANKINGS - Glow fuego premium
   ==================================================== */

.rankings-table tr td {
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.rankings-table-place {
    font-weight: bold;
    font-size: 24px;
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(255, 90, 31, 0.5);
}

/* TOP 1 con glow fuego especial */
.rankings-table tr:first-child td {
    color: var(--title-color) !important;
    background: linear-gradient(90deg, rgba(42, 18, 8, 0.3), transparent);
    border-bottom: 2px solid var(--accent-primary) !important;
    box-shadow: 0 0 20px rgba(255, 90, 31, 0.3);
}

.rankings-table tr:hover td {
    background: rgba(42, 18, 8, 0.2);
}

.rankings_menu a {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--accent-primary);
    transition: all .3s ease;
}

.rankings_menu a:hover,
.rankings_menu a.active {
    color: var(--title-color);
    border-color: var(--accent-primary);
    background: rgba(42, 18, 8, 0.3);
    box-shadow: 0 0 15px rgba(255, 90, 31, 0.2);
}

.rankings_menu span {
    color: var(--title-color);
}

/* ====================================================
   NEWS MODULE - Cards oscuras con bordes magma
   ==================================================== */

.panel-news {
    border: 1px solid var(--border-secondary);
}

.panel-news .panel-title {
    color: var(--title-color);
}

.home-news-block .home-news-block-header h2 {
    color: var(--title-color) !important;
    text-shadow: 0 0 15px rgba(255, 90, 31, 0.3);
}

.home-news-block .home-news-block-header a {
    color: var(--accent-primary);
}

.home-news-block-article .home-news-block-article-type {
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(42, 18, 8, 0.2);
}

.home-news-block-article .home-news-block-article-title,
.home-news-block-article .home-news-block-article-date {
    color: var(--title-color);
}

/* ====================================================
   FOOTER - Negro profundo con separadores naranja
   ==================================================== */

.footer {
    background: rgba(5, 5, 5, 0.98);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

.footer hr {
    border-top: 1px solid var(--border-secondary);
}

.webengine-powered {
    color: var(--accent-primary) !important;
}

.webengine-powered:hover {
    color: var(--title-color) !important;
}

/* ====================================================
   TABLAS GENERALES
   ==================================================== */

.general-table-ui,
.myaccount-table {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.general-table-ui tr:first-child td {
    color: var(--title-color);
    font-weight: bold;
}

.general-table-ui tr:nth-child(2n+2) td {
    background: rgba(11, 11, 11, 0.5);
}

.myaccount-table tr td {
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.myaccount-table tr td:first-child {
    color: var(--title-color);
    font-weight: bold;
}

/* ====================================================
   GLOBAL TOP BAR
   ==================================================== */

.global-top-bar {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-primary);
}

.global-top-bar a {
    color: var(--accent-primary) !important;
}

.global-top-bar a:hover {
    color: var(--title-color) !important;
}

.global-top-bar a.logout {
    color: var(--accent-secondary) !important;
}

/* ====================================================
   HEADER INFO
   ==================================================== */

.header-info-container .header-info {
    background: rgba(11, 11, 11, 0.8);
    border: 1px solid var(--border-primary);
    color: var(--title-color);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
}

.header-info-container .header-info-block {
    color: var(--title-color);
}

.header-info-container .header-info-block .online-count {
    color: var(--accent-primary);
    font-weight: bold;
}

/* ====================================================
   ONLINE BAR - Barra de fuego
   ==================================================== */

.webengine-online-bar {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
}

.webengine-online-bar .webengine-online-bar-progress {
    background: linear-gradient(90deg, var(--accent-tertiary), var(--accent-primary));
    box-shadow: 0 0 15px var(--glow-fire);
}

/* ====================================================
   USER CP SIDEBAR
   ==================================================== */

.panel-usercp ul li a {
    color: var(--text-primary) !important;
}

.panel-usercp ul li a:hover {
    color: var(--accent-primary) !important;
}

/* ====================================================
   MY ACCOUNT CHARACTER LIST
   ==================================================== */

.myaccount-character-block {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
}

.myaccount-character-block-location {
    color: var(--title-color);
}

.myaccount-character-name a {
    color: var(--title-color);
}

.myaccount-character-name a:hover {
    color: var(--accent-primary);
}

/* ====================================================
   RANKINGS CLASS FILTER
   ==================================================== */

.rankings-class-filter-selection {
    color: var(--title-color);
}

.rankings-class-filter-selection:hover {
    color: var(--accent-primary) !important;
}

/* ====================================================
   TOS PAGE
   ==================================================== */

.tos_list li {
    color: var(--accent-primary);
}

.tos_list li p {
    color: var(--text-primary);
}

/* ====================================================
   PAYPAL / DONATIONS
   ==================================================== */

.paypal-gateway-content {
    background: var(--bg-tertiary);
    border: 3px solid var(--accent-primary);
    color: var(--title-color);
}

.paypal-gateway-logo {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
}

.paypal-gateway-conversion-rate {
    color: var(--title-color);
}

.paypal-gateway-form div {
    color: var(--title-color);
}

.paypal-gateway-form input[type=text] {
    border: 3px solid var(--accent-primary);
    color: var(--accent-primary);
    background: var(--bg-secondary);
}

.module-requirements {
    color: var(--title-color);
}

/* ====================================================
   DOWNLOADS
   ==================================================== */

.download-description {
    color: var(--title-color);
}

/* ====================================================
   STAT CARDS (Homepage)
   ==================================================== */

.stat-card {
    background: rgba(17, 17, 17, 0.95);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(255, 90, 31, 0.2), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stat-icon {
    color: var(--accent-primary);
}

.stat-label {
    color: var(--text-secondary);
}

/* ====================================================
   LANGUAGE SWITCHER
   ==================================================== */

.webengine-language-switcher li {
    background: var(--bg-tertiary);
}

.webengine-language-switcher li a {
    color: var(--title-color);
}

.webengine-language-switcher li a:hover {
    color: var(--accent-primary) !important;
}

/* ====================================================
   EVENT TIMER
   ==================================================== */

.event-schedule-open {
    color: var(--accent-primary);
}

.event-schedule-inprogress {
    color: var(--title-color);
}

/* ====================================================
   EFECTOS VISUALES SUTILES
   ==================================================== */

/* Glow sutil en elementos interactivos */
.panel-general:hover,
.panel-news:hover,
.stat-card:hover,
button:hover {
    animation: subtle-glow 2s ease-in-out infinite;
}

@keyframes subtle-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 90, 31, 0.1), 0 8px 25px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 90, 31, 0.2), 0 10px 30px rgba(0, 0, 0, 0.6);
    }
}

/* Sombras profundas para depth */
.panel-general,
.panel-sidebar,
.panel-news {
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 90, 31, 0.05);
}

/* Text glow para títulos importantes */
h1, h2, .page-title {
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 90, 31, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 90, 31, 0.5);
    }
}

/* ====================================================
   SCROLLBAR PERSONALIZADO - Estilo fuego
   ==================================================== */

::-webkit-scrollbar {
    width: 12px;
    background: var(--bg-primary);
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-tertiary));
    border-radius: 6px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--title-color), var(--accent-primary));
    box-shadow: 0 0 10px var(--glow-fire);
}

/* ====================================================
   ADMIN BUTTON
   ==================================================== */

.admincp-button {
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-tertiary)) !important;
    border: 2px solid var(--border-secondary) !important;
    color: #FFFFFF !important;
}

.admincp-button:hover {
    box-shadow: 0 0 20px var(--glow-fire) !important;
}

/* ====================================================
   RESPONSIVE ADJUSTMENTS
   ==================================================== */

@media (max-width: 1200px) {
    :root {
        font-size: 14px;
    }
}

/* ====================================================
   CASTLE SIEGE STYLES
   ==================================================== */

.castle-siege-guild-logo {
    border: 2px solid var(--border-primary);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* ====================================================
   VIP SYSTEM STYLES
   ==================================================== */

.vip-benefits {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
}

.vip-benefits:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--glow-fire);
}

/* ====================================================
   FINAL TOUCHES - Premium polish
   ==================================================== */

/* Mejora visual en hover de imágenes */
img {
    transition: all .3s ease;
}

img:hover {
    filter: brightness(1.1);
}

/* Separadores con estilo fuego */
hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-secondary), transparent);
}

/* Badges y etiquetas */
.badge,
.label {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    color: #FFFFFF;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Alerts con estilo infernal */
.alert {
    background: rgba(17, 17, 17, 0.95);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.alert-danger {
    border-color: var(--accent-secondary);
    background: rgba(179, 18, 23, 0.1);
}

.alert-success {
    border-color: var(--accent-primary);
    background: rgba(255, 90, 31, 0.1);
}

.alert-warning {
    border-color: var(--title-color);
    background: rgba(255, 179, 71, 0.1);
}

/* ====================================================
   CURSORES PERSONALIZADOS (BASE)
   ==================================================== */

/* Cursor normal para toda la página */
body {
    cursor: url('../img/normal cursor.cur'), auto;
}

/* Cursor para elementos interactivos */
a,
button,
input[type=submit],
input[type=button],
.btn {
    cursor: url('../img/link select.cur'), pointer;
}

/* Cursor de texto para campos de entrada */
input[type=text],
input[type=password],
input[type=number],
textarea {
    cursor: url('../img/text.cur'), text;
}

/* ====================================================
   SPONSOR SECTION - Patrocinador Oficial Premium
   ==================================================== */

.sponsor-section {
    width: 100%;
    margin: 40px 0 60px 0;
    padding: 0;
}

.sponsor-container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(17, 17, 17, 0.95);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 90, 31, 0.05);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.sponsor-container:hover {
    border-color: var(--border-secondary);
    box-shadow: 
        0 0 30px rgba(255, 90, 31, 0.15),
        0 10px 35px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 90, 31, 0.1);
    transform: translateY(-3px);
}

.sponsor-header {
    background: linear-gradient(135deg, rgba(42, 18, 8, 0.4), rgba(17, 17, 17, 0.9));
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sponsor-title {
    margin: 0;
    color: var(--title-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(255, 90, 31, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sponsor-title::before,
.sponsor-title::after {
    content: '';
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    box-shadow: 0 0 8px rgba(255, 90, 31, 0.4);
}

.sponsor-body {
    padding: 20px;
    position: relative;
}

.sponsor-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(42, 18, 8, 0.5);
    transition: all 0.4s ease;
}

.sponsor-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 90, 31, 0.05) 0%,
        transparent 50%,
        rgba(179, 18, 23, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.sponsor-link:hover::before {
    opacity: 1;
}

.sponsor-link:hover {
    border-color: var(--accent-primary);
    box-shadow: 
        0 0 20px rgba(255, 90, 31, 0.25),
        inset 0 0 30px rgba(255, 90, 31, 0.05);
}

.sponsor-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: all 0.4s ease;
    background: rgba(11, 11, 11, 0.5);
}

.sponsor-link:hover .sponsor-image {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Efecto de glow sutil en el contenedor */
@keyframes sponsor-glow {
    0%, 100% {
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.6),
            inset 0 1px 0 rgba(255, 90, 31, 0.05);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(255, 90, 31, 0.12),
            0 8px 25px rgba(0, 0, 0, 0.6),
            inset 0 1px 0 rgba(255, 90, 31, 0.08);
    }
}

.sponsor-container:hover {
    animation: sponsor-glow 3s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sponsor-section {
        margin: 30px 0 40px 0;
    }
    
    .sponsor-container {
        max-width: 90%;
    }
    
    .sponsor-body {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .sponsor-section {
        margin: 20px 0 30px 0;
    }
    
    .sponsor-container {
        max-width: 95%;
        border-radius: 8px;
    }
    
    .sponsor-header {
        padding: 10px 16px;
    }
    
    .sponsor-title {
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    .sponsor-title::before,
    .sponsor-title::after {
        width: 25px;
    }
    
    .sponsor-body {
        padding: 12px;
    }
    
    .sponsor-link {
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .sponsor-container {
        max-width: 98%;
    }
    
    .sponsor-header {
        padding: 8px 12px;
    }
    
    .sponsor-title {
        font-size: 11px;
        gap: 6px;
    }
    
    .sponsor-title::before,
    .sponsor-title::after {
        width: 20px;
    }
    
    .sponsor-body {
        padding: 10px;
    }
}

/* Variante alternativa: Con badge de "Oficial" */
.sponsor-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 90, 31, 0.3);
    z-index: 2;
    pointer-events: none;
}

/* Variante: Sponsor compacto (para sidebar) */
.sponsor-sidebar {
    background: rgba(17, 17, 17, 0.95);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.sponsor-sidebar:hover {
    border-color: var(--border-secondary);
    box-shadow: 0 0 20px rgba(255, 90, 31, 0.15);
    transform: translateY(-2px);
}

.sponsor-sidebar-title {
    color: var(--title-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-align: center;
    text-shadow: 0 0 8px rgba(255, 90, 31, 0.3);
}

.sponsor-sidebar .sponsor-link {
    border-radius: 6px;
}

/* ====================================================
   END DARK INFERNO THEME
   ==================================================== */

/* =========================================================
 * WebEngine CMS
 * https://webenginecms.org/
 * =========================================================
 * Licensed under the MIT license
 * http://opensource.org/licenses/MIT
 * =========================================================
*/

.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
    border-top: none !important;
}

a:focus, a:hover {
    color: inherit !important;
    text-decoration: none !important;
}

.form-control {
	background: #111f20;
	border: 1px solid #20393a;
	color: #6c8989;
}
.form-control:focus {
	border: 1px solid #1c919d;
}

/* http://stackoverflow.com/questions/19562903/remove-padding-from-columns-in-bootstrap-3 */
.nopadding {
   padding: 0 !important;
   margin: 0 !important;
}

/* http://stackoverflow.com/questions/20547819/vertical-align-with-bootstrap-3 */
.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}

.thumbnail {
    background-color: #142526;
    border: 1px solid #20393a;
}
a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active {
  border-color: #133538;
}

.btn-primary {
    color: #1c919d;
    background-color: transparent;
    border-color: #1c919d;
    -moz-transition: all .1s ease-in;
    -o-transition: all .1s ease-in;
    -webkit-transition: all .1s ease-in;
    transition: all .1s ease-in;
    -moz-border-radius: 0px;
    border-radius: 0px;
}
.btn-primary:active, .btn-primary:focus, .btn-primary:hover {
    color: #ffffffba !important;
    background-color: #1c919d !important;
    border-color: #1c919d !important;
}

.form-horizontal .control-label {
	text-align: left !important;
}

.table-bordered {
    border: 1px solid #20393a;
}

.table-bordered>tbody>tr>td, .table-bordered>tbody>tr>th, .table-bordered>tfoot>tr>td, .table-bordered>tfoot>tr>th, .table-bordered>thead>tr>td, .table-bordered>thead>tr>th {
    border: 1px solid #20393a;
}

.table-striped>tbody>tr:nth-of-type(odd) {
    background-color: #142526;
}

.table-hover>tbody>tr:hover {
    background-color: #1d3536;
}

.alert-danger {
	color: #ffe2e2;
	background-color: #502c2c;
	border-color: #724a4a;
}

.alert-success {
	color: #d5ffd6;
	background-color: #406830;
	border-color: #82af70;
}

.table>thead>tr>th {
    vertical-align: bottom;
    border-bottom: 2px solid #2b4748;
}

.help-block {
    color: #6c8989;
}
/* FIX: que NO se estire a todo el ancho */
.social-bar-vertical{
  position: fixed !important;
  top: 50% !important;
  left: 0 !important;
  right: auto !important;

  transform: translateY(-50%) !important;

  width: 66px !important;          /* <- clave */
  max-width: 66px !important;      /* <- clave */
  box-sizing: border-box !important;

  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;

  background: rgba(0,0,0,0.75) !important;
  padding: 12px 8px !important;

  border-top-right-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

.social-bar-vertical .social-icon{
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  color: #fff !important;
  background: #222 !important;
  font-size: 26px !important;
  line-height: 1 !important;
}

/* ========== LOGIN BOX STYLES (reemplaza Test 3) ========== */
.login-box-container {
    background: rgba(26, 35, 50, 0.95) !important;
    border: 1px solid rgba(79, 195, 247, 0.3) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    backdrop-filter: blur(15px) !important;
    transition: all 0.3s ease !important;
    min-height: 320px !important;
}

.login-box-container:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(79, 195, 247, 0.5) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
}

.login-box-header {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.2), rgba(26, 35, 50, 0.9)) !important;
    padding: 20px !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(79, 195, 247, 0.2) !important;
}

.login-box-title {
    color: #4fc3f7 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.login-box-body {
    padding: 24px !important;
}

.login-form-group {
    margin-bottom: 20px !important;
}

.login-form-control {
    background: rgba(10, 15, 22, 0.8) !important;
    border: 1px solid rgba(79, 195, 247, 0.3) !important;
    color: #e0e0e0 !important;
    padding: 14px 16px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.login-form-control:focus {
    border-color: #4fc3f7 !important;
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.3) !important;
    outline: none !important;
    background: rgba(79, 195, 247, 0.05) !important;
}

.login-form-control::placeholder {
    color: #7c8aa0 !important;
}

.login-btn {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 14px 24px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.login-btn:hover {
    background: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(79, 195, 247, 0.4) !important;
    color: #ffffff !important;
}

.login-links {
    text-align: center !important;
    margin-top: 16px !important;
}

.login-link {
    color: #4fc3f7 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    margin: 0 8px !important;
    transition: color 0.3s ease !important;
}

.login-link:hover {
    color: #81d4fa !important;
    text-decoration: none !important;
}

.register-prompt {
    text-align: center !important;
    margin-top: 20px !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(79, 195, 247, 0.2) !important;
    color: #b0b0b0 !important;
    font-size: 13px !important;
}

.register-btn {
    color: #4fc3f7 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.register-btn:hover {
    color: #81d4fa !important;
    text-decoration: none !important;
}

/* ========== NEWS CMS INTEGRATION STYLES (reemplaza Test 4) ========== */
.cms-news-container {
    background: rgba(26, 35, 50, 0.95) !important;
    border: 1px solid rgba(79, 195, 247, 0.3) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    backdrop-filter: blur(15px) !important;
    transition: all 0.3s ease !important;
}

.cms-news-container:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(79, 195, 247, 0.5) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
}

.cms-news-image {
    height: 240px !important;
    position: relative !important;
    overflow: hidden !important;
    background: #050505 !important;
}

.cms-news-overlay {
    position: absolute !important;
    inset: 0 !important;
    background:
    linear-gradient(
        135deg,
        rgba(0,0,0,.45),
        rgba(10,10,10,.75)
    ),
    url('https://i.imgur.com/eNzSYvY.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.cms-news-category {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    background: rgba(79, 195, 247, 0.9) !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    backdrop-filter: blur(10px) !important;
}

.cms-news-date-overlay {
    position: absolute !important;
    bottom: 16px !important;
    right: 16px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    color: #ffffff !important;
    padding: 6px 12px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    backdrop-filter: blur(10px) !important;
}

.cms-news-content {
    padding: 28px !important;
}

.cms-news-title {
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.3px !important;
}

.cms-news-excerpt {
    color: #b0b0b0 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
}

.cms-news-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    color: #7c8aa0 !important;
    font-size: 13px !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(79, 195, 247, 0.1) !important;
}

.cms-news-author {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.cms-news-read-more {
    color: #4fc3f7 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    font-size: 12px !important;
}

.cms-news-read-more:hover {
    color: #81d4fa !important;
    transform: translateX(4px) !important;
    text-decoration: none !important;
}

/* Panel News override para integración con CMS */
.panel-news {
    margin-bottom: 30px !important;
    color: #e0e0e0 !important;
    border: 1px solid rgba(79, 195, 247, 0.2) !important;
    background: rgba(26, 35, 50, 0.95) !important;
    transition: all 0.3s ease !important;
    border-radius: 16px !important;
    backdrop-filter: blur(10px) !important;
}

.panel-news:hover {
    box-shadow: 0 15px 40px rgba(79, 195, 247, 0.15) !important;
    transform: translateY(-2px) !important;
}

.panel-news .panel-heading {
    padding: 20px !important;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.1), rgba(26, 35, 50, 0.9)) !important;
    border-bottom: 1px solid rgba(79, 195, 247, 0.2) !important;
}

.panel-news .panel-title {
    color: #4fc3f7 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.panel-news .panel-body {
    padding: 20px !important;
}

.panel-news .panel-footer {
    border-top: 1px solid rgba(79, 195, 247, 0.1) !important;
    background: rgba(26, 35, 50, 0.8) !important;
    font-style: italic !important;
    font-size: 12px !important;
    height: auto !important;
    color: #7c8aa0 !important;
    padding: 12px 20px !important;
}

/* ========== ESTILOS ADICIONALES PARA PÁGINAS DE NOTICIAS ========== */
.page-title {
    color: #4fc3f7 !important;
    font-family: 'Inter', 'PT Sans', sans-serif !important;
    font-size: 32px !important;
    margin-bottom: 24px !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Lista de noticias */
.news-list-container {
    background: rgba(26, 35, 50, 0.95) !important;
    border: 1px solid rgba(79, 195, 247, 0.2) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
}

.news-list-container:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(79, 195, 247, 0.4) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
}

/* Artículo individual de noticia */
.news-article-container {
    background: rgba(26, 35, 50, 0.95) !important;
    border: 1px solid rgba(79, 195, 247, 0.2) !important;
    border-radius: 16px !important;
    padding: 32px !important;
    margin-bottom: 24px !important;
    backdrop-filter: blur(10px) !important;
}

.news-article-title {
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    line-height: 1.3 !important;
}

.news-article-meta {
    color: #7c8aa0 !important;
    font-size: 14px !important;
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid rgba(79, 195, 247, 0.1) !important;
}

.news-article-content {
    color: #e0e0e0 !important;
    line-height: 1.8 !important;
    font-size: 16px !important;
}

.news-article-content p {
    margin-bottom: 16px !important;
}

.news-article-content h1,
.news-article-content h2,
.news-article-content h3,
.news-article-content h4,
.news-article-content h5,
.news-article-content h6 {
    color: #4fc3f7 !important;
    margin-top: 24px !important;
    margin-bottom: 16px !important;
}

/* Botón de volver */
.back-to-news {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #4fc3f7 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border: 1px solid rgba(79, 195, 247, 0.3) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    background: rgba(79, 195, 247, 0.1) !important;
    margin-bottom: 24px !important;
}

.back-to-news:hover {
    color: #81d4fa !important;
    border-color: rgba(79, 195, 247, 0.6) !important;
    background: rgba(79, 195, 247, 0.2) !important;
    transform: translateX(-4px) !important;
    text-decoration: none !important;
}

/* Paginación de noticias */
.pagination {
    justify-content: center !important;
    margin-top: 32px !important;
}

.pagination > li > a,
.pagination > li > span {
    background: rgba(26, 35, 50, 0.95) !important;
    border: 1px solid rgba(79, 195, 247, 0.2) !important;
    color: #4fc3f7 !important;
    margin: 0 4px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.pagination > li > a:hover {
    background: rgba(79, 195, 247, 0.2) !important;
    border-color: rgba(79, 195, 247, 0.4) !important;
    color: #81d4fa !important;
}

.pagination > .active > a,
.pagination > .active > span {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%) !important;
    border-color: #4fc3f7 !important;
    color: #ffffff !important;
}

/* Formularios mejorados */
.form-control {
    background: rgba(10, 15, 22, 0.8) !important;
    border: 1px solid rgba(79, 195, 247, 0.3) !important;
    color: #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
}

.form-control:focus {
    border-color: #4fc3f7 !important;
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.3) !important;
    background: rgba(79, 195, 247, 0.05) !important;
    outline: none !important;
}

/* ===================================
   SERVER INFO SECTION
   =================================== */
.server-info-section {
    margin-bottom: 60px;
}

.server-info-container {
    background: linear-gradient(145deg, #1a1a1a 0%, #0d1117 100%);
    border: 2px solid rgba(79, 195, 247, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(79, 195, 247, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.server-info-container:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 195, 247, 0.4);
    box-shadow: 0 15px 40px rgba(79, 195, 247, 0.15);
}

.server-info-header {
    background: linear-gradient(90deg, #4fc3f7, #29b6f6);
    padding: 16px 24px;
    border-bottom: 1px solid rgba(79, 195, 247, 0.3);
}

.server-info-title {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-info-title i {
    font-size: 20px;
}

.server-info-body {
    padding: 24px;
}

.server-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.server-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(79, 195, 247, 0.05);
    border: 1px solid rgba(79, 195, 247, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.server-info-item:hover {
    background: rgba(79, 195, 247, 0.1);
    border-color: rgba(79, 195, 247, 0.3);
    transform: translateY(-2px);
}

.server-info-label {
    color: #b0b0b0;
    font-weight: 500;
    font-size: 14px;
}

.server-info-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.server-info-value.highlight {
    color: #4fc3f7;
    font-weight: 700;
}

.server-info-value.online {
    color: #00aa00;
    font-weight: 700;
}

@media (max-width: 768px) {
    .server-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .server-info-item {
        padding: 10px 14px;
    }
    
    .server-info-header {
        padding: 14px 18px;
    }
    
    .server-info-body {
        padding: 18px;
    }
}

/* ===================================
   SIDEBAR BANNER (Páginas internas)
   =================================== */
.sidebar-banner {
    width: 353px;
    margin: 24px 0;
}

.sidebar-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   SERVER INFO & PUBLICIDAD INLINE
   =================================== */
.server-info-section-inline {
    flex: 1;
    min-width: 0;
}

.sidebar-banner-inline {
    width: 363px;
    flex-shrink: 0;
}

.sidebar-banner-inline a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.sidebar-banner-inline img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.sidebar-banner-inline a:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .server-info-section-inline,
    .sidebar-banner-inline {
        width: 100%;
        flex: none;
    }
    
    .sidebar-banner-inline {
        margin-top: 20px;
    }
}