/*!
 =========================================================
 * WebEngine CMS - Plantilla Blade 9
 * https://webenginecms.org/
 =========================================================
 
 * Autor: Matías Alvarez
 * Copyright (c) 2025 Matías Alvarez, Todos los derechos reservados
 
 =========================================================
*/

/* Estilos de reinicio y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Open Sans', sans-serif;
    background: #0a0a0a;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff6b35;
    text-decoration: none;
}

/* Encabezado superior */
.top-header {
    background: #f8f9fa;
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 11px;
}

.cbe-logo {
    padding-left: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.cbe-text {
    background: #DC2F1E;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    margin-right: 8px;
    font-size: 11px;
    font-weight: 700;
}

.games-text {
    color: #666;
    font-weight: 600;
    font-size: 11px;
}



.top-nav-right {
    text-align: right;
    padding-right: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.top-nav-right a {
    color: #333;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
}

.top-nav-right a:hover {
    color: #e74c3c;
    text-decoration: none;
}

.server-time {
    color: #666;
    font-size: 11px;
}

/* Encabezado principal */
.main-header {
    background: rgba(0, 0, 0, 0.95);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blade-logo {
    padding-left: 15px;
    display: flex;
    align-items: center;
}

.blade-logo img {
    height: 40px;
}

/* Botón de menú móvil */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 40px;
    float: right;
    margin-top: 2px;
    margin-right: 15px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 2px 0;
    transition: 0.3s;
    display: block;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navegación */
.main-nav .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    padding-right: 15px;
    align-items: center;
}

.main-nav li {
    margin-left: 25px;
    position: relative;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 12px 0;
    display: block;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #e74c3c;
    text-decoration: none;
}

.nav-arrow {
    margin-left: 6px;
    font-size: 9px;
    opacity: 0.7;
}

/* Estilos del menú desplegable */
.main-nav .dropdown {
	position: relative !important;
}

.main-nav .dropdown-menu {
	position: absolute !important;
	top: calc(100% + 8px) !important;
	right: 0 !important;
	left: auto !important;
	background: #000000 !important;
	border: none !important;
	border-radius: 0 !important;
	min-width: 200px !important;
	width: 200px !important;
	box-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
	opacity: 0 !important;
	visibility: hidden !important;
	transform: translateY(-10px) !important;
	transition: all 0.3s ease !important;
	z-index: 1000 !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
	float: none !important;
}

.main-nav .dropdown:hover .dropdown-menu {
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateY(0) !important;
}

.main-nav .dropdown-menu li {
	margin: 0 !important;
	display: block !important;
	width: 100% !important;
	float: none !important;
	border-bottom: 1px solid #222 !important;
	list-style: none !important;
}

.main-nav .dropdown-menu li:last-child {
	border-bottom: none !important;
}

.main-nav .dropdown-menu li a {
	display: block !important;
	padding: 12px 20px !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	text-decoration: none !important;
	transition: background-color 0.3s ease !important;
	background: #000000 !important;
	width: 100% !important;
	box-sizing: border-box !important;
	border: none !important;
	margin: 0 !important;
	float: none !important;
}

.main-nav .dropdown-menu li a:hover {
	background: #444444 !important;
	color: #fff !important;
	text-decoration: none !important;
}

/* Sección principal */
.hero-section {
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 0, 0, 0.7) 0%, rgba(51, 0, 0, 0.5) 50%, rgba(102, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 50px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    z-index: 2;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #ffcc99;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-character {
    flex: 1;
    text-align: right;
}

.hero-character img {
    max-height: 500px;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.3));
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1000;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    display: inline-block;
    padding: 2px;
    margin: 0;
    box-sizing: content-box;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.dot.active {
    background: #ff6b35;
    border-color: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.dot.active:hover {
    background: #ff8c5a;
    border-color: #ff8c5a;
}

/* Contenedor principal */
.main-container {
    background: #f5f5f5;
    min-height: 600px;
    padding: 30px 0;
}

/* Área de contenido */
.content-area {
    padding: 0 15px;
}

/* Sección de noticias */
.news-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.section-header h2 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.view-all {
    color: #e74c3c;
    font-size: 12px;
    text-decoration: none;
    font-weight: 600;
}

.view-all:hover {
    color: #c0392b;
    text-decoration: none;
}

/* Elementos de noticias */
.news-item {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: none;
    border-bottom: 1px solid #eee;
    transition: none;
}

.news-item:hover {
    transform: none;
}

/* Diseño expandido de noticias */
.news-item-expanded {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: none;
}

.news-hero-image {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.news-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 40px 30px 30px;
    color: #ffffff;
}

.news-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.news-hero-date {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.news-hero-date .news-author {
    color: rgba(255, 255, 255, 0.8);
}

.news-expanded-content {
    padding: 30px;
}

.news-expanded-content .news-excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

.news-item-expanded .news-category-overlay {
    position: absolute;
    top: -5px;
    left: 20px;
    background: #e74c3c;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.news-item-header {
    display: none;
}

.news-category {
    background: #e74c3c;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.news-title a {
    color: #333;
    text-decoration: none;
}

.news-title a:hover {
    color: #e74c3c;
}

.news-date {
    color: #999;
    font-size: 11px;
    margin-bottom: 10px;
}

.news-content {
    display: flex;
    padding: 15px 0;
}

.news-image {
    width: 120px;
    height: 80px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    margin-right: 15px;
    border-radius: 4px;
}

.news-text {
    padding: 0;
    flex: 1;
}

.news-excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 13px;
}

.read-more {
    color: #e74c3c;
    font-weight: 600;
    font-size: 11px;
    text-decoration: none;
}

/* Barra lateral */
.sidebar {
    padding: 0 15px;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 0;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid #eee;
}

.sidebar-widget-header {
    background: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.sidebar-widget-title {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.sidebar-widget-content {
    padding: 15px;
}

/* Widget de jugar */
.play-widget {
    position: relative;
    background: none;
    border: none;
    margin-bottom: 20px;
}

.play-widget-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    overflow: hidden;
}

.play-widget-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-widget-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.play-widget-overlay h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Botón de jugar ahora */
.play-now-btn {
    background: #e74c3c;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.play-now-btn:hover {
    background: #c0392b;
    color: #ffffff;
    text-decoration: none;
}

/* Widget de registro */
.register-widget {
    background: #e74c3c;
    border: none;
}

.register-widget-content {
    padding: 20px;
    text-align: center;
}

.register-widget-content h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Botón de registro */
.register-btn {
    background: #ffffff;
    color: #e74c3c;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.register-btn:hover {
    background: #f8f9fa;
    color: #c0392b;
    text-decoration: none;
}

/* Pie de página */
.main-footer {
    background: #0a0a0a;
    border-top: 1px solid #333;
    padding: 40px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
}

.footer-links a:hover {
    color: #ff6b35;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #ff6b35;
    transform: translateY(-2px);
}

.footer-social img {
    width: 20px;
    height: 20px;
}

/* Diseño responsivo */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    /* Ajustes específicos para el texto del segundo slider */
      .hero-slide:nth-child(2) .hero-content {
          padding-top: 0px;
      }
      
      .hero-slide:nth-child(2) .hero-title {
          font-size: 5.5rem;
          line-height: 0.5;
          margin-bottom: 15px;
          text-align: center;
          display: flex;
          flex-direction: column;
          align-items: center;
          color: transparent;
          text-shadow: none !important;
      }
      
      .hero-slide:nth-child(2) .hero-title::before {
          content: "ELIGE TU";
          display: block;
          color: #fff;
}

.paypal-gateway-continue .btn-success {
    display: inline-block;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    background-color: #28a745; /* Bootstrap's success green */
    border: 1px solid #28a745;
}

.paypal-gateway-continue .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
          margin-bottom: 5px;
          text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
      }
      
      .hero-slide:nth-child(2) .hero-title::after {
          content: "PERSONAJE";
          display: block;
          color: #fff;
          text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
      }
      
      .hero-slide:nth-child(2) .hero-subtitle {
          font-size: 1.2rem;
          line-height: 1.3;
          letter-spacing: 1px;
          text-align: center;
          margin: 0 auto;
          display: block;
      }
      

    
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }
    
    .news-content {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: 200px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Ajustes del pie de página para pantallas medianas */
    .main-footer {
        padding: 40px 0 30px 0;
    }
    
    .footer-content {
        padding: 0 20px;
    }
    
    .footer-content .row {
        margin: 0 -15px;
    }
    
    .footer-content .col-xs-3 {
        width: 50%;
        padding: 0 15px 25px 15px;
    }
    
    .footer-section h4 {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .footer-section ul li {
        margin-bottom: 10px;
    }
    
    .footer-section ul li a {
        font-size: 13px;
    }
    
    .footer-bottom {
        margin-top: 30px;
        padding-top: 25px;
    }
    
    .footer-logo {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .footer-logo img {
        height: 35px;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    .footer-copyright p {
        font-size: 13px;
        margin-bottom: 12px;
        text-align: center;
        line-height: 1.4;
    }
    
    .footer-links {
        gap: 20px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
}

/* Sobrescritura de paneles para el módulo de noticias */
.panel-news {
    background: #2a2a2a;
    border: none;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.panel-news .panel-heading {
    background: #333333;
    border-bottom: none;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
}

.panel-news .panel-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.panel-news .panel-body {
    background: #2a2a2a;
    color: #cccccc;
    padding: 20px;
}

.panel-news .panel-footer {
    background: #333333;
    border-top: 1px solid #444;
    color: #999;
    padding: 15px 20px;
    border-radius: 0 0 8px 8px;
}

/* Estilos de formularios */
.paypal-gateway-container {
    background: linear-gradient(to top, #ad751e, #ddb578);
    border: 1px solid #b3962e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.paypal-gateway-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mercadopago-gateway-logo {
    width: 250px;
    height: 150px;
    background-image: url('../img/wcoins.png');
    background-position: left center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.paypal-gateway-form div {
    color: #fff;
    font-size: 3rem;
    font-weight: 600;
}

.paypal-gateway-continue .btn {
    margin-top: 10px;
}
.form-control {
/*    background: #333; */
/*    border: 1px solid #555; */
/*    color: #fff; */
    border-radius: 4px;
}

.form-control:focus {
    background: #f5f5f5;
    border-color: #ff6b35;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
/*    color: #fff; */
}

.btn-primary {
    background: #ff6b35;
    border-color: #ff6b35;
}

.btn-primary:hover {
    background: #ff4500;
    border-color: #ff4500;
}

/* Estilos de tablas 
.table {
    color: #cccccc;
}
*/

.table > tbody > tr > td {
    border-color: #dbdbdb;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Elementos de noticias con imágenes destacadas */
.news-item {
    background: #f8f8f8;
    border-radius: 0;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-category {
    background: #ff6b35;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 8px;
}

.news-category.events {
    background: #3498db;
}

.news-category.news {
    background: #e74c3c;
}

.news-title {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #e74c3c;
}

.news-date {
    color: #666;
    font-size: 11px;
    margin-bottom: 10px;
    display: block;
}

.news-content {
    display: flex;
    align-items: stretch;
}

.news-image {
    width: 120px;
    height: 90px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    position: relative;
}

.news-text {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 13px;
}

.read-more {
    color: #e74c3c;
    font-weight: 600;
    font-size: 11px;
    text-decoration: none;
    align-self: flex-start;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #c0392b;
    text-decoration: none;
}

/* Noticias sin imágenes */
.news-item .news-content:not(:has(.news-image)) .news-text {
    padding: 20px;
}

/* Noticias responsivas para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .news-excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.4;
        max-height: 2.8em;
        font-size: 12px;
    }
    
    .news-text {
        padding: 12px;
        justify-content: space-between;
    }
    
    .news-title {
        font-size: 1.05rem;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    
    .news-image {
        width: 110px;
        height: 85px;
    }
}

/* Ajustes para tablets en orientación vertical */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-character img{
        margin-left: -250px;
    }
    
}

/* Ajustes para iPad Mini en horizontal (1024x768) */
@media (width: 1024px) and (height: 768px) and (orientation: landscape) {
    .hero-character {
        margin-left: -190px !important;
    }
}

/* Ajustes para iPhone SE en horizontal (667x375) */
@media (width: 667px) and (height: 375px) and (orientation: landscape) {
    .hero-character {
        margin-left: 250px !important;
    }
}

/* Ajustes para iPhone 14 Pro Max y dispositivos similares */
@media (min-width: 430px) and (max-width: 932px) and (orientation: landscape) {
    .hero-character img {
        margin-left: -250px;
    }
}

/* Ajustes específicos para iPad Mini (768x1024) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Reorganizar layout: sidebar debajo de noticias */
    .content-area {
        order: 1;
    }
    
    .sidebar {
        order: 2;
        margin-top: 20px;
    }
    
    .row {
        display: flex;
    }
    
    .col-xs-12.col-sm-8,
    .col-xs-12.col-sm-4 {
        width: 100%;
        float: none;
    }
    
    /* Ajustes del pie de página - Igual que móvil */
    .main-footer {
        padding: 30px 0 20px 0;
    }
    
    .footer-content {
        display: block !important;
        padding: 0 15px;
    }
    
    .footer-content .row {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -10px;
    }
    
    .footer-content .row {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -10px;
    }
    
    .footer-section h4 {
        font-size: 14px;
        margin-bottom: 12px;
        color: #ff6b35;
    }
    
    .footer-section ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .footer-section ul li {
        margin-bottom: 8px;
    }
    
    .footer-section ul li a {
        font-size: 12px;
        color: #ccc;
        text-decoration: none;
    }
    
    .footer-section ul li a:hover {
        color: #ff6b35;
    }
    
    .footer-bottom {
        border-top: 1px solid #333;
        padding-top: 20px;
        margin-top: 20px;
        text-align: center;
    }
    
    .footer-bottom .row {
        display: block;
        margin: 0;
    }
    
    .footer-bottom .col-xs-6 {
        width: 100%;
        float: none;
        margin-bottom: 15px;
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 15px;
        text-align: center;
        position: static;
    }
    
    .footer-logo img {
        height: 30px;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    .footer-copyright p {
        font-size: 12px;
        margin-bottom: 10px;
        color: #999;
        text-align: center;
        line-height: 1.4;
    }
    
    .footer-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links a {
        font-size: 11px;
        color: #ccc;
        text-decoration: none;
    }
    
    .footer-links a:hover {
        color: #ff6b35;
    }
}

/* Noticias responsivas para tablets en horizontal */
@media (min-width: 769px) and (max-width: 1366px) and (orientation: landscape) {
    .news-excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.3;
        max-height: 2.6em;
        font-size: 11px;
    }
    
    .news-text {
        padding: 10px;
        justify-content: space-between;
    }
    
    .news-title {
        font-size: 1rem;
        line-height: 1.1;
        margin-bottom: 6px;
    }
    
    .news-image {
        width: 105px;
        height: 80px;
    }
    
    .news-date {
        font-size: 10px;
        margin-bottom: 8px;
    }
}

/* Noticias responsivas para móviles */
@media (max-width: 768px) {
    .news-content {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: 200px;
    }
    
    .news-text {
        padding: 15px;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
    
    /* Noticias expandidas responsivas */
    .news-hero-image {
        height: 300px;
    }
    
    .news-hero-overlay {
        padding: 30px 20px 20px;
    }
    
    .news-hero-title {
        font-size: 1.8rem;
    }
    
    .news-hero-date {
        font-size: 0.9rem;
    }
    
    .news-expanded-content {
        padding: 20px;
    }
    
    .news-expanded-content .news-excerpt {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .news-item-expanded .news-category-overlay {
        left: 15px;
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Prevenir el desplazamiento del cuerpo cuando el menú móvil está abierto */
body.menu-open {
    overflow: hidden;
}

/* Diseño responsivo */
@media (max-width: 768px) {
    /* Mostrar botón de menú móvil */
    .mobile-menu-toggle {
        display: flex !important;
        margin-top: 2px;
        height: 40px;
    }
    
    /* Ocultar menú de navegación por defecto en móvil */
    .main-nav .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000;
        flex-direction: column;
        padding: 0;
        margin: 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.5);
        z-index: 1000;
    }
    
    /* Mostrar navegación cuando esté activa */
    .main-nav .nav-menu.active {
        display: flex !important;
    }
    
    /* Elementos de navegación móvil */
    .main-nav .nav-menu li {
        margin: 0;
        border-bottom: 1px solid #333;
        width: 100%;
    }
    
    .main-nav .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .main-nav .nav-menu li a {
        padding: 15px 20px;
        display: block;
        width: 100%;
        text-align: left;
        border-bottom: none;
    }
    
    /* Ajustes de menú desplegable móvil */
    .main-nav .dropdown-menu {
        position: static !important;
        display: none !important;
        background: #222 !important;
        box-shadow: none !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-nav .dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    .main-nav .dropdown-menu li a {
        padding: 12px 40px !important;
        background: #222 !important;
        font-size: 13px !important;
    }
    
    .main-nav .dropdown-menu li a:hover {
        background: #333 !important;
    }
    
    /* Ajustar diseño del encabezado para móvil */
    .main-header {
        position: relative;
    }
    
    .blade-logo img {
        max-height: 35px;
    }
    
    /* Ocultar encabezado superior en pantallas muy pequeñas */
    .top-header {
        display: none;
    }
}

@media (max-width: 480px) {
    .blade-logo img {
        max-height: 30px;
    }
    
    .mobile-menu-toggle {
            margin-top: 4px;
            height: 30px;
        }
    
    .main-nav .nav-menu li a {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Pie de página */
.main-footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 40px 0;
    margin-top: 50px;
}

.footer-content {
    padding: 0 15px;
}

.footer-section h4 {
    color: #ff6b35;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.footer-social a {
    display: inline-block;
    width: 24px;
    height: 24px;
}

.footer-social img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.footer-social img:hover {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 30px;
    padding-top: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 30px;
}

.footer-copyright {
    text-align: right;
}

.footer-copyright p {
    color: #999;
    font-size: 11px;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-links a {
    color: #ccc;
    font-size: 11px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

.col-xs-6 {
    width: 100%; !important;
    margin-top: -10px; !important;
}

/* Diseño mejorado de noticias con superposición de categoría */
.news-header-container {
    position: relative;
    margin-bottom: 15px;
}

.news-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.news-featured-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.news-image-container:hover .news-featured-image {
    transform: scale(1.05);
}

.news-category-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(231, 76, 60, 0.9);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.news-category-badge {
    background: #e74c3c;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 15px;
}

.news-no-image {
    margin-bottom: 15px;
}

.news-title-large {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.news-title-large a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title-large a:hover {
    color: #e74c3c;
}

.news-author {
    color: #666;
    font-size: 12px;
    font-style: italic;
}

/* Variaciones de color de categoría */
.news-category-overlay[data-category="EVENTOS"],
.news-category-badge[data-category="EVENTOS"] {
    background: rgba(52, 152, 219, 0.9) !important;
}

.news-category-overlay[data-category="ACTUALIZACIONES"],
.news-category-badge[data-category="ACTUALIZACIONES"] {
    background: rgba(46, 204, 113, 0.9) !important;
}

.news-category-overlay[data-category="MANTENIMIENTO"],
.news-category-badge[data-category="MANTENIMIENTO"] {
    background: rgba(241, 196, 15, 0.9) !important;
    color: #333 !important;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .news-title-large {
        font-size: 1.5rem;
    }
    
    .news-image-container {
        height: 150px;
    }
    
    .news-category-overlay {
        top: 8px;
        left: 8px;
        padding: 4px 8px;
        font-size: 10px;
    }
    
    /* Ajustes del encabezado superior */
     .top-header {
         padding: 4px 0;
     }
     
     .cbe-logo {
         padding-left: 10px;
     }
     
     .top-nav-right {
         padding-right: 10px;
         gap: 8px;
         flex-wrap: wrap;
     }
     
     .server-time,
     .welcome-message {
         font-size: 10px;
     }
     
     .top-nav-right a {
         font-size: 10px;
     }
     
     /* Ajustes del logo del encabezado principal para móvil */
     .main-header {
         padding: 12px 0;
     }
     
     .blade-logo {
         padding-left: 10px;
         padding-top: 5px;
     }
     
     .blade-logo img {
         height: 35px;
     }
     
     /* Ajustes del contenedor principal */
     .main-container {
         padding: 15px 0;
     }
    
    /* Espaciado del área de contenido */
    .content-area {
        margin-bottom: 5px;
    }
    
    /* Ajustes de la barra lateral */
     .sidebar {
         margin-top: 5px;
         padding: 0 10px;
     }
     
     .sidebar-widget {
         margin-bottom: 15px;
     }
     
     .sidebar-widget-content {
         padding: 12px;
     }
     
     .play-widget-image {
         height: 150px;
     }
     
     .register-widget-content {
         padding: 15px;
     }
    
    /* Ajustes de la sección principal */
    .hero-section {
        min-height: 450px;
        margin-top: 0;
    }
    
    .hero-slider {
        height: 450px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
        padding-top: 20px;
    }
    
    .hero-text {
        margin-top: -40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-character {
        margin-top: -50px;
    }
    
    .hero-character img {
        max-height: 320px;
        margin-bottom: -40px;
        margin-top: 30px;
    }
    
    /* Encabezados de sección */
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .view-all {
        align-self: center;
    }
}

/* Pantallas extra pequeñas */
@media (max-width: 480px) {
    /* Ocultar encabezado superior en pantallas muy pequeñas para ahorrar espacio */
     .top-header {
         display: none;
     }
     
     /* Ajustes del contenedor */
     .container-fluid {
         padding-left: 10px;
         padding-right: 10px;
     }
     
     /* Ajustes del encabezado principal para pantallas muy pequeñas */
      .main-header {
          padding: 12px 0;
      }
      
      .blade-logo {
          padding-top: 5px;
      }
      
      .blade-logo img {
          height: 30px;
      }
      
      .mobile-menu-toggle {
           height: 30px;
       }
    
    /* Sección principal para pantallas muy pequeñas */
    .hero-section {
        min-height: 400px;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .hero-content {
         padding-top: 30px;
     }
     
     .hero-text {
     }
     
     .hero-title {
         font-size: 2rem;
     }
     
     /* Ajustes específicos para el texto del segundo slider en pantallas muy pequeñas */
           .hero-slide:nth-child(2) .hero-content {
               padding-top: 0px;
           }
           
           .hero-slide:nth-child(2) .hero-title {
               font-size: 4.4rem;
               line-height: 0.8;
               margin-bottom: 12px;
               text-align: center;
               display: flex;
               flex-direction: column;
               align-items: center;
               color: transparent;
               text-shadow: none !important;
           }
           
           .hero-slide:nth-child(2) .hero-title::before {
                  content: "ELIGE TU";
                  display: block;
                  color: #fff;
                  margin-bottom: -28px;
                  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
              }
              
              .hero-slide:nth-child(2) .hero-title::after {
                  content: "PERSONAJE";
                  display: block;
                  color: #fff;
                  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
              }
         
         .hero-slide:nth-child(2) .hero-subtitle {
              font-size: 1.2rem;
              line-height: 1.2;
              letter-spacing: 0.5px;
              padding: 0 10px;
              text-align: center;
              margin: 0 auto;
              display: block;
          }
          

    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-character {
         margin-top: -20px;
     }
     
     .hero-character img {
         max-height: 280px;
         margin-bottom: -30px;
     }
    
    /* Espaciado del contenido */
     .content-area {
         padding: 0 5px;
         margin-bottom: 10px;
     }
     
     .sidebar {
         padding: 0 5px;
         margin-top: 5px;
     }
     
     /* Ajustes específicos de la barra lateral para pantallas muy pequeñas */
     .sidebar-widget {
         margin-bottom: 12px;
     }
     
     .sidebar-widget-header {
         padding: 8px 12px;
     }
     
     .sidebar-widget-title {
         font-size: 0.9rem;
     }
     
     .sidebar-widget-content {
         padding: 10px;
     }
     
     .play-widget-image {
         height: 120px;
     }
     
     .play-widget-overlay h3 {
         font-size: 1rem;
         margin-bottom: 10px;
     }
     
     .play-now-btn,
     .register-btn {
         padding: 8px 16px;
         font-size: 13px;
     }
     
     .register-widget-content {
         padding: 12px;
     }
     
     .register-widget-content h3 {
         font-size: 1rem;
         margin-bottom: 10px;
     }
    
    /* Ajustes de noticias */
    .news-item {
        margin-bottom: 20px;
    }
    
    .news-title-large {
        font-size: 1.3rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    /* Ajustes del pie de página - Simplificado */
    .main-footer {
        padding: 30px 0 20px 0;
    }
    
    .footer-content {
        display: block !important;
        padding: 0 15px;
    }
    
    .footer-content .row {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -10px;
    }
    
    .footer-content .col-xs-3 {
        width: 50%;
        padding: 0 10px 20px 10px;
        float: none !important;
    }
    
    .footer-section h4 {
        font-size: 14px;
        margin-bottom: 12px;
        color: #ff6b35;
    }
    
    .footer-section ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .footer-section ul li {
        margin-bottom: 8px;
    }
    
    .footer-section ul li a {
        font-size: 12px;
        color: #ccc;
        text-decoration: none;
    }
    
    .footer-section ul li a:hover {
        color: #ff6b35;
    }
    
    .footer-bottom {
        border-top: 1px solid #333;
        padding-top: 20px;
        margin-top: 20px;
        text-align: center;
    }
    
    .footer-bottom .row {
        display: block;
        margin: 0;
    }
    
    .footer-bottom .col-xs-6 {
        width: 100%;
        float: none;
        margin-bottom: 15px;
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .footer-logo img {
        height: 30px;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    .footer-copyright p {
        font-size: 12px;
        margin-bottom: 10px;
        color: #999;
        text-align: center;
        line-height: 1.4;
    }
    
    .footer-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .footer-links a {
        font-size: 11px;
        color: #ccc;
        text-decoration: none;
    }
    
    .footer-links a:hover {
        color: #ff6b35;
    }
}

/* Ajustes para móvil en orientación horizontal */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 400px;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-character img {
        max-height: 280px;
    }
}

/* Fondo grisáceo con efecto de ruido/textura */
.main-container {
    background: #e8e8e8;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0,0,0,0.02) 0.5px, transparent 0.5px),
        radial-gradient(circle at 75% 75%, rgba(0,0,0,0.015) 0.5px, transparent 0.5px),
        radial-gradient(circle at 50% 10%, rgba(0,0,0,0.01) 0.5px, transparent 0.5px),
        radial-gradient(circle at 10% 90%, rgba(0,0,0,0.02) 0.5px, transparent 0.5px),
        radial-gradient(circle at 90% 50%, rgba(0,0,0,0.015) 0.5px, transparent 0.5px);
    background-size: 3px 3px, 4px 4px, 2px 2px, 5px 5px, 3.5px 3.5px;
    background-attachment: fixed;
    position: relative;
    transform: none;
    animation: none;
    transition: none;
}

.main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 33% 66%, rgba(0,0,0,0.008) 0.3px, transparent 0.3px),
        radial-gradient(circle at 66% 33%, rgba(0,0,0,0.012) 0.4px, transparent 0.4px),
        radial-gradient(circle at 15% 45%, rgba(0,0,0,0.006) 0.2px, transparent 0.2px),
        radial-gradient(circle at 85% 85%, rgba(0,0,0,0.01) 0.3px, transparent 0.3px),
        radial-gradient(circle at 45% 15%, rgba(0,0,0,0.009) 0.35px, transparent 0.35px);
    background-size: 2.5px 2.5px, 3.2px 3.2px, 1.8px 1.8px, 4.1px 4.1px, 2.8px 2.8px;
    background-attachment: fixed;
    pointer-events: none;
    z-index: 0;
    transform: none;
    animation: none;
    transition: none;
}

.content-area, .sidebar {
    position: relative;
    z-index: 1;
}

/* Personalizaciones y sobrescrituras adicionales */
.page-title {
    color: #ff6b35;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Estilos del botón AdminCP - Solo en navegación superior */
.top-header .top-nav-right .admin-link {
    background: #ff6b35;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    margin: 0 8px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid #ff6b35;
    position: relative;
    z-index: 1000;
}

.top-header .top-nav-right .admin-link:hover {
    background: #e55a2b;
    border-color: #e55a2b;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(255, 107, 53, 0.3);
}

/* Evitar que el botón AdminCP aparezca en otros lugares */
.admin-link:not(.top-header .top-nav-right .admin-link) {
    display: none;
}

/* Sobrescrituras del formulario de inicio de sesión */
.panel-sidebar {
    background: #2a2a2a;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.panel-sidebar .panel-heading {
    background: #ff6b35;
    border-radius: 8px 8px 0 0;
    border: none;
}

.panel-sidebar .panel-title {
    color: #ffffff;
    font-weight: 600;
}

.panel-sidebar .panel-body {
    background: #2a2a2a;
    color: #cccccc;
}

/* Panel de usuario */
.panel-usercp {
    background: #2a2a2a;
    color: #cccccc;
}

.panel-usercp .panel-heading {
    background: #333333;
}

/* Estilos específicos para el panel de usuario */
.panel-usercp .panel-body {
    color: #cccccc;
    padding: 15px;
}

.panel-usercp .panel-body a {
    color: #4CAF50;
    text-decoration: none;
}

.panel-usercp .panel-body a:hover {
    color: #66BB6A;
    text-decoration: underline;
}

.panel-usercp .panel-body .btn {
    background: #4CAF50;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin: 2px;
}

.panel-usercp .panel-body .btn:hover {
    background: #45a049;
}

/* Estilos para el botón de logout específicamente */
.panel-usercp .panel-body .btn-danger {
    background: #f44336;
    color: #ffffff;
}

.panel-usercp .panel-body .btn-danger:hover {
    background: #da190b;
}

/* Estilos específicos para el panel de usuario en el sidebar */
.sidebar-widget .usercp-menu {
    background: transparent;
}

.sidebar-widget .usercp-menu .usercp-menu-item {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    margin: 2px 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar-widget .usercp-menu .usercp-menu-item:hover {
    background: #e9ecef;
    color: #000;
    text-decoration: none;
}

.sidebar-widget .usercp-menu .usercp-menu-item.active {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

/* Estilos para el botón de logout en el sidebar */
.sidebar-widget .btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
    font-weight: 500;
}

.sidebar-widget .btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
    color: #ffffff;
}

/* Estilos de la sección del logo del pie de página */
.footer-logo-section {
    text-align: center;
    padding: 30px 0 20px 0;
    border-top: 1px solid #333;
    margin-top: 30px;
}

.footer-logo-section img {
    max-height: 60px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo-section img:hover {
    opacity: 1;
}

/* Sobrescritura de posicionamiento del logo del pie de página */
.footer-bottom {
    position: relative;
}

.footer-logo {
    position: absolute;
    top: -50px;
    right: 15px;
    display: flex;
    align-items: center;
    z-index: 10;
}

/* Sobrescritura de posicionamiento del logo del pie de página para móvil */
@media (max-width: 768px) {
    .footer-logo {
        position: static;
        top: auto;
        right: auto;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    .footer-copyright p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        position: static;
        top: auto;
        right: auto;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    .footer-copyright p {
        text-align: center;
    }
}

.footer-logo img {
    height: 30px;
}

/* Mejoras del módulo de noticias */
.news-item {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.news-content {
    display: flex;
    align-items: stretch;
    padding: 0;
}

.news-image {
    width: 200px;
    height: 155px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    position: relative;
    border-radius: 8px 0 0 8px;
}

.news-text {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-category {
    background: #ff6b35;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 8px;
    align-self: flex-start;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #ff6b35;
}

.news-date {
    color: #666;
    font-size: 11px;
    margin-bottom: 10px;
    display: block;
}

.news-excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 13px;
    flex-grow: 1;
}

.read-more {
    color: #ff6b35;
    font-weight: 600;
    font-size: 11px;
    text-decoration: none;
    align-self: flex-start;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #e74c3c;
    text-decoration: none;
}

/* Noticias responsivas */
@media (max-width: 768px) {
    .news-content {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: 200px;
        border-radius: 8px 0 0 0px;
}

/* Estilos para el menú de rankings */
.rankings_menu {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rankings_menu a {
    background: linear-gradient(135deg, #333333 0%, #2a2a2a 100%);
    color: #cccccc;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.rankings_menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
    transition: left 0.5s ease;
}

.rankings_menu a:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    border-color: #ff6b35;
    text-decoration: none;
}

.rankings_menu a:hover::before {
    left: 100%;
}

.rankings_menu a.active {
    background: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    border-color: #ff6b35;
    transform: translateY(-1px);
}

.rankings_menu a.active::before {
    display: none;
}

/* Responsive para el menú de rankings */
@media (max-width: 768px) {
    .rankings_menu {
        flex-direction: column;
        gap: 4px;
    }
    
    .rankings_menu a {
        flex: none;
        min-width: auto;
        padding: 12px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .rankings_menu a {
        padding: 10px 12px;
        font-size: 11px;
    }
}

.news-text {
        padding: 15px;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
}

/* Estilos del mensaje de bienvenida del encabezado */
.top-nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    white-space: nowrap;
}

.top-nav-right .welcome-message {
    color: #333;
    font-weight: 600;
    font-size: 11px;
    margin: 0;
}

.top-nav-right a {
    color: #333;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: color 0.3s ease;
    margin: 0;
}

.top-nav-right a:hover {
    color: #e74c3c;
    text-decoration: none;
}

/* Mejoras de widgets de la barra lateral */
.sidebar-widget {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    overflow: hidden;
}

.sidebar-widget-header {
    background: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
    border-bottom: none;
    padding: 15px;
}

.sidebar-widget-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.sidebar-widget-content {
    background: #ffffff;
    padding: 20px;
    color: #333;
}

/* Mejoras del formulario de inicio de sesión */
.sidebar-widget .form-control {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #333;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar-widget .form-control:focus {
    background: #ffffff;
    border-color: #ff6b35;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
    color: #333;
    outline: none;
}

.sidebar-widget .form-control::placeholder {
    color: #6c757d;
    opacity: 1;
}

.sidebar-widget .btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.sidebar-widget .btn-primary:hover {
    background: linear-gradient(135deg, #ff4500 0%, #e63900 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* Estilos de información del servidor */
.sidebar-widget .table {
    margin-bottom: 0;
    background: transparent;
}

.sidebar-widget .table td {
    padding: 12px 15px;
    border-color: #e9ecef;
    color: #333;
    font-size: 13px;
    vertical-align: middle;
}

.sidebar-widget .table td:first-child {
    font-weight: 500;
    color: #666;
}

.sidebar-widget .table td strong {
    font-weight: 600;
}

/* Enlace de contraseña olvidada */
.sidebar-widget a[href*="forgotpassword"] {
    color: #6c757d;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-widget a[href*="forgotpassword"]:hover {
    color: #ff6b35;
    text-decoration: underline;
}

/* Mejoras de widgets de jugar y registro */
.sidebar-widget.play-widget {
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-widget.register-widget {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-widget.play-widget:hover,
.sidebar-widget.register-widget:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.sidebar-widget.play-widget img,
.sidebar-widget.register-widget img {
    transition: transform 0.3s ease;
    filter: brightness(1.1) contrast(1.1);
}

.sidebar-widget.play-widget:hover img,
.sidebar-widget.register-widget:hover img {
    transform: scale(1.02);
}

/* Efecto de haz de luz inclinado */
.sidebar-widget.play-widget::before,
.sidebar-widget.register-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    transition: left 0.6s ease;
    z-index: 2;
    pointer-events: none;
}

.sidebar-widget.play-widget:hover::before,
.sidebar-widget.register-widget:hover::before {
    left: 100%;
}

/* Mejoras del widget de redes sociales */
.sidebar-widget .footer-social {
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.sidebar-widget .footer-social a {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.sidebar-widget .footer-social a:hover {
    background: linear-gradient(135deg, #ff4500 0%, #e63900 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.sidebar-widget .footer-social img {
    width: 35px;
    height: 35px;
}

/* Sobrescrituras de botones */
.btn-xs {
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 3px;
}

/* Banner de la barra lateral */
.sidebar-banner {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sidebar-banner img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.sidebar-banner:hover img {
    transform: scale(1.05);
}

/* Estado activo de navegación */
.main-nav ul li a.active {
    background: #ff6b35;
    color: #ffffff;
}

/* Contenedor de contenido */
.content-wrapper {
    background: #1a1a1a;
    min-height: 500px;
    padding: 20px 0;
}

/* Sobrescrituras de alertas */
.alert {
    border-radius: 6px;
    border: none;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
    border-left: 4px solid #17a2b8;
}

/* Paginación */
.pagination > li > a,
.pagination > li > span {
    background: #333;
    border-color: #555;
    color: #fff;
}

.pagination > li > a:hover,
.pagination > li > span:hover {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}

.pagination > .active > a,
.pagination > .active > span {
    background: #ff6b35;
    border-color: #ff6b35;
}

/* Sobrescrituras de modales */
.modal-content {
    background: #2a2a2a;
    border: none;
    border-radius: 8px;
}

.modal-header {
    background: #333;
    border-bottom: 1px solid #444;
    border-radius: 8px 8px 0 0;
}

.modal-title {
    color: #fff;
}

.modal-body {
    color: #ccc;
}

.modal-footer {
    background: #333;
    border-top: 1px solid #444;
    border-radius: 0 0 8px 8px;
}

/* Botón de cerrar */
.close {
    color: #fff;
    opacity: 0.7;
}

.close:hover {
    color: #ff6b35;
    opacity: 1;
}

/* Sobrescrituras de menús desplegables */
.dropdown-menu {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
}

.dropdown-menu > li > a {
    color: #ccc;
}

/* Sobrescritura del fondo de la sección principal */
.hero-section {
    background: linear-gradient(135deg, #1a0000 0%, #330000 50%, #660000 100%);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/castle-siege.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-character {
    position: relative;
    z-index: 3;
    margin-left: 20px;
}

/* Ajustes del título y subtítulo principal */
.hero-title {
    font-size: 4.5rem;
    white-space: nowrap;
/*    overflow: hidden; */
    text-overflow: ellipsis;
    line-height: 1;
    margin-bottom: 25px;
}

.hero-subtitle {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: calc(1.4em * 2);
    max-width: 400px;
}

.dropdown-menu > li > a:hover {
    background: #ff6b35;
    color: #fff;
}

/* Migas de pan */
.breadcrumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.breadcrumb > li + li:before {
    color: #999;
}

.breadcrumb > li > a {
    color: #ff6b35;
}

/* Contenedor destacado */
.well {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #ccc;
}

/* Barra de progreso */
.progress {
    background: #333;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #ff6b35 0%, #ff4500 100%);
}

/* Grupo de lista */
.list-group-item {
    background: #2a2a2a;
    border-color: #444;
    color: #ccc;
}

.list-group-item:hover {
    background: #333;
}

.list-group-item.active {
    background: #ff6b35;
    border-color: #ff6b35;
}

/* Pestañas */
.nav-tabs {
    border-bottom: 1px solid #444;
}

.nav-tabs > li > a {
    color: #ccc;
    border-color: transparent;
}

.nav-tabs > li > a:hover {
    border-color: #444;
    background: #333;
    color: #fff;
}

.nav-tabs > li.active > a {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}

.tab-content {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 0 0 6px 6px;
    color: #ccc;
}

/* ========================================
   ESTILOS DEL MÓDULO DE REGISTRO
   ======================================== */

/* Contenedor del formulario de registro */
.col-xs-8.col-xs-offset-2 {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-top: 30px !important;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.col-xs-8.col-xs-offset-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
    z-index: 1;
}

/* Formulario horizontal de registro */
.form-horizontal .form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-horizontal .control-label {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    padding-top: 12px;
    margin-bottom: 8px;
}

/* Campos de entrada del registro */
.form-horizontal .form-control {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #333;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    height: auto;
}

.form-horizontal .form-control:focus {
    background: #ffffff;
    border-color: #ff6b35;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
    color: #333;
    outline: none;
}

.form-horizontal .form-control:hover {
    border-color: #dee2e6;
    background: #ffffff;
}

/* Texto de ayuda */
.help-block {
    color: #666;
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.4;
    font-style: italic;
}

/* Botón de registro */
.form-horizontal .btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
    border: none;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.form-horizontal .btn-primary:hover {
    background: linear-gradient(135deg, #ff4500 0%, #e63900 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: #ffffff;
}

.form-horizontal .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

/* reCAPTCHA container */
.g-recaptcha {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Términos y condiciones */
.form-horizontal .form-group:nth-last-child(2) {
    border-radius: 8px;
    margin-bottom: 25px;
}

.form-horizontal .form-group:nth-last-child(2) .col-sm-offset-4 {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.form-horizontal .form-group:nth-last-child(2) a {
    color: #ff6b35;
    font-weight: 600;
    text-decoration: none;
}

.form-horizontal .form-group:nth-last-child(2) a:hover {
    color: #ff4500;
    text-decoration: underline;
}

/* Animaciones para el formulario de registro */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.col-xs-8.col-xs-offset-2 {
    animation: slideInUp 0.6s ease-out;
}

.form-horizontal .form-group {
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.form-horizontal .form-group:nth-child(1) { animation-delay: 0.1s; }
.form-horizontal .form-group:nth-child(2) { animation-delay: 0.2s; }
.form-horizontal .form-group:nth-child(3) { animation-delay: 0.3s; }
.form-horizontal .form-group:nth-child(4) { animation-delay: 0.4s; }
.form-horizontal .form-group:nth-child(5) { animation-delay: 0.5s; }
.form-horizontal .form-group:nth-child(6) { animation-delay: 0.6s; }
.form-horizontal .form-group:nth-child(7) { animation-delay: 0.7s; }

/* Diseño responsivo para el registro */
@media (max-width: 768px) {
    .col-xs-8.col-xs-offset-2 {
        padding: 25px 20px;
        margin: 20px 15px !important;
        width: calc(100% - 30px);
        margin-left: 15px !important;
        margin-right: 15px !important;
    }
    
    .form-horizontal .control-label {
        text-align: left;
        margin-bottom: 8px;
        padding-top: 0;
    }
    
    .form-horizontal .form-control {
        margin-bottom: 10px;
    }
    
    .help-block {
        font-size: 11px;
    }
    
    .form-horizontal .btn-primary {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .col-xs-8.col-xs-offset-2 {
        padding: 20px 15px;
        margin: 15px 10px !important;
        width: calc(100% - 20px);
        margin-left: 10px !important;
        margin-right: 10px !important;
    }
    
    .form-horizontal .control-label {
        font-size: 13px;
    }
    
    .form-horizontal .form-control {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .help-block {
        font-size: 10px;
    }
}

/* Ajustes para iPad Mini en horizontal (1024x768) */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
    .footer-logo {
        position: static !important;
    }
}

/* Ajustes para iPad Pro en vertical (1024x1366) */
@media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (orientation: portrait) {
    .footer-logo {
        position: static !important;
    }
}

/* Ajustes para iPad Air en vertical (820x1180) */
@media only screen and (min-device-width: 820px) and (max-device-width: 1180px) and (orientation: portrait) {
    .footer-logo {
        position: static !important;
    }
}