/*!
 
=========================================================
* WebEngine CMS
* https://webenginecms.org/
=========================================================

* Author Lautaro Angelico (https://lautaroangelico.com/)
* Copyright (c) 2013-2022 Lautaro Angelico, All Rights Reserved

* Licensed under the MIT license
* http://opensource.org/licenses/MIT

=========================================================

*/
html {
	min-width: 1040px;
	/* CLAVE: FUERZA LA ALTURA A SER EL 100% DE LA VENTANA VISIBLE */
	height: 100%; 
}

body {
	/* CÓDIGO ORIGINAL - AÑADIDA: position: relative; */
	background: #000000 url('../img/background.jpg') no-repeat top center;
	color: #333;
	font-family: 'PT Sans', sans-serif;
	font-size: 14px;
	margin: 0;
	/* CLAVE: FUERZA LA ALTURA A SER EL 100% DE LA VENTANA VISIBLE */
	height: 100%; 
    position: relative; 
}

@media only screen and (min-width: 2000px) {
	body {
		background: #000000 url('../img/background-2600.jpg') no-repeat top center !important;
	}
}

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;
}

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%;
    margin: 0px auto;
    padding: 80px 0px 10px 0px;
    text-align: center;
    color: #fff;
    /* AJUSTE DE CAPA */
    position: relative;
    z-index: 100;
    /* Mantenemos hidden para no romper el diseño, la ceniza usará FIXED para ignorarlo */
    overflow: hidden; 
}

#container {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    width: 1100px;
    
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important; 
    
    border-radius: 15px 15px 0 0;

    /* --- CAMBIOS PARA FORZAR EL FRENTE --- */
    position: relative !important; 
    z-index: 9999 !important; /* Un valor exageradamente alto */
}

#content {
	width: 100%;
	overflow: auto;
	min-height: 500px;
	padding: 10px 20px 0px 20px;
    /* AJUSTE DE CAPA */
    position: relative;
    z-index: 100;
}

.footer {
    /* Mismo ancho que el container para que coincidan */
    width: 1100px !important; 
    
    /* Centrado horizontal */
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    
    /* Estética moderna (opcional, para que combine con el container) */
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none; /* Para que parezca unido al container */
    color: #aaa !important;
    
    /* Ajuste de bordes */
    border-radius: 0 0 15px 15px; 
    padding: 20px 40px !important;
}
	.footer > .footer-container {
		width: 100%;
		margin: 0px auto;
	}
		.footer > .footer-container a:hover {
			text-decoration: underline !important;
		}
	.footer hr {
		border-top: 1px solid #cacaca;
	}
	.footer .footer-social-link {
		filter: grayscale(100%);
		transition: all .3s ease;
	}
	.footer .footer-social-link:hover {
		filter: grayscale(0%);
	}

#navbar {
	width: 100%;
	backdrop-filter: blur(5px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* AJUSTE DE CAPA */
    position: relative;
    z-index: 100;
}

#navbar ul{
	text-align: center;
	margin: 0px;
	-webkit-padding-start: 0px;
}

#navbar ul li {
	list-style-type: none;
	display: inline-block;
	font-size: 16px;
}

#navbar ul li a {
	display: inline-block;
	color: #cccccc !important;
	text-decoration: none;
	padding: 20px 30px;
	transition: all .3s ease;
	text-transform: uppercase;
}

#navbar ul li a:active, #navbar ul li a:focus, #navbar ul li a:hover {
	color: #ffffff !important;
	text-decoration: none;
}

/* CORRECCIÓN DE Z-INDEX para que se vea sobre la ceniza */
.admincp-button {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #ffffff !important;
	border: 2px solid #000000 !important;
	color: #000000 !important;
	font-weight: bold !important;
    z-index: 1001 !important; 
}

.page-title {
	color: #3f6588;
	font-family: 'PT Sans', sans-serif;
	font-size: 32px;
	margin-bottom: 10px;
	font-weight: bold;
}

/* NEWS MODULE */
.panel-news {
	margin-bottom: 30px;
	color: #333;
	border: 0px;
	-moz-border-radius: 0px;
	border-radius: 0px;
	-moz-box-shadow: 0 0 0px #e3e3e3;
	-webkit-box-shadow: 0 0 0px #e3e3e3;
	box-shadow: 0 0 0px #e3e3e3;
}
.panel-news .panel-heading {
	padding-top: 10px;
	padding-bottom: 10px;
}
.panel-news .panel-title {
	color: #ffffff !important;
	font-size: 24px;
	font-weight: bold;
}
.panel-news .panel-body {
	padding: 10px;
}
.panel-news .panel-footer {
	border-top: 1px solid #e7e7e7;
	background: #fff;
	font-style: italic;
	font-size: 11px;
	height: 40px;
	color: #777;
}

/* RANKINGS MODULE */
.rankings-table {
	width: 100%;
	border-spacing: 0;
	border-collapse: collapse;
}

.rankings-class-image {
	width: 30px;
	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 rgba(255, 255, 255, 0.05) !important;
    color: #eee !important;
    background: transparent !important;
}
.rankings-table-place {
	color: #666;
	font-weight: bold;
	font-size: 24px;
	text-align: center;
}
.rankings-table tr:first-child td {
    color: #00d4ff !important; /* Azul neón para los tops */
    border-bottom: 2px solid #00d4ff !important;
}
.rankings-update-time {
	text-align: right;
	font-size: 11px;
	color: #ccc;
	padding: 10px 0px;
}
.rankings_menu {
	width: 100%;
	overflow: auto;
	text-align: center;
	margin-bottom: 10px;
}
.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: 1px solid #e3e3e3;
	text-align: center;
	padding: 2px 0px;
	margin: 2px;
	background: #f1f1f1;
	-moz-border-radius: 2px;
	border-radius: 2px;
	color: #ccc;
}
.rankings_menu a.active {
	color: #333;
	border-color: #333;
}
.rankings_guild_logo tr td {
	border: 0px !important;
	padding: 0px !important;
	margin: 0px !important;
}
.rankings-gens-img {
	width: auto !important;
	height: 30px !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;
}

/* MY ACCOUNT MODULE */
.myaccount-table {
	width: 100%;
	background: #f1f1f1;
	border: 1px solid #e3e3e3;
}
.myaccount-table tr td:first-child {
	color: #666;
	font-weight: bold;
}
.myaccount-table tr td {
	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: #3f6588;
}
.general-table-ui tr:nth-child(2n+2) 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: 0px;
	border-radius: 0px;
}

/* TERMS OF SERVICE PAGE */
.tos_list li {
	color: #aa0000;
	font-weight: bold;
	font-size: 18px;
	margin-bottom: 40px;
}
.tos_list li p {
	color: #444;
	text-align: justify;
	text-justify: inter-word;
	text-transform: none;
	padding-right: 35px;
	font-size: 14px;
	font-weight: normal;
}

/* 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;
}

.module-requirements {
	font-size: 12px;
	margin-top: 20px;
}

/* SIDEBAR */
.panel-sidebar {
	background: #f1f1f1;
	border: 0px;
	-moz-border-radius: 0px;
	border-radius: 0px;
	-moz-box-shadow: 0 0 10px #e3e3e3;
	-webkit-box-shadow: 0 0 10px #e3e3e3;
	box-shadow: 0 0 10px #e3e3e3;
}

.panel-sidebar > .panel-heading {
	background: #fff;
	color: #3f6588;
	font-family: 'PT Sans', sans-serif;
	border: 0px;
	-moz-border-radius: 0px;
	border-radius: 0px;
	border-bottom: 3px solid #3f6588;
}

.panel-usercp {
	background: url('../img/usercp_bg.jpg') no-repeat top center;
	background-size: cover;
}

.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: #444 !important;
	font-weight: bold;
}
.panel-usercp ul li a:active, .panel-usercp ul li a:hover {
	color: #3f6588 !important;
}

.panel-usercp ul li img {
	position: relative;
	top: -2px;
	width: 25px;
	height: 25px;
	margin-right: 5px;
}

.sidebar-banner {
	margin: 20px 0px;
	border: 0px;
}

.sidebar-banner img {
	-moz-box-shadow: 0 0 10px #e3e3e3;
	-webkit-box-shadow: 0 0 10px #e3e3e3;
	box-shadow: 0 0 10px #e3e3e3;
	border: 0px;
	-moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  -khtml-border-radius: 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: 'PT Sans', 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: 0px;
	border-radius: 0px;
}
.panel-addstats .character-name {
	color: #666;
	font-family: 'PT Sans', sans-serif;
	font-size: 18px;
	border-bottom: 1px solid #e3e3e3;
	padding: 20px 0px;
	margin-bottom: 20px !important;
	font-weight: bold;
}

/* 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; }

/* GLOBAL TOP BAR */
.global-top-bar {
	width: 100%;
	background: #101010;
	color: #777777;
	padding: 7px 0px 2px 0px;
	text-transform: uppercase;
	font-size: 12px;
    /* AJUSTE DE CAPA */
    position: relative;
    z-index: 100;
}
	.global-top-bar .global-top-bar-content {
		width: 1040px;
		margin: 0px auto;
	}
		.global-top-bar .global-top-bar-content .row {
			margin: 0px;
			padding: 0px;
		}
	.global-top-bar a.logout {
		color: #ff0000 !important;
	}
	.global-top-bar a {
		color: #999999 !important;
	}
	.global-top-bar a:hover {
		color: #ffffff !important;
	}
.global-top-bar-nopadding {
	padding: 0px !important;
}
.global-top-bar-separator {
	padding: 0px 5px;
}

/* LANGUAGE PICKER */
.webengine-language-switcher {
	display: inline-block;
	list-style: none;
	padding: 0px !important;
	margin: 0px !important;
	width: 46px;
	height: 19px;
	overflow: hidden;
	transition: all .3s ease;
}
.webengine-language-switcher:hover {
	width: 400px;
}
	.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;
	}

/* WEBSITE LOGO */
.webengine-mu-logo {
	transition: all .3s ease;
}
	.webengine-mu-logo:hover {
		-webkit-filter: brightness(120%);
		filter: brightness(120%);
	}

/* HEADER INFO */
.header-info-container {
	width: 1040px;
	margin: 0px auto;
	text-align: right;
    /* AJUSTE DE CAPA */
    position: relative;
    z-index: 100;
}
	.header-info-container .header-info {
		display: inline-block;
		width: 350px;
		background: rgba(0, 0, 0, 0.3);
		backdrop-filter: blur(5px);
		margin: 0px;
		padding: 20px;
		overflow: auto;
		-moz-box-shadow: 0 0 15px rgba(0,0,0,0.7);
		-webkit-box-shadow: 0 0 15px rgba(0,0,0,0.7);
		box-shadow: 0 0 15px rgba(0,0,0,0.7);
		-webkit-border-radius: 5px;
		-moz-border-radius: 5px;
		border-radius: 5px;
		-khtml-border-radius: 5px;
		text-shadow: 1px 1px 3px #000000;
		color: #ffffff;
		border: 1px solid rgba(255,255,255,0.1);
		font-size: 12px;
	}
		.header-info-container .header-info .header-info-block {
			padding: 0px;
			color: #aaaaaa;
		}
		.header-info-container .header-info .header-info-block #tServerTime, .header-info-container .header-info .header-info-block #tLocalTime {
			color: #ffffff;
		}
		.header-info-container .header-info .header-info-block #tServerDate, .header-info-container .header-info .header-info-block #tLocalDate {
			color: #cccccc;
		}
		.header-info-container .header-info .header-info-block .online-count {
			color: #00ff00;
		}
	
/* ONLINE BAR */
.webengine-online-bar {
	width: 100%;
	background: #000000;
	border: 1px solid #555555;
	height: 8px;
	margin-top: 10px;
	margin-bottom: 10px;
	padding: 0px;
	-webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  -khtml-border-radius: 4px;
	overflow: hidden;
	transition: all .3s ease;
}
	.webengine-online-bar .webengine-online-bar-progress {
		height: 8px;
		background: #00ff00 url('../img/online_progress_bar.jpg') no-repeat left center;
		-webkit-border-radius: 0px 1px 1px 0px;
		-moz-border-radius: 0px 1px 1px 0px;
		-khtml-border-radius: 0px 1px 1px 0px;
		border-radius: 0px 1px 1px 0px;
	}
	.webengine-online-bar:hover {
		-webkit-filter: brightness(120%);
		filter: brightness(120%);
	}

/* 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: #ffffff !important; /* Ahora es Blanco */
	margin-bottom: 20px;
	margin-top: 2px;
	line-height: 1.2;
	text-shadow: 1px 1px 2px #000;
}
.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: #00d4ff !important; /* Ahora es Cian Neón */
	font-size: 16px;
	text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

/* RANKINGS FILTER BY CLASS */

.rankings-class-filter {
	display: inline-block;
	list-style-type: none;
	margin: 20px auto;
	padding: 10px 20px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	border-radius: 10px;
	-khtml-border-radius: 10px;
}

	.rankings-class-filter li {
		display: inline-block;
		-moz-transition: all 0.3s ease;
		-o-transition: all 0.3s ease;
		-webkit-transition: all 0.3s ease;
		transition: all 0.3s ease;
		margin-bottom: 10px;
	}
	
	.rankings-class-filter li:hover {
		-webkit-filter: grayscale(0%);
		filter: grayscale(0%);
	}

.rankings-class-filter-selection {
	display: inline-block;
	width: 75px;
	text-align: center;
	color: #000000;
	font-size: 11px;
	cursor: pointer;
}

	.rankings-class-filter-selection:hover {
		color: #000000 !important;
	}

	.rankings-class-filter-selection:hover img {
		-webkit-filter: brightness(120%);
		filter: brightness(120%);
	}

.rankings-class-filter-selection img {
	width: 40px;
	height: auto;
	-moz-border-radius: 50%;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	-khtml-border-radius: 50%;
	margin-bottom: 5px;
	-moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
	-webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.45);
	-moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.45);
	box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.45);
}

.rankings-class-filter-grayscale {
	-webkit-filter: grayscale(100%);
	filter: grayscale(100%);
}

/* Home - News List */

.home-news-block {
	
}

.home-news-block .home-news-block-header h2 {
	padding: 0px !important;
	margin: 0px 0px 20px 0px !important;
	font-style: italic;
	color: #ffffff !important;
}

.home-news-block .home-news-block-header a {
	display: inline-block;
	padding-top: 5px;
	font-style: italic;
	font-size: 16px;
	color: #ffffff !important;
    text-decoration: none;
}

.home-news-block-article {
	margin-top: 10px;
}

.home-news-block-article .home-news-block-article-type {
	display: block;
	border: 1px solid #3f6588;
	padding: 5px;
	text-align: center;
	color: #3f6588;
}

.home-news-block-article .home-news-block-article-title-container {
	overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-news-block-article .home-news-block-article-title, .home-news-block-article .home-news-block-article-date {
	line-height: 30px;
}

/* Event Timer Block */

.event-schedule-open {
	color: green;
}

.event-schedule-inprogress {
	color: orange;
}

.panel-sidebar-events .smalltext {
	font-size: 11px;
	position: relative;
	top: -5px;
}
/* Estilo Base de los Botones Flotantes (Círculo de 100px) */
.floating-button {
  position: fixed;
  width: 100px;
  height: 100px;
  /* Eliminamos line-height y usamos flexbox para centrar la imagen */
  text-align: center;
  border-radius: 50%;
  color: white; /* No se usa con imágenes, pero se mantiene */
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  animation: pulse 1.5s infinite;
  
  /* PROPIEDADES CLAVE PARA CENTRAR LA IMAGEN: */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Estilo para las IMAGENES dentro del botón (Asegura que la imagen quepa) */
.button-icon-img {
  max-width: 60%; /* La imagen ocupará el 60% del círculo (60px) */
  max-height: 60%;
  object-fit: contain;
}

/* Posición y color del Botón de WhatsApp (superior) */
.button-1 {
  background-color: #25D366;
  right: 50px;
  bottom: 700px;
}

/* Posición y color del Botón de Discord (inferior) */
.button-2 {
 background-color: #7289DA;
  right: 50px;
  bottom: 570px; /* Separación de 30px del botón de WhatsApp (700px - 100px - 570px = 30px) */
}

/* Animación de "movimiento" (efecto de pulsación) */
@keyframes pulse {
  0% {
  transform: scale(1);
  }
  50% {
  transform: scale(1.15); /* Tu ajuste a 1.15 está bien para una pulsación fuerte */
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
  }
  100% {
  transform: scale(1);
  }
}

/* ---------------------------------------------------------------- */
/* CÓDIGO DE CAÍDA DE CENIZA (SOLUCIÓN FINAL CON FIXED)             */
/* ---------------------------------------------------------------- */

/* Contenedor de Capa (CLAVE: Fija el contenedor a la ventana visible, ignora el scroll) */
#ash-container {
    position: absolute; 
    top: 0; 
    left: 0;
    width: 100vw; 
    height: 100vh; 
    z-index: 5; 
    pointer-events: none;
    overflow: hidden; /* PRUEBA CON ESTO */
}

/* Estilo Base de la Partícula (Elemento <img>) */
#ash-container .ash-particle {
    position: absolute;
    
    /* Aplicamos las tres animaciones */
    animation-name: sway, rotate; 
    animation-timing-function: linear, ease-in-out, linear;
    animation-iteration-count: infinite;
}


/* 2. ANIMACIÓN DE BALANCEO (Horizontal) */
@keyframes sway {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(40px); }
}

/* 3. ANIMACIÓN DE GIRO (Rotación) */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ---------------------------------------------------------------- */
/* --- WIDGET DE TWITCH: VERSIÓN CRISTAL NEÓN CYAN & BLANCO --- */
/* ---------------------------------------------------------------- */

#twitch-live-widget {
    position: fixed !important;
    top: 170px; 
    left: 30px; 
    
    /* FONDO CRISTAL CIAN MUY OSCURO */
    background: rgba(5, 25, 35, 0.75) !important; 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    /* BORDE CIAN ELÉCTRICO */
    border: 1px solid rgba(0, 255, 255, 0.8) !important;
    border-radius: 2px;
    
    /* DOBLE SOMBREADO: NEGRO PARA PROFUNDIDAD + BLANCO PARA RESPLANDOR */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 
                0 0 15px rgba(255, 255, 255, 0.2); 
    
    z-index: 9999999 !important; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Efecto Hover: Aumenta el resplandor blanco al pasar el mouse */
#twitch-live-widget:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 
                0 0 20px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.9) !important;
}

.twitch-cerrado {
    height: 140px !important; 
    width: 240px !important;  
    cursor: pointer;
}

.twitch-abierto {
    height: 420px !important;
    width: 700px !important; 
}

#twitch-player-container {
    width: 100%;
    height: 100%;
    background: #000;
}

#twitch-player-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.twitch-cerrado #twitch-player-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7; 
    z-index: 1;
    pointer-events: auto; 
}

.twitch-abierto #twitch-player-container {
    height: calc(100% - 35px); 
    opacity: 1;
    pointer-events: auto;
}

#live-button-container {
    display: none;
}

.twitch-cerrado #live-button-container {
    display: flex; 
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #00ffff; /* TEXTO CIAN */
    font-weight: bold;
    font-family: 'Arial Black', sans-serif;
    gap: 10px; 
    font-size: 16px; 
    /* RESPLANDOR CIAN + SOMBRA BLANCA EN TEXTO */
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 5px rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    position: relative;
    z-index: 10;
}

/* Header del Widget (Solo abierto) */
.widget-header {
    color: #ffffff;
    padding: 8px;
    font-family: sans-serif;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    background: rgba(0, 180, 200, 0.6); /* FONDO CIAN OSCURO */
    border-bottom: 1px solid rgba(0, 255, 255, 0.5);
    text-transform: uppercase;
}

.twitch-cerrado .widget-header,
.twitch-cerrado #cerrar-twitch-widget {
    display: none;
}

/* Botón 'X' Estilo Neón */
#cerrar-twitch-widget {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #00E5FF;
    color: #000;
    border: 1px solid white;
    border-radius: 0px; 
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-weight: bold;
    z-index: 1001;
    transition: all 0.3s;
}

#cerrar-twitch-widget:hover {
    background: #ffffff;
    color: #ff3214;
    box-shadow: 0 0 10px white;
}

/* --- INDICADOR LIVE CIAN --- */
.live-indicator {
    display: block;
    width: 10px;
    height: 10px;
    background-color: #00ffff;
    border-radius: 0px; 
    box-shadow: 0 0 15px #00ffff, 0 0 5px #ffffff;
    animation: twitch-blink 1.2s infinite;
}

@keyframes twitch-blink { 
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}