body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #23252b;
    overflow-x: hidden; /* Evita el desbordamiento horizontal */
    box-sizing: border-box; /* Asegura que el padding y borde se incluyan en el ancho total */
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px 40px ; /* Aumenta el padding para dar más espacio en los extremos */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;

}
.navbar:hover {
    background-color: #222;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    transition: color 0.3s ease;
    margin-left: 50px;
}

.logo:hover {
    color: #FFD700;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px; /* Espacio entre los elementos del nav */
    margin-right: 50px;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 12px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #FFD700;
    transform: scale(1.1);
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #444;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.dropdown-menu li {
    padding: 10px;
}

.dropdown-menu a {
    color: #fff;
    font-size: 16px;
}

.dropdown-menu a:hover {
    background-color: #555;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.auth-links {
    display: flex;
    gap: 20px; /* Espacio entre los botones de autenticación */
}

.auth-links button {
    color: #fff;
    background-color: #007BFF;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.auth-links button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.user-profile {
    display: flex;
    align-items: center;
    margin-right: 20px;
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-name {
    color: #fff;
    font-size: 16px;
    margin-right: 10px;
}

.profile-links {
    display: none;
    position: absolute;
    background-color: #444;
    top: calc(100% + 10px);
    left: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
    width: 150px;
    border-radius: 8px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.user-profile:hover .profile-links {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.profile-links li {
    padding: 10px;
    border-bottom: 1px solid #666;
}

.profile-links li:last-child {
    border-bottom: none;
}

.profile-links a {
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    display: block;
}

.profile-links a:hover {
    background-color: #555;
}

/* Otros estilos */




/* Estilos para la página de inicio */

/* Estilos para la presentación */
.presentation {
    background-image: url('../img/fondo-presentacion.jpg');
    background-color: #f0f0f0;
    
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 720px;
    width: 100%;
    background-size: cover; /* Ajusta la imagen para cubrir todo el contenedor */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
}


.presentation-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.presentation-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: white;
}

.presentation-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #e6e6e6;
}

.vote-button {
    display: inline-block;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 12px 24px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.vote-button:hover {
    background-color: #0056b3;
}







/* Estilos para la sección de nuevas votaciones */
.new-votes {
    background-color: #23252b;
    
    text-align: center;
 
}

.new-votes-content {
    max-width: 960px;
    margin: 0 auto;
}

.new-votes-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: white;
}

.catalog-container {

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    
}

.catalog-item {

    
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    overflow: hidden; /* Añadido para mantener la imagen dentro del contenedor */
}
.catalog-item img {
    width: 271px;
    height: 410px;
    object-fit: cover; /* Asegura que la imagen ocupe todo el contenedor, cortando si es necesario */
    transition: transform 0.3s ease; /* Añadido para el efecto de hover */
}

.catalog-item a:hover img {
    transform: scale(1.05); /* Amplía la imagen al pasar el mouse */
}

.catalog-item-title {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 18px;
    padding-top: 10px;
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    padding-bottom: 5px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    transition: color 0.3s ease; /* Suaviza el cambio de color */
}

.catalog-item a:hover .catalog-item-title {
    color: #FFD700; /* Cambia el color del título al pasar el mouse */
}



/* Estilos para la sección de recomendación */
.recommendation-section {
    background-color: #f0f0f0;
    
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding-bottom: 10px;
}

.recommendation-content {
    max-width: 720px;
    margin: 0 auto;
}

.recommendation-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.discord-button {
    display: inline-block;
    background-color: #7289DA;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 12px 24px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.discord-button:hover {
    background-color: #5a73bc;
}
























/* Estilos para el footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
   
    position: relative;
    bottom: 0;
    width: 100%;
}











.container {
    margin-top: 80px; /* Ajustar según el tamaño de la navbar */
    padding: 20px;
}

.search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.search-bar input {
    padding: 10px;
    font-size: 16px;
    width: 300px;
}

.search-bar button {
    padding: 10px 20px;
    font-size: 16px;
    margin-left: 10px;
}

.content {
    display: flex;
}


h3{
    text-align: center;
    color: white;
}
.catalog {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.catalog-item {
    
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}



.catalog-item-title {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 10px;
    position: absolute;
    bottom: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.pagination button {
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
}

.catalog-item img:hover {
    filter: brightness(0.8);
}

.catalog-item-title:hover {
    color: #ffcc00;
}
span{
    color: white;
}
@media (max-width: 768px) {
    body{
        overflow-x: hidden; /* Evita el desbordamiento horizontal */
    }
    .presentation-content {
        text-align: center;
        max-width: 360px;
        margin: 0 auto;
    }
    
    .catalog {
        
        flex: 1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px;
    }

    .catalog-item-title {
        font-size: 13px;
        background-color: rgba(0, 0, 0, 0.8);
        color: #fff;
        width: 100%;
        text-align: center;
        padding: 10px;
        position: absolute;
        bottom: 0;
    }
    .catalog-item {
    
        border-radius: 10px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .navbar {
        
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #333;
        padding: 10px 0px;
        box-sizing: border-box;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        position: fixed;
        top: 0;
        width: 100%; /* Cambié `auto` por `100%` para cubrir el ancho completo */
        z-index: 10;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

    .catalog-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .new-votes {
        background-color: #23252b;
        padding: 20px;
        text-align: center;
    }

    .catalog-item img {
        
        height: 260px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .filters-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    .filters-toggle {
        display: block;
        background-color: #23252b;
        color: white;
        border: none;
        padding: 10px 20px;
        cursor: pointer;
        font-size: 16px;
        width: 100%;
        text-align: center;
    }

    .filters {
        display: block; /* Oculta los filtros por defecto */
        flex-direction: column;
        justify-content: center;
        width: 100%;
        background-color: #23252b;
        padding: 20px;
        margin-bottom: 20px;
        height: 100%;
    }

  
}




.filters {
    position:static;
    display: none;
    justify-content: center;
    
    background-color: #23252b;
    padding: 20px;
    border-right: 1px solid #0f0c0c;
}

.filters-toggle {
    
    background-color: #23252b;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    width: 188.1px;
}



/* Estilos básicos */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px;
}

.logo {
    color: #fff;
    font-size: 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #333;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Estilos para móviles */
.hamburger {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

/* Estilos para móviles */
/* Estilos para móviles */
@media (max-width: 768px) {

  /* 🔹 General */
  body {
    overflow-x: hidden;
  }

  /* 🔹 Navbar compacta */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(25, 25, 25, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 14px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease;
  }

  .logo {
    font-size: 22px;
    color: #fff;
    font-weight: 600;
  }

  /* 🔹 Icono de hamburguesa */
  .hamburger {
    display: block;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s ease;
  }

  .hamburger:hover {
    transform: scale(1.1);
  }

  /* 🔹 Menú lateral oculto */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: right 0.4s ease;
  }

  /* 🔹 Cuando se abre el menú */
  .nav-links.open {
    right: 0;
  }

  /* 🔹 Enlaces dentro del menú */
  .nav-links li a {
    color: #f5f5f5;
    font-size: 22px;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
  }

  .nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background-color: #FFD700;
    transition: width 0.3s ease;
  }

  .nav-links li a:hover::after {
    width: 100%;
  }

  .nav-links li a:hover {
    color: #FFD700;
  }

  /* 🔹 Efecto de aparición suave (cascada) */
  .nav-links li {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .nav-links.open li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.open li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.open li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links.open li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links.open li:nth-child(4) { transition-delay: 0.4s; }

}


