/*!
    
 =========================================================
 * 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;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.1), rgba(26, 35, 50, 0.8)), url('../img/news-bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    position: relative !important;
    overflow: hidden !important;
}

.cms-news-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(26, 35, 50, 0.7)), url('https://i.imgur.com/zX40dN6.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;
    }
}