/* Dunacraft | MOBILE CSS */

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}

body {
    background-image: 
        /* Capa nueva: Color sólido con 15% de opacidad */
        linear-gradient(rgba(54, 58, 63, 0.23), rgba(54, 58, 63, 0.23)),
        /* Tu gradiente original */
        linear-gradient(325deg, rgba(3, 3, 17, 1.00) 0.00%, rgba(2, 7, 5, 1.00) 47.05%, rgba(3, 23, 16, 1.00) 100%);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: black;
    min-height: 100vh;
}

#main-container {
    width: 360px !important; 
    height: 655px !important;
    position: relative !important;
    margin-left: auto !important;
    margin-right: auto !important;
    left: 0 !important;
    right: 0 !important;
    overflow: hidden !important;
    transform: none !important; 
    outline: 0px solid red;
	filter: contrast(0.9) brightness(1.0) saturate(1.8) !important;
}

.logo {
    position: absolute;
    top: 82px;
    left: 105px;
    width: 260px;
    height: 66px;
	user-select: none;
	pointer-events: none;
	-webkit-user-drag: none;
    display: none !important;
}

/* OCULTAR MENÚ VIEJO */
.menu_top { display: none !important; }

/* HEADER PRINCIPAL */
.header-mobile {
	position: relative !important; /* Para que empuje el contenido hacia abajo */
	width: 100%;
	background-color: rgba(10,10,10,1.00);
	z-index: 10000;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: flex-start !important; /* Alinea al inicio (izquierda) */
    align-items: center;
    padding: 5px 20px;
    gap: 15px; /* Espacio entre hamburguesa y logo */
}

/* BOTÓN HAMBURGUESA - REPARACIÓN DE LÍNEAS */
.hamburger {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 23px !important;
    height: 18px !important; /* Altura total del bloque de 3 líneas */
}

.hamburger span {
    display: block !important;
    width: 100% !important;
    height: 3px !important; /* Grosor de cada línea */
    background-color: #ffffff !important;
    border-radius: 2px;
}

/* LOGO */
.logo-hamburguesa {
    height: 30px !important; /* Tamaño similar al de la captura DiosesMC */
    width: auto !important;
	margin-top: 4px !important; /* Ajusta este número (2px, 4px, 6px) hasta que lo veas perfecto */
    position: relative !important;
}

/* MENÚ DESPLEGABLE */
.nav-links {
	display: none;
	flex-direction: column;
	width: 100%;
	background-color: rgba(0,0,0,0.05) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(133, 126, 126, 0.5);
}

#mobile-nav {
    display: none; /* Se activa con .active */
    flex-direction: column !important;
    align-items: center !important; /* CENTRADO HORIZONTAL AUTOMÁTICO */
    justify-content: center !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 10px 0 !important; /* Damos un poco de aire arriba y abajo */
}
.nav-links.active {
    display: flex !important; /* Se activa con JS y empuja lo de abajo */
}

.nav-links a {
	padding: 10px 25px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.00);
	border-top: 0px solid rgba(255,255,255,0.09);
	position: relative;
	top: -1px;
}

.nav-links a img {
    height: 20px !important;
    width: auto !important;
    position: relative !important;
    top: 2px
}

.menu-box {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px !important;
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    
    /* REESTRUCTURACIÓN DE CENTRADO */
    width: 88% !important; /* Un ancho consistente */
    position: relative !important;
    left: 0 !important; /* Eliminamos el 50% anterior */
    transform: none !important; /* Eliminamos el translateX anterior */
    margin: 0 auto !important; /* Margen automático para seguridad extra */
}

/* Estilo de los enlaces/imágenes */
.menu-box a {
    display: flex;
    justify-content: flex-start;
    padding: 3px !important;
    width: 97%;
}

.menu-box a img {
    height: 25px; /* Tamaño controlado de tus botones */
    width: auto;
}

.banner {
    width: 95% !important;
    height: auto !important; 
    position: absolute;
    top: 20px;
    left: 2.8%;
	user-select: none;
	pointer-events: none;
	-webkit-user-drag: none;
	outline: 0px solid red;
}

.boton_ip {
    position: relative !important;
    top: 125px !important;
    left: 35.7% !important;
    display: inline-block !important; 
    margin: 0 !important; 
    width: fit-content;
}

#img_ip {
    width: 60px !important; 
    height: auto !important;
    transition: none !important;
    transform: none !important;
    user-select: none;
    -webkit-user-drag: none;
	
}

.boton_ip:hover #img_ip {
    transform: none !important;
    transition: none !important;
}

.ip_copy {
	position: fixed!important;
	top: 12% !important; /* Centrado vertical absoluto */
    left: 70% !important; /* Centrado horizontal absoluto */
	border-radius: 20px;
	z-index: 99999 !important;
	opacity: 0;
	pointer-events: none;
	transition: opacity 1s ease;
	transform: translate(-50%, -50%) scale(.60) !important;
	width: 80%
	
}

.mostrar-mensaje {
    opacity: 1 !important;
}

.recursos_title {
	width: 360px !important; 
    height: auto !important;
    position: absolute;
    top: 170px;
    left: -0.4%;
	user-select: none;
	pointer-events: none;
	-webkit-user-drag: none;
}

/* RECURSOS - 4 EN LÍNEA (ESTILO ORIGINAL) */
.recursos_image {
    position: absolute !important;
    top: 200px !important; 
    left: -.6% !important;
    width: 100% !important; 
    display: flex !important;
    flex-wrap: nowrap !important; /* Forzamos una sola línea */
    justify-content: center !important; 
    gap: 8px !important; /* Espacio reducido para que quepan todos */
    padding: 0 !important;
}

.recursos_image a, .recursos_image .marco-zoom {
    width: 82px !important; /* Tamaño calculado para que 4 entren en 380px */
    height: 82px !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
}

.recursos_image img, .img-transicion {
    width: 100% !important; 
    height: auto !important;
    transition: none !important; 
    transform: none !important;
}

/* 1. Ocultamos cualquier imagen de fondo o secundaria que no sea la versión con _ */
.recursos_image img:not([src*="_"]), 
.recursos_image .img-hover {
    display: none !important;
}

/* 2. Forzamos que la imagen con _ sea siempre visible y estática */
.recursos_image img[src*="_"], 
.img-transicion {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 82px !important;
    height: 82px !important;
    transition: none !important;
    transform: none !important;
}

/* 3. Evitamos que el contenedor oculte la imagen al tocarla */
.marco-zoom {
    overflow: visible !important;
    background: none !important;
}

.novedades_title {
	width: 163px;
	height: auto;
	position: absolute;
	top: 320px;
	left: 5.9%;
	user-select: none;
	pointer-events: none;
	padding-right: 5px !important;
	-webkit-user-drag: none;
}

.novedades {
    /* Mantenemos tus medidas y posición, pero activamos el flujo vertical */
    width: 86% !important; /* Ajustado para tu caja de 380px */
    max-width: 330px !important;
    height: auto !important; /* Altura automática para que crezca con el contenido */
    position: absolute !important;
    top: 298px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    
    display: flex !important;
    flex-direction: column !important; /* Imagen arriba, texto abajo */
    align-items: center !important;
    gap: 15px !important;
    padding: 15px !important;
	padding-top: 50px !important;
	overflow: hidden !important; /* Esto recorta las esquinas de la imagen */
    border-radius: 20px;
    border: 2px solid #857E7E;
    overflow: hidden;
}

.novedades_cont {
    /* Quitamos el absolute para que el texto baje y se acomode solo */
    position: relative !important; 
    top: 0 !important;
    left: 0 !important;
    width: 98% !important; /* Ocupa todo el ancho de la caja gris */
    height: 130px !important; /* Altura fija para el scroll de noticias */
    overflow-y: auto;
    color: #FFFFFF;
    font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
}

.entrada-noticia p {
    font-size: 0.95rem !important; /* Estaba en 1rem, esto la hace más fina */
    line-height: 1.1 !important;
    color: #cccccc !important;
    width: 100% !important; /* Reducimos un poco el ancho para dar aire al scroll */
    text-align: justify;
}

.novedades img[src*="news.png"] {
    display: none !important;
}

.banner_1 {
	width: 330px;
	height: auto;
	position: absolute;
	top: 1349px;
	left: 3.3%;
	border: 2px solid #A8A8A8;
	border-radius: 20px;
	user-select: none;
	pointer-events: none;
	-webkit-user-drag: none;
	display: none !important;
}

img[src*="banner_vert"] {
    width: 320px !important; /* Ajusta este valor según lo grande que lo quieras */
    height: auto !important;
    display: block !important;
    margin: 0 auto !important; /* Lo centra horizontalmente */
    position: relative !important;
	display: none !important;
}

.votar_title {
    width: 160px !important; /* Ajusta el ancho según tu diseño de Photoshop */
    height: auto !important;
    position: absolute !important;
    top: 520px !important; /* Un poco más arriba que el botón */
    left: 72% !important;
    transform: translateX(-50%) !important;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    z-index: 10;
}
	
.boton_votar {
	top: 525px;
	left: 7%;
	position: absolute;
}

.boton_votar img {
    width: 140px !important; /* O ajusta este valor exacto en píxeles */
    height: auto !important;
    transition: none !important;
}
	
.footer_duna {
	/* Mantenemos tu estructura base pero corregimos el ancho para móvil */
	width: 100% !important;
	height: auto !important;
	position: absolute !important;
	top: 600px !important; /* Ajusta según el largo final de tu página */
	left: 0 !important;
	text-align: center !important;
	padding: 0px 0 !important;
	/* CAMBIO DE COLOR */
	background-color: rgba(0, 0, 0, 0.0) !important; /* Fondo sutil */
	color: #cccccc !important; /* Color de texto gris suave */
	border-top: 1px solid rgba(133, 126, 126, 0.3) !important; /* Tu línea divisoria */
	font-family: "Gill Sans", sans-serif !important;
	font-size: 12px !important;
}

.footer_text span {
    color: #ffffff; 
    font-weight: bold;
}

@media screen and (min-width: 480px) and (max-width: 1380px) {
    #main-container {
        /* 1. Reseteamos márgenes y posicionamiento */
        margin-left: 50% !important;
        transform: translateX(-50%) scale(2) !important;
        transform-origin: top center !important;
        
        /* 2. Forzamos el ancho para que no dependa de porcentajes calculados */
        width: 360px !important; /* El ancho original de tu diseño */
        max-width: none !important;
        
        /* 3. Limpieza de reglas previas */
        left: auto !important;
        right: auto !important;
        display: block !important;
    }
    
    body {
        overflow-x: hidden !important;
        height: 1355px !important;
    }
}