@font-face {
	font-family: FaceYourFears;
	src: url('../fonts/FaceYourFears.ttf');
}

@media (max-width: 991px){
  *{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}


html, body {
  height: 100%;
}

body:not(.control-label) {
    background-image: url("../img/background.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;

    /* PC: fondo fijo (tipo parallax) */
    background-attachment: fixed;

    color: #333;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    margin: 0;

}

@media (max-width: 767px) {
  body:not(.control-label) {
    /* Mobile: NO fixed (evita cortes/lag) */
    background-size: auto 100%;
    background-attachment: scroll;
    background-position: center top;
  }
}



a {
	color: #777;
	text-decoration: none;
	-moz-transition: all .2s ease-in;
    -o-transition: all .2s ease-in;
    -webkit-transition: all .2s ease-in;
    transition: all .2s ease-in;
}

a:hover {
	color: #ffda8a;
}

img {
	border: 0px;
}

label {
    color: #BFABAB;
    text-shadow: 1px 1px 4px #000000; 
}

/* Texto debajo del input en Form de Registro */
.form-sub-txt {
    color: #ABABAB;
    text-shadow: 1px 1px 4px #000000; 
}

.base-condi {
    color: #ABABAB;
    text-shadow: 1px 1px 4px #000000; 
}

.base-condi a {
    color: #A2A2A2;
}

input[type=text], input[type=password], input[type=number] {
	background: #fafafa;
	border: 1px solid #e3e3e3;
	color: #666;
}
input[type=text]:focus, input[type=password]:focus, input[type=number]:focus {
	border: 1px solid #ccc;
}

#header {
	width: 100%;
	min-width: 1300px;
	margin: 0px auto;
	text-align: center;
	overflow: hidden;
	color: #fff;
	padding: 40px 0px;
}

#header a img {
    width: 45em;
}

#container {
	width: 1300px;
	height: auto;
	margin: 0px auto;
	padding: 0px 0px;
}

#content {
	width: 100%;
	overflow: auto;
	min-height: 500px;
	padding-top: 20px;
	padding-bottom: 20px;
}

.module-contents {
	background: linear-gradient(
		to bottom,
		rgba(0,0,0,0.65),
		rgba(0,0,0,0.15)
	);
	backdrop-filter: blur(5px);
	padding: 15px 15px 30px 15px;
	-moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    -khtml-border-radius: 10px;
	border: 4px solid #294b54;
	overflow: auto;
	min-height: 800px;
}

.footer {
	font-family: 'Segoe UI', 'Lucida Sans Unicode', 'Lucida Grande', 'Tahoma', 'Arial', 'sans-serif';
	width: 100%;
	font-size: 14px;
	color: #aaa;
	padding: 60px 0px;
	background: #000000 url('../img/footer_background.png') no-repeat bottom center;
	overflow: auto;
	border-top: 3px solid #294b54;
}
	.footer > .footer-container {
		width: 1300px;
		margin: 0px auto;
	}
	.footer-time {
		font-size: 45px;
		color: #294b54;
		font-weight: bold;
		position: relative;
		top: -10px;
	}

#navbar {
    background: linear-gradient(
		to bottom,
		rgba(0,0,0,0.65),
		rgba(0,0,0,0.15)
	);
	backdrop-filter: blur(5px);
	width: 1275px;
	margin: 0px auto;
	-moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    -khtml-border-radius: 10px;
	border: 4px solid #294b54;
	text-shadow: 1px 1px 1px black;								
}

#navbar ul{
	text-align: center;
	margin: 0px;
	-webkit-padding-start: 0px;
}

#navbar ul li {
	font-family: 'Lato', sans-serif;
	list-style-type: none;
	display: inline-block;
	font-size: 18px;
}

#navbar ul li a {
	display: inline-block;
	color: #ffffff !important;
	text-decoration: none;
	padding: 20px 25px;
	font-weight: bold;
	
	background-color: rgba(255,255,255,0); /* invisible */
	transition:
		background-color 0.55s ease,
		color 0.55s ease;
}

#navbar ul li a:active, #navbar ul li a:focus, #navbar ul li a:hover {
	text-decoration: none;
	background-color: rgba(255,255,255,0.35); /* aclarado suave */
}


/* CASTLE SIEGE BANNER */
.castle-siege-banner {
	width: 100%;
	background: #000 url('../img/castle_siege_banner_bg.jpg') no-repeat center center;
	background-size: cover;
	margin: 0px auto -5px auto;
	padding: 15px;
	-moz-box-shadow: 0 0 10px #000;
	-webkit-box-shadow: 0 0 10px #000;
	box-shadow: 0 0 10px #000;
	overflow: auto;
	/*font-family: FaceYourFears;*/
	color: #fff;
	-webkit-border-radius: 5px 5px 0px 0px;
    -moz-border-radius: 5px 5px 0px 0px;
    border-radius: 5px 5px 0px 0px;
    -khtml-border-radius: 5px 5px 0px 0px;
}
.cs-timeleft {
	/*font-family: FaceYourFears;*/
	font-size: 32px;
	color: #fff;
}
.cs-timeleft span {
	color: #ff0000;
}
.castle-siege-banner-guildlogo {
	background: #000000;
	display: inline-block;
	border: 1px solid #555;
	padding: 5px;
	-moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    -khtml-border-radius: 10px;
	-moz-box-shadow: 0 0 5px #000;
	-webkit-box-shadow: 0 0 5px #000;
	box-shadow: 0 0 5px #000;
}
.castle-siege-banner-title {
	font-size: 12px;
	text-transform: uppercase;
	font-weight: bold;
	color: #d4a6ff;
	text-shadow: 1px 1px 2px #000000; 
}
.castle-siege-banner-castleowner, .castle-siege-banner-castleowner a {
	font-family: FaceYourFears;
	font-size: 35px;
	text-shadow: 1px 1px 4px #000000; 
	color: #fff;
}
.castle-siege-banner-countdown {
	font-family: FaceYourFears;
	font-size: 32px;
	text-shadow: 0px 0px 3px #000000; 
}
	.castle-siege-banner-countdown span {
		color: #ba70ff;
	}
/* <-- CASTLE SIEGE BANNER END */


.admincp-button {
	position:absolute;
	top:10px;
	right:10px;
}

.page-title {
	color: #f5f2e9;
	font-family: 'Lato', sans-serif;
	font-size: 32px;
	margin-bottom: 20px;
	font-weight: bold;
	text-align: center;
}

/* NEWS MODULE */
.panel {
    background-color: transparent;
}


.panel-news {
	margin-bottom: 30px;
	color: #333;
	background: #ded9cc;
	border: 0px;
	-moz-box-shadow: 0 0 10px #f1f1f1;
	-webkit-box-shadow: 0 0 10px #f1f1f1;
	box-shadow: 0 0 10px #f1f1f1;
}
.panel-news .panel-heading {
	padding-top: 20px;
	padding-bottom: 20px;
	background: linear-gradient(
		45deg,
		#864c31af,
		#e07f52af,
		#5a3321af
	);
	border-bottom: 1px dotted #294b54;
}
.panel-news .panel-title {
	color: white;
	font-family: 'Lato', sans-serif;
	font-size: 18px;
	font-weight: bold;
}
.panel-news .panel-footer {
	border-top: 1px dotted #294b54;
	background: transparent;
	font-style: italic;
	font-size: 11px;
	height: 40px;
	color: #294b54;
}

/* RANKINGS MODULE */
.rankings-table {
	background: rgba(100,100,100,0.5);
	width: 80%;
	border-spacing: 0;
	border-collapse: collapse;
	table-layout: fixed;
	-moz-box-shadow: 0 0 5px #e3e3e3;
	-webkit-box-shadow: 0 0 5px #e3e3e3;
	box-shadow: 0 0 5px #e3e3e3;
	margin: 0px auto;
}
.rankings-class-image {
	width: 40px;
	height: auto;
	-moz-box-shadow: 0 0 5px #666;
	-webkit-box-shadow: 0 0 5px #666;
	box-shadow: 0 0 5px #666;
	-moz-border-radius: 0px;
	border-radius: 0px;
}
.rankings-table tr td {
	border-bottom: 1px solid #e3e3e3;
	padding: 10px;
	font-size: 18px;
	vertical-align: middle !important;
	text-align: center;
}
.rankings-table-place {
	color: #A6A6A6;
	font-weight: bold;
	font-size: 24px;
	text-align: center;
	text-shadow: #000000 1px 0 10px;
}
.rankings-table tr:first-child td {
	color: #5d8ec9;
	border-bottom: 3px solid #5d8ec9;
}
.rankings-table tr td:first-child {
	width: 100px;
}
.rankings-update-time {
	text-align: right;
	font-size: 11px;
	color: #ccc;
	padding: 10px 0px;
}
.rankings_menu {
	width: 80%;
	overflow: auto;
	text-align: center;
	margin: 0px auto 20px auto;
}
.rankings_menu span {
	width: 100%;
	display: inline-block;
	padding: 10px 0px;
	color: #ccc;
	font-size: 24px;
}
.rankings_menu a {
	display: inline-block;
	width: 150px;
	border: none;
	text-align: center;
	padding: 2px 0px;
	margin: 2px;
	background: rgba(100,100,100,0.8);
	-moz-border-radius: 4px;
	border-radius: 4px;
	color: rgba(255,212,212,0.8);
}
.rankings_menu a.active {
	color: #5d8ec9;
	background: rgba(100,100,100,0.4);
}
.rankings_guild_logo tr td {
	border: 0px !important;
	padding: 0px !important;
	margin: 0px !important;
}
.rankings-gens-img {
	width: auto !important;
	height: 50px !important;
	border: 0 !important;
	-moz-box-shadow: 0 0 0px #000 !important;
	-webkit-box-shadow: 0 0 0px #000 !important;
	box-shadow: 0 0 0px #000 !important;
	-moz-border-radius: 0px !important;
	border-radius: 0px !important;
}

a.aRankUser {
	color: #9fc2d6;
	text-shadow: #000000 1px 0 5px;
	text-decoration: none;
}

a.aRankUser:hover {
	color: #6c9ef5;
	text-shadow: #000000 1px 0 5px;
}

.nivelUsuario {
	color: #A6A6A6;
	font-weight: bold;
	font-size: 24px;
	text-align: center;
	text-shadow: #000000 1px 0 10px;
}

.nombreGuild {
	color: #A6A6A6;
	font-size: 18px;
	text-align: center;
	text-shadow: #000000 1px 0 10px;
}

.nombreGuild:hover {
	color: #c1dae8;
	font-size: 18px;
	text-align: center;
	text-shadow: #000000 1px 0 10px;
	text-decoration: none;
}


/* MY ACCOUNT MODULE */
.myaccount-table {
	width: 100%;
	background: #81838769;
	border-radius: 14px;
}
.myaccount-table tr td:first-child {
	color: #A6A6A6;
	text-align: center;
	text-shadow: #000000 1px 0 10px;
	font-weight: bold;
}
.myaccount-table tr td {
    color: #cbcabc;
	border-bottom: 1px solid #e3e3e3;
	padding: 15px !important;
}
.myaccount-table tr:last-child td {
	border: 0px;
}

/* GENERAL TABLE UI */
.general-table-ui {
	width: 100%;
	table-layout: fixed;
	background: #f1f1f1;
	border: 1px solid #e3e3e3;
	padding: 10px;
	margin: 10px 0px;
}
.general-table-ui tr td {
	padding: 5px;
	vertical-align: middle !important;
}
.general-table-ui tr:first-child td {
	color: #5d8ec9;
}
.general-table-ui tr:nth-child(2n+2):not(.table-content) td {
	background: #fafafa;
}
.general-table-ui tr td {
	text-align: center;
}
.general-table-ui img {
	width: 50px;
	height: auto;
	-moz-box-shadow: 0 0 5px #666;
	-webkit-box-shadow: 0 0 5px #666;
	box-shadow: 0 0 5px #666;
	-moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    -khtml-border-radius: 50%;
}

/* TERMS OF SERVICE PAGE */
.tos_list li {
	color: #5d8ec9;
	margin-bottom: 40px;
}
.tos_list li p {
	color: #c4c4c4;
	text-align: justify;
	text-justify: inter-word;
	text-transform: none;
	padding-right: 35px;
}

/* PAYPAL */
.paypal-gateway-container {
	width: 100%;
}

.paypal-gateway-content {
	background: #fef2da;
	border: 3px solid #f79433;
	padding: 15px;
	overflow: auto;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	font-weight: bold;
}

.paypal-gateway-logo {
	width: 100%;
	height: 100px;
	background: #fff9ec url('../img/paypal-logo-200-68.png') no-repeat center;
	background-size: contain;
	margin-bottom: 15px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
}

.paypal-gateway-conversion-rate {
	margin: 0px auto;
	text-align: center;
	color: #000;
	font-size: 18px;
	padding: 10px 0px;
}

.paypal-gateway-form {
	width: 100%;
	margin: 20px auto;
	text-align: center;
}

.paypal-gateway-form div {
	display: inline-block;
	padding: 0px 10px;
	color: #000;
	font-size: 24px;
}

.paypal-gateway-form input[type=text] {
	width: 60px;
	font-size: 24px;
	border: 3px solid #f79433;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	color: #f79433;
}

.paypal-gateway-continue {
	margin: 0px auto;
	text-align: center;
}

.paypal-gateway-continue input[type=submit] {
	background: url('../img/paypal-submit.jpg') no-repeat;
	width: 200px;
	height: 40px;
	border: 0px;
}

/* CASTLE SIEGE CSS */
.csinfo_container {
	background: url('../img/castle_siege.jpg') no-repeat top right;
	background-size: cover;
	width: 100%;
	padding: 20px;
	margin-bottom: 20px;
	border: 1px solid #333;
	-moz-box-shadow: 0 0 10px #555;
	-webkit-box-shadow: 0 0 10px #555;
	box-shadow: 0 0 10px #555;
	-moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    -khtml-border-radius: 10px;
}
.csinfo_content {
	width: 100%;
	height: 180px;
	margin: 10px 0px 0px 10px;
	display: inline-block;
}
	.csinfo_glogo {
		float: left;
		width: 30%;
		height: 180px;
		text-align: center;
	}
	.csinfo_ginfo {
		float: left;
		width: 70%;
		padding: 0px 10px;
	}
	
		.csinfo_ginfo table {
			table-layout: fixed;
			width: 400px;
		}
			.csinfo_ginfo table tr td {
				padding: 3px 0px;
				font-size: 20px;
				color: #fff;
			}
			.csinfo_ginfo table tr td:first-child {
				color: #9a7e46;
			}
			
.csinfo_glist {
	list-style-type: none;
	margin: 0px;
	padding: 0px;
}
	.csinfo_glist li {
		float: left;
		width: 30%;
		padding: 8px 10px;
	}
	.csinfo_glist li:hover {
		background: #0d0c0b;
	}
.module-requirements {
	font-size: 12px;
	margin-top: 20px;
}

/* SIDEBAR */
.download-banner{
    transition: all 1s ease;
}

.download-banner:hover img{
    content: url(../img/download_sidebar_hover.png);
}

.panel-sidebar {
	background: rgba(0,0,0,0);
	border: 4px solid #294b54;
}

.panel-sidebar > .panel-heading {
	background: linear-gradient(
		to bottom,
		rgba(0,0,0,0.80),
		rgba(255,255,255,0.15)
	);
	backdrop-filter: blur(5px);
	color: #ffff;
	font-family: 'Lato', sans-serif;
	border: 0px;
	border-bottom: 1px solid #294b54;
}

.panel-sidebar > .panel-body {
	background: linear-gradient(
		to bottom,
		rgba(0,0,0,0.15),
		rgba(0,0,0,0.65)
	);
	backdrop-filter: blur(10px);
	color: #ffff;
	font-family: 'Lato', sans-serif;
	border: 0px;
	border-bottom: 1px solid #294b54;
}

.panel-sidebar > .panel-heading > .panel-title {
	font-weight: bold;
}

/**.panel-usercp {
	background: url('../img/usercp_bg.jpg') no-repeat top center;
	background-size: cover;
}*/

.panel-usercp {
    position: relative;   /* Necesario para posicionar el pseudo-elemento */
    background: none;     /* Eliminamos el fondo directo */
    z-index: 1;           /* Asegura que el contenido esté por encima */
}

.panel-usercp::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/usercp_bg.jpg') no-repeat top center;
    background-size: cover;
    opacity: 0.3;         /* Ajusta este valor: 0 = totalmente transparente, 1 = opaco */
    z-index: -1;          /* Coloca el pseudo-elemento detrás del contenido */
}

/* Opcional: si algún elemento interno necesita respetar el apilamiento */
.panel-usercp > * {
    position: relative;   /* Asegura que los hijos estén por encima del pseudo-elemento */
}

.panel-usercp ul {
	list-style-type: none;
	padding: 0px;
	margin: 0px;
}

.panel-usercp ul li {
	display: table;
	width: 100%;
	vertical-align: middle;
	line-height: 30px;
}

.panel-usercp ul li a {
	color: #aaa !important;
	text-shadow: 0 2px 4px rgba(0,0,0,0.5);
	font-weight: bold;
}
.panel-usercp ul li a:active, .panel-usercp ul li a:hover {
	color: #5d8ec9 !important;
}

.panel-usercp ul li img {
	position: relative;
	top: -2px;
	padding-right: 10px;
}

.sidebar-banner {
	text-align: center;
	margin: 20px 0px;
	border: 0px;
}

.sidebar-banner img {
	border: 0px;
	-moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    -khtml-border-radius: 5px;
	width: 100%;
	height: auto;
}

/* PANEL SIDEBAR EVENT TIMERS */
.panel-sidebar-events {
	background: #000000 url('../img/panel_events_bg.jpg') no-repeat top center;
	background-size: cover;
	border: 3px solid #444;
}
	.panel-sidebar-events > .panel-heading {
		background: #ffc375 url('../img/navbg_alt.jpg') no-repeat top center;
		color: #95eaff;
		font-family: 'Lato', sans-serif;
		border: 0px;
		border-bottom: 1px solid #444;
	}

	.panel-sidebar-events > .panel-heading > .panel-title {
		font-weight: bold;
	}
	.panel-sidebar-events > .panel-body {
		color: #ccc;
	}
		.panel-sidebar-events > .panel-body > .table {
			margin-bottom: 0px !important;
		}

.event-schedule-open {
	color: #00ff00;
}

.event-schedule-inprogress {
	color: #ffff00;
}

.panel-sidebar-events .smalltext {
	font-size: 11px;
	position: relative;
	top: -5px;
}

/* GENERAL PANEL STYLING */
.panel-general {
	margin-bottom: 30px;
	background: #f1f1f1;
	border: 1px solid #e3e3e3;
	-moz-border-radius: 0px;
	border-radius: 0px;
	color: #333;
}

.panel-body .panel-title {
	color: #666;
	font-family: 'Lato', sans-serif;
	font-size: 14px;
	border-bottom: 1px solid #e3e3e3;
	margin-bottom: 20px !important;
	font-weight: bold;
}

/* ADD STATS MODULE */
.panel-addstats {
	margin-bottom: 30px;
	background: #f1f1f1;
	border: 1px solid #e3e3e3;
	-moz-border-radius: 0px;
	border-radius: 0px;
	color: #333;
}
.panel-addstats .character-avatar img {
	width: 100px;
	height: auto;
	-moz-box-shadow: 0 0 5px #666;
	-webkit-box-shadow: 0 0 5px #666;
	box-shadow: 0 0 5px #666;
	-moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    -khtml-border-radius: 50%;
}
.panel-addstats .character-name {
	color: #666;
	font-family: 'Lato', sans-serif;
	font-size: 18px;
	border-bottom: 1px solid #e3e3e3;
	padding: 20px 0px;
	margin-bottom: 20px !important;
	font-weight: bold;
}

/* HELPER CLASSES */
.rounded_corners_image {
	-moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    -khtml-border-radius: 50%;
}

/* DOWNLOADS */
.panel-downloads {
	margin-bottom: 30px;
	background: #f1f1f1;
	border: 1px solid #e3e3e3;
	-moz-border-radius: 0px;
	border-radius: 0px;
	color: #333;
}
	.download-description {
		font-size: 11px;
		position: relative;
		top: -7px;
		color: #777;
	}

.online-status-indicator {
	margin-left: 5px;
}

/* WEBENGINE CMS */
.webengine-powered { color: #777 !important; }
.webengine-powered:active, .webengine-powered:hover { color: #ff3214 !important; }

/* LANGUAGE PICKER */
.webengine-language-switcher {
	display: inline-block;
	list-style: none;
	padding: 0px !important;
	margin: 0px !important;
	overflow: hidden;
	transition: all .3s ease;
}
	.webengine-language-switcher li {
		display: inline-block;
		list-style-type: none;
		background: #333333;
		padding: 0px 5px 2px 5px;
		-webkit-border-radius: 3px;
		-moz-border-radius: 3px;
		border-radius: 3px;
		-khtml-border-radius: 3px;
		transition: all .3s ease;
	}
	.webengine-language-switcher li:hover {
		-webkit-filter: brightness(120%);
		filter: brightness(120%);
	}
	.webengine-language-switcher li a {
		color: #999999;
	}
	.webengine-language-switcher li a:hover {
		color: #ffffff !important;
	}

/* MY ACCOUNT CHARACTER LIST */
.myaccount-character-block {
	background: #333;
	border: 1px solid #666;
	padding: 5px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	display: inline-block;
	margin: 0px auto;
	-moz-box-shadow: 0 0 10px rgba(0,0,0,0.5);
	-webkit-box-shadow: 0 0 10px rgba(0,0,0,0.5);
	box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
	.myaccount-character-block img {
		width: 100px;
		height: auto;
		-moz-border-radius: 3px;
		-webkit-border-radius: 3px;
		border-radius: 3px;
		-moz-box-shadow: 0 0 5px #000;
		-webkit-box-shadow: 0 0 5px #000;
		box-shadow: 0 0 5px #000;
		-moz-transition: all 0.3s ease;
		-o-transition: all 0.3s ease;
		-webkit-transition: all 0.3s ease;
		transition: all 0.3s ease;
	}
		.myaccount-character-block img:hover {
			-webkit-filter: brightness(120%);
			filter: brightness(120%);
		}
.myaccount-character-block-location {
	font-size: 12px;
	color: #cbcabc;
	margin-bottom: 20px;
	margin-top: 2px;
	line-height: 1.2;
}
.myaccount-character-block-level {
	position: relative;
	top: -77px;
	display: inline-block;
	background: rgba(0,0,0,0.5);
	padding: 0px 5px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	color: #fff;
	font-size: 10px;
}
.myaccount-character-name a {
	font-weight: bold;
	color: #cbcabc;
	font-size: 16px;
}

/* ===========================
   Mobile: botones m¨¢s chicos
   =========================== */
@media (max-width: 767px) {

  /* Botones generales */
  .btn,
  button,
  input[type="submit"],
  input[type="button"] {
    font-size: 14px;        /* antes era grande */
    padding: 8px 12px;     /* menos alto */
    line-height: 1.2;
  }

  /* Botones grandes espec¨ªficos (login, registro, etc.) */
  .btn-primary,
  .btn-yellow {
    padding: 8px 14px;
    font-size: 14px;
  }

  /* Inputs para que no queden m¨¢s grandes que los botones */
  input[type="text"],
  input[type="password"],
  input[type="number"],
  select {
    font-size: 14px;
    padding: 8px 10px;
  }
}
  @media (max-width: 767px) {

  .footer {
    padding: 30px 0;
  }

  /* Forzar que el grid del footer sea vertical */
  .footer .row {
    display: block;
  }

  /* Cualquier columna del footer: 100% */
  .footer .footer-col,
  .footer [class*="col-"] {
    float: none;
    width: 100%;
    text-align: center;
    margin-bottom: 16px;
  }

  /* Hora: tamaño y centrado */
  .footer-time {
    font-size: 28px;
    line-height: 1.1;
    margin: 8px 0 0;
    top: 0; /* anula el top:-10px desktop */
  }

  /* Para que “Hora del Servidor / Tu hora” no quede en columna angosta */
  .footer .footer-col.text-right,
  .footer .footer-col.text-left {
    text-align: center;
  }
   /* Menos aire general en el footer */
  .footer {
    padding: 24px 0;
  }

  .footer .footer-col,
  .footer [class*="col-"] {
    margin-bottom: 10px;
  }

  /* Bloque específico de hora (si está en una columna) */
  .footer-time {
    font-size: 24px;     /* antes 28px */
    line-height: 1.1;
    margin: 6px 0 14px;  /* compacta */
    top: 0;
  }

  /* Textos "Hora del Servidor" y "Tu hora" */
  .footer .footer-col h4,
  .footer .footer-col h5,
  .footer .footer-col strong,
  .footer .footer-col b {
    display: block;
    margin: 8px 0 4px;
  }

  /* La línea de día/mes bajo la hora (si es <small> o texto normal) */
  .footer .footer-col small {
    display: block;
    margin-top: 2px;
    opacity: 0.9;
  }
}


/* ===========================
   Mobile: evitar ancho fijo (sin !important)
   =========================== */
@media (max-width: 991px) {

  #header {
    min-width: 0;
  }

  #container {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
  }

  #navbar {
    width: 100%;
    box-sizing: border-box;
  }

  .footer > .footer-container {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
  }

  /* por si alguna imagen empuja el ancho */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* ===== RANKINGS LEVEL - DISEÑO MEJORADO ===== */

/* Contenedor del menú de rankings */
.rank-menu-container {
    margin-bottom: 25px;
}

/* Tabla principal */
.ranking-list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background: rgba(20, 25, 35, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 218, 138, 0.2);
    border: 1px solid rgba(41, 75, 84, 0.6);
}

/* Encabezados */
.ranking-list thead tr {
    background: linear-gradient(135deg, #1a2a35 0%, #0f1a22 100%);
    border-bottom: 3px solid #ffda8a;
}

.ranking-list thead th {
    padding: 18px 15px;
    color: #ffda8a;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-family: 'Lato', sans-serif;
    border-bottom: 2px solid #294b54;
}

/* Filas del cuerpo */
.ranking-list tbody tr {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(41, 75, 84, 0.3);
    cursor: pointer;
}

.ranking-list tbody tr:hover {
    background: linear-gradient(90deg, rgba(255, 218, 138, 0.12), rgba(41, 75, 84, 0.25));
    transform: translateX(5px);
    box-shadow: inset 0 0 20px rgba(255, 218, 138, 0.1);
}

.ranking-list tbody td {
    padding: 16px 15px;
    color: #e5e5e5;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 218, 138, 0.1);
    vertical-align: middle;
}

/* Columna de posición (número) */
.ranking-list tbody td:first-child {
    font-weight: 800;
    color: #ffda8a;
    font-size: 1.3rem;
    text-shadow: 0 0 15px rgba(255, 218, 138, 0.4);
    width: 60px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-right: 2px solid #294b54;
}

/* Top 3 - medallas */
.ranking-list tbody tr:nth-child(1) td:first-child {
    color: #FFD700;
    text-shadow: 0 0 20px #FFD700;
    position: relative;
}

.ranking-list tbody tr:nth-child(2) td:first-child {
    color: #C0C0C0;
    text-shadow: 0 0 20px #C0C0C0;
}

.ranking-list tbody tr:nth-child(3) td:first-child {
    color: #CD7F32;
    text-shadow: 0 0 20px #CD7F32;
}

/* Contenedor de personaje */
.ranking-list tbody td:nth-child(2) {
    min-width: 220px;
}

.ranking-list tbody td:nth-child(2) > div {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Imagen del personaje mejorada */
.rank-img {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 3px solid #ffda8a;
    box-shadow: 0 8px 15px rgba(0,0,0,0.5), 0 0 0 2px rgba(41, 75, 84, 0.5);
    transition: all 0.3s ease;
    background: #1a2a35;
}

.rank-img:hover {
    transform: rotate(5deg) scale(1.15);
    border-color: #ffffff;
    box-shadow: 0 12px 25px rgba(255, 218, 138, 0.4);
}

/* Estado online/offline */
.default-char-online {
    border-color: #4caf50 !important;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6) !important;
    animation: pulse-online 2s infinite;
}

.default-char-offline {
    border-color: #757575 !important;
    opacity: 0.8;
    filter: grayscale(30%);
}

@keyframes pulse-online {
    0% { box-shadow: 0 0 20px rgba(76, 175, 80, 0.4); }
    50% { box-shadow: 0 0 30px rgba(76, 175, 80, 0.8); }
    100% { box-shadow: 0 0 20px rgba(76, 175, 80, 0.4); }
}

/* Nombre del personaje */
.rank-name {
    display: block;
    font-weight: 700;
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.rank-name a {
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rank-name a:hover {
    color: #ffda8a !important;
    text-decoration: underline;
}

/* Clase del personaje */
.rank-class {
    display: block;
    font-size: 11px;
    color: #a0b8c5;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Columna de nivel */
.rank-level {
    font-weight: 800;
    color: #64b5f6;
    font-size: 18px;
    text-shadow: 0 2px 8px rgba(100, 181, 246, 0.4);
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    padding: 5px 12px !important;
    display: inline-block;
    margin: 0 auto;
    text-align: center;
    border-left: 2px solid #294b54;
}

/* Ubicación/Mapa */
.ranking-list tbody td:nth-child(4) {
    color: #b8b8b8;
    font-size: 13px;
    font-style: italic;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Banderas de países */
.ranking-list tbody td img[src*="flag"],
.ranking-list tbody td img[src*="Flag"] {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    transition: all 0.25s ease;
    border: 1px solid #ffda8a;
    opacity: 0.9;
}

.ranking-list tbody td img[src*="flag"]:hover,
.ranking-list tbody td img[src*="Flag"]:hover {
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 6px 12px rgba(255, 218, 138, 0.3);
    border-color: #ffffff;
}

/* Fecha de actualización */
.ranking-list + div {
    font-size: 11px !important;
    color: #888 !important;
    text-align: right;
    margin-top: 15px !important;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    display: inline-block;
    float: right;
    border-left: 3px solid #ffda8a;
    font-style: italic;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ===== RESPONSIVE ===== */

/* Tablets */
@media screen and (max-width: 991px) {
    .ranking-list {
        font-size: 13px;
        border-radius: 15px;
    }
    
    .ranking-list thead th {
        padding: 14px 10px;
        font-size: 0.8rem;
    }
    
    .ranking-list tbody td {
        padding: 12px 10px;
    }
    
    .rank-img {
        width: 42px !important;
        height: 42px !important;
        border-width: 2px;
    }
    
    .rank-name {
        font-size: 14px;
    }
    
    .rank-class {
        font-size: 10px;
    }
    
    .rank-level {
        font-size: 15px;
        padding: 4px 10px !important;
    }
}

/* Móviles */
@media screen and (max-width: 767px) {
    .ranking-list {
        border-radius: 12px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .ranking-list thead th,
    .ranking-list tbody td {
        padding: 12px 8px;
    }
    
    .ranking-list tbody td:first-child {
        width: 45px;
        font-size: 1.1rem;
    }
    
    .ranking-list tbody td:nth-child(2) > div {
        gap: 10px;
    }
    
    .rank-img {
        width: 36px !important;
        height: 36px !important;
    }
    
    .rank-name {
        font-size: 13px;
    }
    
    .rank-class {
        font-size: 9px;
    }
    
    /* Ocultar ubicación en móviles si es necesario */
    /*.ranking-list th:nth-child(4),
    .ranking-list td:nth-child(4) {
        display: none;
    }*/
}

/* Móviles muy pequeños */
@media screen and (max-width: 480px) {
    .ranking-list tbody td:nth-child(2) {
        min-width: 160px;
    }
    
    .rank-name {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}