 :root {
		--color-primary: #150F1C;
		--color-white: #fff;
		--color-accent: #FF40CC;
		--color-whatsapp: #27D045;
		--color-telegram: #229ED9;
 }

* {
	 margin: 0;
	 padding: 0;
	 box-sizing: border-box;
	 font-family: 'Poppins', sans-serif;
	 scroll-behavior: smooth;
	 list-style: none;
	 text-decoration: none;
}

body {
	 background-color: var(--color-primary);
	 color: var(--color-white);
}

.titles-container h2{
	font-size: 32px;
	margin-bottom: 5px;
	
}

@media (max-width: 768px) {
	.titles-container h2{
		line-height: 1;
	}
}

.titles-container hr{
	width: 75px;
	border-radius: 50px;
	border: 3px solid var(--color-accent);
	margin-bottom: 20px;
}

.main-cta{
	width: 300px;
	text-align: center;
	padding: 15px 30px;
	background-color: var(--color-accent);
	color: var(--color-white);
	font-size: 20px;
	border-radius: 16px;
	transition: all 0.3s ease;
	color: var(--color-primary);
	text-transform: uppercase;
	font-weight: 700;
	animation: pulse 1.5s infinite;
}

/* Botón Telegram CTA */
.comunidad-cta{
		margin-top: 50px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 250px;
		text-align: center;
		padding: 15px 30px;
		background-color: var(--color-telegram);
		color: var(--color-white);
		font-size: 20px;
		border-radius: 16px;
		transition: all 0.3s ease;
		text-transform: uppercase;
		font-weight: 700;
		box-shadow: 0 0 0 0 rgba(34, 158, 217, 0.7);
		animation: pulsetelegram 1.5s infinite;
}

/* Botón WhatsApp CTA */
.comunidad-cta.WhatsApp{
		background-color: #25D366;
		box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
		animation: pulsewhatsapp 1.5s infinite;
}


@keyframes pulsetelegram {
   0% {
	   box-shadow: 0 0 0 0 rgba(34, 158, 217, 0.7);
   }
   70% {
	   box-shadow: 0 0 0 15px rgba(34, 158, 217, 0);
   }
   100% {
	   box-shadow: 0 0 0 0 rgba(34, 158, 217, 0);
   }
}

@keyframes pulsewhatsapp {
   0% {
	   box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
   }
   70% {
	   box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
   }
   100% {
	   box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
   }
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 64, 204, 0.7);
	}
	70% {
		box-shadow: 0 0 0 15px rgba(255, 64, 204, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(255, 64, 204, 0);
	}
}

video{
	width: 250px;
	height: auto;
}

/* header */

/* nav */

nav{
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 80px;
	z-index: 100;
	background-color: var(--color-primary);
	padding: 0 20px;
}

.nav-container{
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 90%;
	max-width: 1200px;
	position: relative;
}

.nav-container img{
	width: 100px;
	cursor: pointer;
}

/* Menú hamburguesa - oculto por defecto en desktop */
.hamburger-menu {
	display: none;
	flex-direction: column;
	cursor: pointer;
	gap: 4px;
}

.hamburger-menu span {
	width: 25px;
	height: 3px;
	background-color: var(--color-white);
	transition: all 0.3s ease;
}

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

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

.hamburger-menu.active span:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -6px);
}

/* Menú de navegación */
.nav-menu {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 50px;
}

.nav-menu li a{
	cursor: pointer;
	font-size: 18px;
	transition: all 0.3s ease;
	color: var(--color-white);
}

.nav-menu li a:hover{
	color: var(--color-accent);
}

/* Media queries para responsive */
@media (max-width: 768px) {
	.hamburger-menu {
		display: flex;
	}
	
	.nav-menu {
		position: fixed;
		top: 80px;
		left: 0;
		width: 100%;
		height: auto;
		max-height: 300px;
		background-color: var(--color-primary);
		flex-direction: column;
		justify-content: flex-start;
		align-items: center;
		padding: 30px 0;
		gap: 20px;
		transition: transform 0.3s ease;
		transform: translateY(-100vh);
		z-index: 99;
		border-bottom: 2px solid var(--color-accent);
		box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
	}
	
	.nav-menu.active {
		transform: translateY(0);
	}
	
	.nav-menu li a {
		font-size: 20px;
		padding: 10px 20px;
		display: block;
		width: 100%;
		text-align: center;
	}
}

/* Overlay para oscurecer el contenido */
.menu-overlay {
	position: fixed;
	top: 80px;
	left: 0;
	width: 100%;
	height: calc(100% - 80px);
	background-color: rgba(0, 0, 0, 0.8);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 98;
}

.menu-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* fin nav */

section.hero-slider{
	width: 100%;
	height: 500px;
	background-size: cover;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
	section.hero-slider{
		height: 80vh;
	}
}

.juegos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

@media (max-width: 768px) {
	.juegos{
		height: 70vh;
	}
}

.juegos img{
	width: 300px;
	height: auto;
	border-radius: 16px;
}

@media (max-width: 768px) {
	.juegos{
		flex-direction: column;
	}
}

/* Media query para landscape en móviles - Layout horizontal como desktop */
@media screen and (orientation: landscape) and (max-width: 768px) {
	section.hero-slider {
		height: 70vh;
		min-height: 350px;
	}

	.juegos {
		flex-direction: row; /* Texto al lado de la imagen */
		gap: 30px;
		height: 70vh;
		min-height: 350px;
	}

	.juegos img {
		width: 180px;
		height: auto;
	}

	.juego-text-content {
		flex-direction: column;
		justify-content: center;
		align-items: flex-start;
		text-align: left;
		padding: 0 20px;
		max-width: 400px;
	}

	.juego-text-content span {
		font-size: 35px;
	}

	.juego-text-content p {
		font-size: 16px;
		max-width: 350px;
		text-align: left;
	}

	.main-cta {
		width: 220px;
		padding: 10px 20px;
		font-size: 16px;
	}

	/* Ranking - Layout horizontal como desktop */
	.ranking-container {
		background-image: url('../img/ranking/podio-desktop.png');
		height: 400px;
		padding: 30px 20px;
	}
	
	.ranking-container.whatsapp {
		background-image: url('../img/comunidad/bg-comunidad-wa.jpg');
		height: 350px;
		padding: 30px 20px;
	}
	
	.ranking-container.whatsapp p {
		font-size: 18px;
	}

	.podium-container {
		flex-direction: row; /* Horizontal como desktop */
		margin-top: 50px;
		gap: 30px;
	}

	/* Restaurar orden original para desktop */
	.podium-winner-container:nth-child(1) {
		order: 1; /* Plata primero */
	}

	.podium-winner-container:nth-child(2) {
		order: 2; /* Oro segundo */
	}

	.podium-winner-container:nth-child(3) {
		order: 3; /* Bronce tercero */
	}

	.podium-winner-container {
		width: 250px;
		height: 70px;
	}
}

.juegos.active {
    opacity: 1;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.dot.active {
    background-color: var(--color-accent);
    transform: scale(1.2);
}

section.hero-slider .juegos.juego1{
	background: url('../img/juegos/bg-panda.png') no-repeat center;
	background-size: cover;
}

section.hero-slider .juegos.juego2{
	background: url('../img/juegos/bg-sugar.png') no-repeat center;
	background-size: cover;
}

section.hero-slider .juegos.juego3{
	background: url('../img/juegos/bg-joker.png') no-repeat center;
	background-size: cover;
}

.juego-text-content{
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.banner-left-right{
max-width: 96%;
margin: 2%;

}

@media (max-width: 768px) {
	.juego-text-content {
		padding: 0 25px;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		text-align: center;
	}
}

.ico-telegram, .ico-whatsapp{
	width: 40px;
}

@media (max-width: 768px) {
	.ico-telegram, .ico-whatsapp{
		width: 30px;
	}
}

.juego-text-content span{
	font-size: 70px;
	font-weight: 600;
	color: var(--color-accent);
	line-height: 1;
}

@media (max-width: 768px) {
	.juego-text-content span{
		font-size: 40px;
	}
}

.juego-text-content p{
	font-size: 24px;
	max-width: 500px;
	margin-bottom: 20px;
}

@media (max-width: 768px) {
	.juego-text-content p{
		line-height: 1;
	}
}

/* fin header */

/* main */

main{
	padding-top: 100px;
	margin-bottom: 50px;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: start;
	gap: 50px;
}

@media (max-width: 768px) {
	main{
		flex-direction: column;
		padding: 0;
		gap: 0;
	}
}

main .main-content-container{
	width: 100%;
	max-width: 1200px;
	display: flex;
	flex-direction: column;
	gap: 50px;
}

.videos-container {
	position: sticky;
	top: 50px;
	width: 250px;
	z-index: 50;
	height: fit-content;
	align-self: flex-start;
}

.videos-container a {
	display: block;
	width: 100%;
}

.videos-container video {
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Clase para ocultar videos no seleccionados */
.videos-container .hidden {
	display: none;
}

/* Controles de visibilidad para videos según dispositivo */
.videos-container .desktop {
	display: block;
}

.videos-container .mobile {
	display: none;
}

/* Responsive para videos-container */
@media screen and (max-width: 768px) {
	.videos-container {
		width: 100%;
		position: relative;
		top: auto;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	
	.videos-container .desktop {
		display: none;
	}
	
	.videos-container .mobile {
		display: block;
		width: 100%;
		max-width: 100%;
		text-align: center;
	}
}



/* noticias */
/* fin noticias */

/* ranking */

.ranking-container{
	display: flex;
	flex-direction: column;
	gap: 20px;
	background-image: url('../img/ranking/podio-desktop.png');
	background-size: cover;
	background-position: center;
	height: 500px;
}

.ranking-container.whatsapp{
	background-image: url('../img/comunidad/bg-comunidad-wa.jpg');
	background-size: cover;
	background-position: center;
	height: 450px;
	padding: 50px 20px;
	position: relative;
}

.ranking-container.whatsapp::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	z-index: 1;
}

.ranking-container.whatsapp > * {
	position: relative;
	z-index: 2;
}

.ranking-container.whatsapp p {
	font-size: 20px;
}

@media screen and (max-width: 768px){
	.ranking-container{
		padding: 50px 20px;
		background-image: url('../img/ranking/podio-mobile.png');
		height: 900px;
	}
	
	.ranking-container.whatsapp{
		background-image: url('../img/comunidad/bg-comunidad-wa.jpg');
		background-size: cover;
		background-position: calc(450px + 100%) 0;
		height: auto;
		padding: 50px 20px;
	}
	
	.ranking-container.whatsapp p {
		font-size: 18px;
	}
}

.podium-container{
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 50px;
	margin-top: 50px;
	
}

@media screen and (max-width: 768px){
	.podium-container{
		flex-direction: column;
		margin-top: 400px;
		gap: 20px;
	}
	
	/* Reordenar visualmente en mobile: Oro, Plata, Bronce (de arriba hacia abajo) */
	.podium-winner-container:nth-child(1) { /* Plata pasa a 2da posición */
		order: 2;
	}
	
	.podium-winner-container:nth-child(2) { /* Oro pasa a 1ra posición */
		order: 1;
	}
	
	.podium-winner-container:nth-child(3) { /* Bronce se mantiene en 3ra posición */
		order: 3;
	}
}

.podium-winner-container{
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	border-radius: 16px;
	border: 2px solid var(--color-accent);
	width: 300px;
	height: 80px;
}

@media screen and (max-width: 768px){
	.podium-winner-container{
		height: 65px;
	}
}

.podium-winner-container span{
	font-size: 20px;
}

/* fin ranking */

/* comunidad */

.comunidad-container{
	width: 100%;
	height: 450px;
	padding: 50px 20px;
	background-image: url('../img/comunidad/bg-comunidad.png');
	position: relative;
}

.comunidad-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	z-index: 1;
}

.comunidad-container > * {
	position: relative;
	z-index: 2;
}

@media screen and (max-width: 768px){
	.comunidad-container{
		padding: 50px 20px;
		background-position: calc(450px + 100%) 0;
	}
}

.comunidad-text-content p{
	font-size: 20px;
}

.comunidad-text-content ul{
	margin-top: 20px;
}

.comunidad-text-content ul li{
	font-size: 20px;
	list-style: inside;
	}

.comunidad-text-content ul li::marker {
	color: var(--color-accent);
}

/* fin comunidad */

/* fin main */

/* footer */

footer{
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

footer .legales-logos-container{
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 80px;
	margin-top: 25px;
}

@media screen and (max-width: 768px) {
	footer .legales-logos-container{
		flex-direction: column;
		gap: 30px;
	}
}

footer .footer-logo{
	width: 150px;
	margin: 25px auto;
}

/* fin footer */

/* fixeds */
.whatsapp-btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 60px;
	height: 60px;
	background-color: var(--color-telegram);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(34, 158, 217, 0.3);
	z-index: 1000;
	transition: all 0.3s ease;
	text-decoration: none;
	color: white;
}

.whatsapp-btn:hover {
	transform: scale(1.3);
	box-shadow: 0 6px 20px rgba(34, 158, 217, 0.4);
	background-color: #229ED9;
}

.whatsapp-btn:active {
	transform: scale(0.95);
}

.whatsapp-btn svg {
    width: 28px;
    height: 28px;
}

.whatsapp-btn img {
    width: 28px;
    height: 28px;
}

.whatsapp-btn {
    animation: pulsewhatsapp 1.5s infinite;
}

@media screen and (max-width: 768px) {
    .whatsapp-btn {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-btn svg {
        width: 26px;
        height: 26px;
    }
    
    .whatsapp-btn img {
        width: 26px;
        height: 26px;
    }
	.banner-mobile {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 100%;
	}
	
	.banner-mobile img{
		width: auto;
		max-width: 100%;
		padding: 20px;
		display: block;
		margin: 0 auto;
	}
}

/* Media Query específico para Landscape - Solo aplica en landscape con altura limitada */
@media screen and (orientation: landscape) and (max-height: 600px) and (min-width: 481px) {
	/* Header - Reducir altura del slider */
	section.hero-slider {
		height: 60vh;
		min-height: 400px;
	}

	.juegos {
		height: 60vh;
		min-height: 400px;
		gap: 30px;
		flex-direction: row; /* Texto al lado de la imagen, como desktop */
	}

	.juegos img {
		width: 200px;
		height: auto;
	}

	.juego-text-content {
		flex-direction: column;
		justify-content: center;
		align-items: flex-start; /* Alineado a la izquierda como desktop */
		text-align: left; /* Texto alineado a la izquierda */
		padding: 0;
		max-width: 500px;
	}

	.juego-text-content span {
		font-size: 50px;
	}

	.juego-text-content p {
		font-size: 18px;
		max-width: 450px;
		text-align: left;
	}

	.main-cta {
		width: 250px;
		padding: 12px 25px;
		font-size: 18px;
	}

	/* Main content - Optimizar espaciado */
	main {
		padding-top: 50px;
		gap: 30px;
	}

	main .main-content-container {
		gap: 30px;
	}

	/* Ranking - Layout horizontal como desktop */
	.ranking-container {
		height: 400px;
		padding: 30px 20px;
		background-image: url('../img/ranking/podio-desktop.png');
	}
	
	.ranking-container.whatsapp {
		background-image: url('../img/comunidad/bg-comunidad-wa.jpg');
		height: 350px;
		padding: 30px 20px;
	}
	
	.ranking-container.whatsapp p {
		font-size: 18px;
	}

	.podium-container {
		flex-direction: row; /* Horizontal como desktop */
		margin-top: 30px;
		gap: 30px;
	}

	/* Restaurar orden original para desktop */
	.podium-winner-container:nth-child(1) {
		order: 1; /* Plata primero */
	}

	.podium-winner-container:nth-child(2) {
		order: 2; /* Oro segundo */
	}

	.podium-winner-container:nth-child(3) {
		order: 3; /* Bronce tercero */
	}

	.podium-winner-container {
		width: 250px;
		height: 70px;
	}

	.podium-winner-container span {
		font-size: 18px;
	}

	/* Comunidad - Ajustar altura */
	.comunidad-container {
		height: 350px;
		padding: 30px 20px;
	}

	.comunidad-text-content p {
		font-size: 18px;
	}

	.comunidad-text-content ul li {
		font-size: 18px;
	}

	.comunidad-cta {
		margin-top: 30px;
		width: 220px;
		padding: 12px 25px;
		font-size: 18px;
	}

	/* Videos container - Ajustar tamaño */
	.videos-container {
		width: 200px;
		top: 30px;
	}

	/* Títulos - Reducir tamaño */
	.titles-container h2 {
		font-size: 28px;
	}

	/* Footer - Optimizar espaciado */
	footer {
		padding: 15px 20px;
		gap: 15px;
	}

	footer .legales-logos-container {
		gap: 50px;
		margin-top: 15px;
	}

	/* Nav - Ajustar altura */
	nav {
		height: 70px;
	}

	.nav-container img {
		width: 90px;
	}

	.menu-overlay {
		top: 70px;
		height: calc(100% - 70px);
	}

	.nav-menu {
		top: 70px;
	}

	/* Botón WhatsApp - Ajustar posición */
	.whatsapp-btn {
		bottom: 15px;
		right: 15px;
		width: 50px;
		height: 50px;
	}

	.whatsapp-btn img {
		width: 24px;
		height: 24px;
	}
}

/* fin fixeds */
