* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Elimina el blur y la imagen de fondo del body */
body {
    min-height: 100vh;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #fff;
    text-align: center;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Nuevo estilo para el fondo con blur */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('putibet.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(5px); /* Aplica blur solo a la imagen de fondo */
    z-index: -1; /* Asegura que esté detrás del contenido */
}

/* Ajusta el contenedor principal para mantener el efecto semi-transparente */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: rgba(0, 0, 0, 0.3); /* Fondo semi-transparente */
    backdrop-filter: blur(5px); /* Blur adicional para el contenedor */
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}


/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #f0f0f0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 1rem;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #ccc;
}

/* Banner */
.banner {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.banner h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.banner h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.banner h3 {
    font-size: 1.8rem;
    color: #ccc;
}

.scroll-prompt {
    position: absolute;
    bottom: 2rem;
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Colaboradoras */
.colaboradoras {
    margin: 4rem 0;
}

.colaboradoras h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.cards-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cards-carousel::-webkit-scrollbar {
    display: none;
}

.cards {
    display: flex;
    transition: transform 0.1s linear;
}

.card {
    flex: 0 0 auto;
    width: 200px;
    margin-right: 10px;
    background: rgba(0, 105, 105, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
    animation: subtle-bounce 3s infinite ease-in-out;
    scroll-snap-align: start;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    margin-bottom: 0.5rem;
}

.card span {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

@keyframes subtle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Juegos */
.juegos {
    margin: 4rem 0;
}

.juegos h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.games-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.games-carousel::-webkit-scrollbar {
    display: none;
}

.games {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    padding: 0 1rem;
}

.game-card {
    flex: 0 0 auto;
    width: 250px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #d4af37;
    opacity: 0.6;
    scroll-snap-align: start;
}

.game-card.active {
    opacity: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.game-card.active:hover {
    transform: scale(1.05);
}

.game-card img {
    width: 200px;
    height: 266px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.game-card span {
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
}

/* Responsive Design */
@media (min-width: 1024px) {
    body { background-size: cover; }
    .nav-menu { display: flex; flex-direction: row; }
    .menu-toggle { display: none; }
    .card { width: 250px; }
    .card img { width: 150px; height: 150px; }
    .game-card { width: 300px; }
    .game-card img { width: 240px; height: 320px; }
}

@media (max-width: 768px) {
    body { background-size: cover; }
    .banner h1 { font-size: 2.5rem; }
    .banner h2 { font-size: 1.8rem; }
    .banner h3 { font-size: 1.3rem; }
    .card { width: 150px; }
    .card img { width: 100px; height: 100px; }
    .game-card { width: 200px; }
    .game-card img { width: 160px; height: 213px; }
}

@media (max-width: 480px) {
    body { background-size: cover; }
    .container { padding: 0.5rem; }
    .banner h1 { font-size: 1.8rem; }
    .banner h2 { font-size: 1.3rem; }
    .banner h3 { font-size: 1rem; }
    .card { width: 120px; margin-right: 5px; }
    .card img { width: 80px; height: 80px; }
    .game-card { width: 150px; }
    .game-card img { width: 120px; height: 160px; }
    .scroll-prompt { font-size: 1rem; }
}