/* Importar fuente */
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&display=swap');

/* Variables de color */
:root {
    --primary-bg: #ffffff;
    --primary-color: #3590b2;
    --secondary-color: #90caf9;
    --tercero-color: #ffffff;
    --header-color: #ffde59;
    --accent-color: #ffffff;
    --text-color: #000000;
    --light-grey: #e0e0e0;
    --dark-grey: #37474f;
    --hover-color: #1565c0;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --success-color: #4caf50; /* Verde bonito */
    --error-color: #f44336;   /* Rojo fuerte */
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'League Spartan', sans-serif;
}

/* Fondo general */
body {
    overflow-x: hidden;
    background: linear-gradient(to bottom, #3590b2, #ffde59);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    background-attachment: local;
    background-size: cover;
}

body.popup-abierto {
    overflow: hidden;
    position: fixed;
    width: 100vw;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: var(--primary-bg);
    box-shadow: 0 4px 10px var(--shadow-color);
    min-height: 80vh;
}

/* Encabezado principal */
h1 {
    text-align: center;
    color: var(--header-color);
    margin-bottom: 30px;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

h2 {
    font-size: 20px;
    text-align: center;
}

/* Selector Idioma */
.language-selector {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255,255,255,0.18);
    border-radius: 24px;
    padding: 8px 18px;
    box-shadow: 0 4px 18px rgba(53,144,178,0.10);
    backdrop-filter: blur(4px);
    border: 1.5px solid #e0e0e0;
}

/* Iconos de idioma */
.language-flag {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    box-shadow: 0 2px 8px rgba(53,144,178,0.13);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s cubic-bezier(.4,2,.6,1), transform 0.18s cubic-bezier(.4,2,.6,1);
    overflow: hidden;
    cursor: pointer;
}

.language-flag.selected {
    border-color: #3590b2;
    box-shadow: 0 0 0 4px #ffde5922;
    transform: scale(1.08);
}

.language-flag:hover {
    border-color: #ffde59;
    box-shadow: 0 0 0 4px #3590b222;
    transform: scale(1.13);
}

.language-flag img.language-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0;
    padding: 0;
    /* Zoom interno para cubrir completamente el círculo */
    transform: scale(1.5);
}

.language-flag:active {
    transform: scale(0.97);
    box-shadow: 0 0 0 6px #ffde5944;
}

.language-flag .language-icon:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.language-flag .language-icon::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    top: 110%;
    transform: translateX(-50%) scale(0.95);
    background: rgba(53,144,178,0.95);
    color: #fff;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.25s, transform 0.25s;
    box-shadow: 0 2px 8px rgba(53,144,178,0.10);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
}

/* Video de Fondo */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(50%);
}

/* Superposición */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(53, 144, 178, 0.7), rgba(255, 222, 89, 0.7));
    z-index: 1;
}

/* Contenido principal */
.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.brand-logo-container {
    display: inline-block;
    animation: float 5s ease-in-out infinite;
}

.brand-logo {
    height: 200px;
    width: auto;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.1);
}

.hero-title {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin: 10px 0 20px;
    animation: fadeIn 2s ease-in-out;
}

/* Botones CTA */
.cta-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Estilo para el botón activo */
button.active {
    background-color: #3590b2; /* Color de fondo */
    color: #fff; /* Color del texto */
    border: 2px solid #ffde59; /* Borde */
    box-shadow: 0 4px 8px rgba(53, 144, 178, 0.3); /* Sombra */
    transition: background-color 0.3s, box-shadow 0.3s;
}

button.active:hover {
    background-color: #2a7a99; /* Color de fondo al pasar el mouse */
}

.cta-button,
.cta-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cta-button {
    background: #ffde59;
    color: #37474f;
}

.cta-button:hover {
    background: #37474f;
    color: #ffffff;
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.toggle-buttons {
    display: flex;
    justify-content: center;
    gap: 10px; /* Espaciado entre los botones */
    margin: 20px 0; /* Margen superior e inferior */
}

.toggle-buttons-cta {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #3590b2; /* Color principal de la web */
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-buttons-cta:hover {
    background-color: #1b5e8c; /* Color al pasar el mouse */
}

.bienvenida-usuario {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-color);
    animation: fadeIn 0.6s ease-in-out;
}

.bienvenida-texto {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Toast: más suave y moderno */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-grey);
    color: var(--accent-color);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, bottom 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.toast.show {
    opacity: 1;
    bottom: 50px;
    pointer-events: auto;
}

/* Estilo base del popup */
/* Fondo oscuro translúcido con desenfoque */
.popup-container {
    display: none;
    position: fixed !important;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    z-index: 99999 !important;
    animation: fadeIn 0.3s ease-in-out;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Contenedor del popup */
.popup-content {
    background: var(--primary-bg);
    padding: 40px 35px;
    border-radius: 18px;
    width: 400px;
    max-width: 92%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: popupZoom 0.4s ease;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease-in-out;
    max-height: 80vh;
    overflow-y: auto;
}

/* Ajustes compactos para el popup del panel de usuario */
.popup-content .input-group {
    margin-bottom: 6px;
}

.popup-content .input-group input {
    padding: 8px 32px 8px 10px;
    font-size: 15px;
    border-radius: 8px;
}

.popup-content .cta-button,
.popup-content button[type="submit"] {
    padding: 8px 16px;
    font-size: 15px;
    border-radius: 8px;
}

.popup-content .message {
    margin-top: 6px;
    min-height: 16px;
    font-size: 15px;
}

/* Título llamativo */
.popup-content h2 {
    font-size: 26px;
    margin-bottom: 24px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Cierre del popup */
.close-popup {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-grey);
    transition: transform 0.2s ease, color 0.3s ease;
}

.close-popup:hover {
    transform: scale(1.2);
    color: var(--header-color);
}

/* Input con mejor sensación táctil */
.input-group {
    position: relative;
    margin-bottom: 10px;
}

.input-group input {
    width: 100%;
    padding: 14px 45px 14px 16px;
    border: 1px solid var(--light-grey);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-color);
    background-color: var(--primary-bg);
    transition: all 0.25s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(53, 144, 178, 0.4);
}

/* Icono en el input */
.input-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-grey);
    font-size: 17px;
}

/* Botón llamativo */
.popup-content .cta-button {
    background-color: var(--header-color);
    color: var(--accent-color);
    font-weight: bold;
    padding: 13px 28px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.popup-content .cta-button:hover {
    background-color: var(--hover-color);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(21, 101, 192, 0.3);
}

/* Estilo para el mensaje de error o éxito */
.message {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    min-height: 24px;
    color: var(--text-color);
    text-align: center;
}

/* Animaciones sutiles */
@keyframes popupZoom {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* **************************** ACORDEON ********************************* */
/* Contenedor principal del acordeón */
.info-accordion {
    margin-top: 2rem;
    border: 1px solid var(--light-grey);
    border-radius: 8px;
    overflow: hidden;
}

/* Cada ítem del acordeón */
.accordion-item {
    border-top: 1px solid var(--light-grey);
}

/* Botón del acordeón (título desplegable) */
.accordion-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-bg);
    color: var(--text-color);
    font-weight: bold;
    text-align: left;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease;
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.accordion-button .arrow {
    transition: transform 0.3s cubic-bezier(.4,2,.6,1);
    display: inline-block;
}

.accordion-item.active .accordion-button .arrow {
    transform: rotate(180deg) scale(1.2);
}

/* Hover para dar feedback visual al usuario */
.accordion-button:hover {
    background: var(--light-grey);
}

/* Contenido del acordeón (por defecto oculto) */
.accordion-content {
    display: none;
    padding: 1rem;
    background-color: var(--tercero-color);
    color: var(--text-color);
}

/* Mostrar contenido si el ítem está activo */
.accordion-item.active .accordion-content {
    display: block;
}

/**********************************************************************************/

/* Botón de envío */
button[type="submit"] {
    width: 100%;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

button[type="submit"]:hover {
    background: #37474f;
    color: white;
}

/* Mensajes */
.message {
    font-size: 14px;
    margin-top: 5px;
    color: red;
}

.info-message {
    font-size: 15px;
    margin-top: 5px;
    color: #000000;
}
/* Iconos flotantes */
.floating-icons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 1; /* Asegura que esté por encima de otros elementos */
    opacity: 50%;
}

.floating-icons img {
    height: 40px;
    width: 40px;
    animation: bounce 2s infinite ease-in-out;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.floating-icons img:hover {
    transform: scale(1.2);
}

/* Animaciones */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive de altura para Inicio */
/* Ajustes para pantallas con poca altura */
@media (max-height: 800px) {
    .hero-content {
        padding: 10px;
    }

    .brand-logo {
        height: 140px; /* Reducir tamaño del logo */
        margin-bottom: 10px;
    }

    .hero-title {
        font-size: 1.8rem; /* Reducir tamaño del título */
        letter-spacing: 1.5px;
    }

    .hero-subtitle {
        font-size: 0.9rem; /* Reducir subtítulo */
        margin: 5px 0 10px;
    }

    .cta-container {
        flex-direction: column; /* Apilar botones */
        gap: 8px;
    }

    .cta-button,
    .cta-secondary {
        font-size: 0.85rem;
        padding: 8px 15px;
    }

    .floating-icons {
        bottom: 50px; /* Elevar iconos */
        gap: 8px;
    }

    .floating-icons img {
        height: 28px; /* Ajustar tamaño */
        width: 28px;
    }
}

@media (min-height: 800px) and (max-height: 900px) {
    .floating-icons {
        bottom: 20px; /* Elevar iconos */
        gap: 8px;
    }

    .cta-container {
        flex-direction: column; /* Apilar botones */
        gap: 8px;
    }

    .cta-button,
    .cta-secondary {
        font-size: 0.85rem;
        padding: 8px 15px;
    }

    .floating-icons img {
        height: 28px; /* Ajustar tamaño */
        width: 28px;
    }
}

/* Ajustes para pantallas extremadamente pequeñas */
@media (max-height: 400px) {
    .brand-logo {
        height: 100px;
        margin-bottom: 5px;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin: 5px 0;
    }

    .cta-container {
        gap: 6px;
    }

    .cta-button,
    .cta-secondary {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .floating-icons {
        bottom: 30px; /* Mover iconos más arriba */
        gap: 6px;
    }

    .floating-icons img {
        height: 25px;
        width: 25px;
    }
}

/* Extra pequeño (hasta 380px) */
@media (max-width: 380px) {
    .floating-icons {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        gap: 10px;
    }

    .floating-icons img {
        height: 22px;
        width: 22px;
    }

    .cta-container {
        flex-direction: column;
        gap: 8px;
    }
}

/* Ajustes específicos para dispositivos con barras de navegación grandes */
@media (max-height: 650px) and (max-width: 380px) {
    .floating-icons {
        bottom: 20px; /* Ajustar iconos según barra del navegador */
    }

    .hero-content {
        padding: 5px;
    }

    .brand-logo {
        height: 90px; /* Reducir aún más para evitar superposición */
    }
}

/* General para cualquier altura menor */
@media (max-height: 450px) {
    .floating-icons {
        bottom: 15px;
    }

    .floating-icons img {
        height: 20px;
        width: 20px;
    }

    .hero-title {
        font-size: 1rem;
    }

    .hero-subtitle {
        font-size: 0.7rem;
        margin: 3px 0;
    }
}

/* Sidebar */
.main-container {
    display: flex;
}

/* **************************** BARRA OFERTAS ESPECIALES ************************* */
/* Topbar Header (Sencillo) */
.topbar-header {
    display: flex;
    justify-content: center; /* Centra el contenido */
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #3590b2, #90caf9);
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer; /* Indicar interactividad */
    position: relative;
    text-align: center;
}

/* Flecha indicadora */
.topbar-header::after {
    content: "▼"; /* Flecha para indicar despliegue */
    font-size: 1rem;
    color: #fff;
    position: absolute;
    right: 20px; /* Coloca la flecha en el lado derecho */
    transition: transform 0.3s ease; /* Transición suave */
}

/* Cambiar flecha cuando esté desplegado */
.topbar.open .topbar-header::after {
    transform: rotate(180deg); /* Girar flecha hacia arriba */
}

/* Resaltar en hover */
.topbar-header:hover {
    background: linear-gradient(135deg, #2d7aa4, #70bff1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Topbar Content */
.topbar-content {
    position: sticky;
    padding: 20px;
    display: none;
    /* Ocultar inicialmente */
    background: #ffffff;
    color: #333333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.topbar.open .topbar-content {
    display: block;
    /* Mostrar cuando se despliega */
    animation: slideDown 0.5s ease;
}

/* Topbar cerrándose */
.topbar.closing .topbar-content {
    animation: slideUp 0.5s ease forwards;
}

/* Secciones */
.topbar-section {
    margin-bottom: 20px;
}

.topbar-section h3 {
    font-size: 1.3rem;
    color: #3590b2;
    margin-bottom: 10px;
    border-left: 5px solid #90caf9;
    padding-left: 10px;
}

/* Descripciones */
.topbar-description {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Listas */
.promotions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.promotions-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.promotions-list li span {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

/* Botones de acción */
.topbar-action {
    background: #3590b2;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.topbar-action:hover {
    background: #90caf9;
    transform: translateY(-2px);
}

/* Enlaces Afiliados */
.affiliate-links a {
    display: inline-block;
    background: rgba(0, 0, 0, 0.05);
    margin: 5px 10px 0 0;
    padding: 10px;
    color: #333;
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.affiliate-links a:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #3590b2;
}

/* Animación */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from{
        opacity: 1;
        transform: translateY(0);
    }

    to{
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Animación para desplazar el contenido hacia abajo */
@keyframes contentSlideDown {
    from {
        transform: translateY(-430px);
    }
    to {
        transform: translateY(0px); /* Ajusta según la altura del topbar */
    }
}

/* Animación para desplazar el contenido hacia arriba */
@keyframes contentSlideUp {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-680px);
    }
}

/* Estado desplazado del contenido */
.main-container.shifted {
    animation: contentSlideDown 0.5s ease forwards;
}

/* Estado regresando */
.main-container.regressing {
    animation: contentSlideUp 0.5s ease forwards;
}

/* ************************ FIN OFERTAS ESPECIALES ******************************** */

/* ************************ COMPRAR META QUEST ********************************** */

/* Contenedor de las ofertas */
.offers-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 10px;
    animation: fadeIn 1s ease-in-out;
}

/* Estilo de cada tarjeta */
.offer-card {
    background: linear-gradient(135deg, var(--light-grey), var(--primary-bg));
    box-shadow: 0 6px 10px var(--shadow-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 280px;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px var(--shadow-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-bg));
}

/* Contenedor de la imagen */
.offer-image-container {
    height: 160px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: var(--light-grey);
    border-bottom: 3px solid var(--primary-color);
}

.offer-image-container img {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
    border-bottom: 2px solid var(--light-grey);
}

.offer-card:hover img {
    transform: scale(1.08);
}

/* Información del producto */
.offer-info {
    padding: 15px;
    color: var(--dark-grey);
    text-decoration: none;
}

.offer-info h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offer-info p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 12px;
    font-weight: 300;
}

/* Botón de acción */
.offer-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: all 0.3s ease;
}

.offer-button:hover {
    background: var(--hover-color);
    transform: scale(1.1);
    box-shadow: 0 6px 12px var(--shadow-color);
}

.offer-button:active {
    transform: scale(0.98);
    box-shadow: 0 3px 8px var(--shadow-color);
}

/* Restablecer el estilo del enlace */
.offer-card a {
    text-decoration: none;
    color: white;
}

/* Eliminar cualquier efecto de clic en el resto de la tarjeta */
.offer-card {
    cursor: default;
}

/* Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

a:hover {
    color: var(--header-color);
}

/* ************************ CARD DE PROMOCION ******************************* */
/* Contenedor de las ofertas */
.offers-container-promo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    padding: 8px;
    animation: fadeIn 1s ease-in-out;
}

/* Estilo de cada tarjeta */
.offer-card-promo {
    background: linear-gradient(135deg, var(--light-grey), var(--primary-bg));
    box-shadow: 0 4px 8px var(--shadow-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 240px;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.offer-card-promo:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 18px var(--shadow-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-bg));
}

/* Contenedor de la imagen */
.offer-image-container-promo {
    height: 140px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: var(--light-grey);
    border-bottom: 2px solid var(--primary-color);
}

.offer-image-container-promo img {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--light-grey);
}

.offer-card-promo:hover img {
    transform: scale(1.05);
}

/* Información del producto */
.offer-info-promo {
    padding: 12px;
    color: var(--dark-grey);
    text-decoration: none;
}

.offer-info-promo h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 6px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offer-info-promo p {
    font-size: 0.8rem;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 300;
}

/* Botón de acción */
.offer-button-promo {
    display: inline-block;
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 5px var(--shadow-color);
    transition: all 0.3s ease;
}

.offer-button-promo:hover {
    background: var(--hover-color);
    transform: scale(1.08);
    box-shadow: 0 5px 10px var(--shadow-color);
}

.offer-button-promo:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px var(--shadow-color);
}

/* Restablecer el estilo del enlace */
.offer-card-promo a {
    text-decoration: none;
    color: white;
}

/* Eliminar cualquier efecto de clic en el resto de la tarjeta */
.offer-card-promo {
    cursor: default;
}

/* *************************** FIN CARD PROMOCION ************************** */

/* ************************ CONTENIDO GRID / JUEGOS ************************* */

/* Contenido */
.content {
    margin-left: 0px;
    padding: 20px;
    flex-grow: 1;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding-top: 20px;
    max-width: 100%;
    animation: fadeIn 1s ease-in-out;
}

.content-container {
    display: none;
}

.content-container.active {
    display: grid;
}

/* Contenedor de la tarjeta */
.card {
    background: linear-gradient(135deg, var(--light-grey), var(--primary-bg));
    box-shadow: 0 6px 10px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
    position: relative;
    /* Añadir relleno general */
    display: flex;
    /* Usar flexbox */
    flex-direction: column;
    /* Alinear elementos en columna */
    justify-content: space-between;
    /* Espaciar elementos */
    height: 100%;
    /* Asegura que todas las tarjetas tengan la misma altura */
    border-radius: 2px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px var(--shadow-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-bg));
    z-index: 2;
    /* Sube la tarjeta al nivel superior al hacer hover */
}

/* Ajuste para que todas las imágenes tengan el mismo tamaño */
.card img {
    width: 100%;
    height: 130px;
    /* Fijar la altura para uniformidad */
    object-fit: cover;
    /* Escala y recorta la imagen para ajustarse sin distorsión */
    border-bottom: 5px solid var(--primary-color);
    border-radius: 2px;
}

/* Título */
.card h4 {
    font-size: 1.2rem;
    color: var(--dark-grey);
    margin: 15px 0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: none;
}

/* Enlace dentro de la tarjeta */
.card a {
    text-decoration: none;
    /* Sin subrayado */
    color: inherit;
    /* Heredar color */
}

/* Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid-item {
    animation: fadeIn 1s ease-in-out;
    /* Aplicar animación como en el primer CSS */
}

/* ******************************* Boton SHARE ******************************** */

/* Contenedor del botón compartir */
.share-button-container {
    margin-top: auto;
    /* Empuja el botón hacia el final del contenedor */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Botón de compartir */
.share-button {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: all 0.3s ease;
}

.share-button:hover {
    background-color: var(--hover-color);
    transform: scale(1.05);
    /* Efecto de ampliación al pasar el ratón */
    box-shadow: 0 6px 12px var(--shadow-color);
}

/* Menú desplegable */
.share-menu {
    display: none;
    position: absolute;
    top: 100%;
    /* Colocar justo debajo del botón */
    background-color: var(--primary-bg);
    box-shadow: 0 4px 8px var(--shadow-color);
    padding: 10px 0;
    min-width: 150px;
    /* Ajustar tamaño */
    z-index: 1000;
    text-align: center;
    animation: fadeInShareMenu 0.3s ease-in-out;
    /* Animación de entrada */
}

/* Animación del menú desplegable */
@keyframes fadeInShareMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-menu.visible {
    display: block;
}

/* Opciones del menú */
.share-menu a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-menu a:hover {
    background-color: var(--light-grey);
    color: var(--primary-color);
    /* Resaltar el texto al pasar el ratón */
    transform: scale(1.05);
    /* Ampliación ligera */
}

/* Ajuste del menú desplegable para pantallas pequeñas */
@media (max-width: 480px) {
    .share-menu {
        min-width: 200px;
        /* Ajustar tamaño para dispositivos móviles */
    }

    .share-menu a {
        font-size: 16px;
        /* Texto ligeramente mayor para facilitar lectura */
    }
}

/* PAGINACIÓN */
/* PAGINACIÓN MEJORADA */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 32px 0 0 0;
    flex-wrap: wrap;
    font-family: 'League Spartan', Arial, sans-serif;
    background: rgba(255,255,255,0.85);
    border-radius: 14px;
    box-shadow: 0 2px 12px #3590b222;
    padding: 14px 24px;
}

.pagination-btn,
.pagination-page-number {
    background: #fff;
    color: #3590b2;
    border: 1.5px solid #b0bec5;
    border-radius: 7px;
    padding: 8px 18px;
    margin: 0 2px;
    font-size: 1.13em;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s, transform 0.18s;
    box-shadow: 0 1px 4px #3590b211;
    font-weight: 600;
    letter-spacing: 0.5px;
    outline: none;
    position: relative;
}

.pagination-btn:disabled,
.pagination-page-number:disabled {
    background: #f7fafc;
    color: #b0bec5;
    border-color: #e3f2fd;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.pagination-page-number.active,
.pagination-page-number:hover {
    background: #3590b2;
    color: #fff;
    border-color: #3590b2;
    box-shadow: 0 2px 8px #3590b233;
    transform: translateY(-2px) scale(1.08);
    z-index: 2;
}

.pagination-btn:not(:disabled):hover {
    background: #ffde59;
    color: #37474f;
    border-color: #ffde59;
    box-shadow: 0 2px 8px #ffde5922;
    transform: translateY(-2px) scale(1.08);
    z-index: 2;
}

.pagination-pages {
    display: inline-flex;
    gap: 4px;
}

.pagination-size-selector label {
    font-weight: 600;
    color: #37474f;
    margin-right: 6px;
}

.pagination-size-selector select {
    border: 1.5px solid #b0bec5;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 1em;
    background: #fff;
    color: #37474f;
    transition: border 0.18s, box-shadow 0.18s;
    font-weight: 500;
}

.pagination-size-selector select:focus {
    border-color: #3590b2;
    outline: none;
    box-shadow: 0 0 6px #3590b244;
}

/* Puntos suspensivos */
.pagination-pages span {
    color: #b0bec5;
    font-size: 1.2em;
    padding: 0 4px;
    user-select: none;
    pointer-events: none;
    letter-spacing: 2px;
}

/* Responsive: paginación más compacta en móvil */
@media (max-width: 600px) {
    .pagination-container {
        padding: 8px 4vw;
        gap: 10px;
        font-size: 0.98em;
    }
    .pagination-btn,
    .pagination-page-number {
        padding: 7px 10px;
        font-size: 1em;
    }
    .pagination-size-selector label {
        font-size: 0.98em;
    }
    .pagination-size-selector select {
        font-size: 0.98em;
        padding: 3px 7px;
    }

        .pagination-container {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: stretch;
    }
    .pagination-btn-group {
        order: 1;
        justify-content: center;
        margin-bottom: 8px;
        width: 100%;
    }
    .pagination-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5em;
        padding: 8px 14px;
        min-width: 40px;
        min-height: 40px;
    }
    .pagination-btn svg {
        display: block;
        margin: 0 auto;
    }
    .pagination-pages {
        order: 2;
        justify-content: center;
        margin-bottom: 8px;
    }
    .pagination-size-selector {
        order: 3;
        justify-content: center;
    }
}

/* Agrupa los botones de paginación si usas un div extra */
.pagination-btn-group {
    display: flex;
    gap: 4px;
}

/* ******************************* FIN BOTON SHARE ********************************* */

/* Botón interactivo */
.button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.button:hover {
    background: var(--hover-color);
}

/* Contenedor sticky */
.search-container {
    position: sticky;
    top: 0%;
    /* Altura del banner */
    z-index: 1000;
    /* Más bajo que el sidebar */
    background: var(--primary-bg);
    box-shadow: 0 2px 5px var(--shadow-color);
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border-bottom: 2px solid var(--light-grey);
}

/* Ajustes para el input de búsqueda */
#search-box {
    flex: 1;
    /* Se expande para ocupar espacio disponible */
    max-width: 300px;
    padding: 10px;
    font-size: 16px;
    border: 2px solid var(--light-grey);
    transition: border-color 0.3s ease;
}

#search-box:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px var(--hover-color);
}

/* Estilo del checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Espaciado consistente */
}

.checkbox-label input {
    margin-right: 0.5rem;
    /* Ajustado para mejor alineación */
}

/* ******************************* INFO ************************ */

/* Contenedor principal */
.filter-crossbuy-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.filter-select {
    padding: 8px 12px;
    border-radius: 7px;
    border: 1.5px solid #b0bec5;
    font-size: 1em;
    color: #3590b2;
    background: #f7fafc;
    font-weight: 600;
    margin-left: 12px;
    box-shadow: 0 1px 4px #3590b211;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-select:focus {
    border-color: #3590b2;
    outline: none;
    box-shadow: 0 0 0 2px #3590b233;
}

/* --- Filtros compactos y adaptables en móvil --- */
@media (max-width: 800px) {
    .filter-crossbuy-container {
        align-items: stretch;
        gap: 6px;
        padding: 0 2px;
    }
    .filter-select {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-left: 0;
        font-size: 0.97em;
        padding: 7px 24px 7px 8px;
        box-sizing: border-box;
        display: block;
    }
    .checkbox-label {
        font-size: 0.97em;
        gap: 6px;
    }
    .tooltip-icon, .tooltip-text {
        font-size: 13px;
    }
}

/* Opcional: aún más compacto en móviles muy pequeños */
@media (max-width: 440px) {
    .filter-crossbuy-container {
        gap: 4px;
        padding: 0 1px;
    }
    .filter-select {
        font-size: 0.95em;
        padding: 6px 18px 6px 6px;
    }
    .checkbox-label {
        font-size: 0.95em;
    }
}

/* Tamaño de fuente del select y opciones en móvil */
@media (max-width: 600px) {
    .filter-select,
    .filter-select option {
        font-size: 0.93em;
    }
}
@media (max-width: 440px) {
    .filter-select,
    .filter-select option {
        font-size: 0.89em;
    }
}
@media (max-width: 360px) {
    .filter-select,
    .filter-select option {
        font-size: 0.82em;
    }
}

/* Estilo del label del checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
}

/* Estilo del input (oculto) */
.checkbox-label input {
    display: none;
    /* Ocultamos el checkbox real */
}

/* Slider (switch) */
.slider {
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 10px;
    position: relative;
    transition: background-color 0.3s ease;
}

/* Slider de favoritos desactivado */
.slider-disabled {
    opacity: 0.5;
    filter: grayscale(0.7);
    pointer-events: none;
}

/* Círculo dentro del slider */
.slider::before {
    content: '';
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Estado activo del slider */
input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider::before {
    transform: translateX(20px);
    /* Mueve el círculo hacia la derecha */
}

/* Texto al lado del switch */
.label-text {
    white-space: nowrap;
    font-size: 14px;
}

/* Tooltip */
.tooltip-icon {
    font-size: 16px;
    color: var(--primary-color);
    cursor: pointer;
}

.tooltip-icon:focus+.tooltip-text,
.tooltip-icon:hover+.tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 110%;
    /* Mostrar arriba del icono */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-bg);
    color: var(--text-color);
    padding: 8px 12px;
    box-shadow: 0 2px 4px var(--shadow-color);
    font-size: 13px;
    white-space: nowrap;
    z-index: 10;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--primary-bg) transparent transparent transparent;
}

/* ********* FILTROS ******** */

/* Dropdown para filtros */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-bg);
    box-shadow: 0 4px 8px var(--shadow-color);
    z-index: 1;
    min-width: 150px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content button {
    width: 100%;
    padding: 10px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.dropdown-content button:hover {
    background-color: var(--light-grey);
}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
    .sidebar-toggle {
        display: block;
    }

    .search-container {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .search-container input,
    .dropdown-button {
        width: 100%;
    }

    .sidebar {
        width: 240px;
        left: -240px;
    }

    .sidebar.open {
        left: 0;
    }

    .content {
        margin-left: 0;
        padding: 10px;
    }

    .grid {
        grid-template-columns: 1fr;
        /* Una sola columna */
        gap: 10px;
    }

    .info-icon .tooltip {
        bottom: 35px;
        font-size: 10px;
        max-width: 200px;
        white-space: normal;
        /* Permite que el texto sea más flexible */
    }

    .card {
        flex-direction: column;
    }

    .card img {
        width: 100%;
        height: 150px;
        /* Fijar la altura para uniformidad */
        object-fit: cover;
        /* Escala y recorta la imagen para ajustarse sin distorsión */
        border-bottom: 5px solid var(--primary-color);
        border-radius: 2px;
    }

    .popup-content {
        width: 99vw;
        min-width: unset;
        max-width: 100vw;
        padding: 10px 2vw;
        border-radius: 8px;
        font-size: 15px;
    }

    .language-selector {
        top: 10px;
        right: 10px;
        gap: 8px;
        padding: 6px 8px;
        border-radius: 14px;
    }
    .language-flag {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }
    .language-flag img.language-icon {
        transform: scale(1.5);
    }
}

/* Móviles medianos (481px a 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .sidebar-toggle {
        display: block;
    }

    .search-container {
        flex-direction: row;
        justify-content: center;
    }

    .sidebar {
        width: 260px;
        left: -260px;
    }

    .sidebar.open {
        left: 0;
    }

    .content {
        margin-left: 0;
        padding: 15px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        /* Dos columnas */
    }

    .info-icon .tooltip {
        bottom: 35px;
        font-size: 10px;
        max-width: 200px;
        white-space: normal;
        /* Permite que el texto sea más flexible */
    }

    .card {
        flex-direction: column;
    }

    .card img {
        width: 100%;
        height: 140px;
        /* Fijar la altura para uniformidad */
        object-fit: cover;
        /* Escala y recorta la imagen para ajustarse sin distorsión */
        border-bottom: 5px solid var(--primary-color);
        border-radius: 2px;
    }

    .popup-content {
        width: 95vw;
        min-width: unset;
        max-width: 99vw;
        padding: 18px 6px;
        border-radius: 12px;
    }
}

/* Tablets pequeñas (768px a 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .sidebar-toggle {
        display: block;
    }

    .sidebar {
        width: 280px;
        left: -280px;
    }

    .sidebar.open {
        left: 0;
    }

    .content {
        margin-left: 0;
        padding: 20px;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
        /* Tres columnas */
    }

    .info-icon .tooltip {
        bottom: 35px;
        font-size: 10px;
        max-width: 200px;
        white-space: normal;
        /* Permite que el texto sea más flexible */
    }

}

/* Tablets grandes y laptops pequeñas (1024px a 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .sidebar-toggle {
        display: block;
    }

    .sidebar {
        width: 280px;
        left: -280px;
    }

    .sidebar.open {
        left: 0;
    }

    .content {
        margin-left: 0;
    }

    .grid {
        grid-template-columns: repeat(4, 1fr);
        /* Cuatro columnas */
    }

    .info-icon .tooltip {
        bottom: 35px;
        font-size: 10px;
        max-width: 200px;
        white-space: normal;
        /* Permite que el texto sea más flexible */
    }
}

/* Laptops y monitores estándar (1280px a 1919px) */
@media (min-width: 1280px) and (max-width: 1919px) {
    .sidebar-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: -280px;
        transition: left 0.3s ease;
    }

    .sidebar.open {
        left: 0;
    }

    .content {
        margin-left: 0;
    }

    .grid {
        grid-template-columns: repeat(5, 1fr);
        /* Cinco columnas */
    }

    .info-icon .tooltip {
        bottom: 35px;
        font-size: 10px;
        max-width: 200px;
        white-space: normal;
        /* Permite que el texto sea más flexible */
    }
}

/* Monitores grandes (1920px o más) */
@media (min-width: 1920px) {
    .grid {
        grid-template-columns: repeat(5, 1fr);
        /* Seis columnas */
    }

    .sidebar {
        width: 300px;
    }

    .content {
        margin-left: 0px;
    }

    .info-icon .tooltip {
        bottom: 35px;
        font-size: 10px;
        max-width: 200px;
        white-space: normal;
        /* Permite que el texto sea más flexible */
    }
}

/* Extra pequeño (320px a 360px) */
@media (max-width: 440px) {

    /* Ajustar el contenedor de búsqueda */
    .search-container {
        flex-direction: column;
        gap: 8px;
        padding: 5px;
    }

    .search-container input,
    .dropdown-button {
        width: 100%;
        font-size: 14px;
    }

    /* Ajustar el banner */
    .banner {
        flex-wrap: wrap;
        padding: 10px;
        text-align: center;
    }

    .logo-container {
        margin-bottom: 10px;
    }

    .social-icons {
        display: none;
    }

    /* Ajustar la sidebar */
    .sidebar {
        width: 220px;
        left: -220px;
        /* Oculta la barra lateral */
    }

    .sidebar.open {
        left: 0;
    }

    /* Ajustar el contenido principal */
    .content {
        margin-left: 0;
        padding: 10px;
    }

    /* Ajustar el grid */
    .grid {
        grid-template-columns: 1fr;
        /* Solo una columna */
        gap: 10px;
    }

    /* Ajustar las tarjetas */
    .card {
        font-size: 14px;
    }

    .card img {
        max-width: 100%;
    }

    .card h4 {
        font-size: 1rem;
    }

    /* Ajustar el botón de toggle */
    .sidebar-toggle {
        padding: 8px 12px;
    }

    .info-icon .tooltip {
        bottom: 35px;
        font-size: 10px;
        max-width: 200px;
        white-space: normal;
        /* Permite que el texto sea más flexible */
    }

    .popup-content {
        width: 92vw;
        min-width: unset;
        max-width: 96vw;
        padding: 2vw 2vw 10vw 2vw;
        border-radius: 5px;
        font-size: 13px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .popup-content h2 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    .popup-content .cta-button,
    .popup-content button[type="submit"] {
        padding: 8px 0;
        font-size: 12px;
        border-radius: 8px;
    }
    .popup-content .input-group input {
        padding: 5px 25px 5px 5px;
        font-size: 13px;
        border-radius: 8px;
    }
    .popup-content .close-popup {
        top: 8px;
        right: 10px;
        font-size: 20px;
    }

    .language-selector {
        gap: 4px;
        padding: 4px 4px;
        border-radius: 10px;
    }
    .language-flag {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
    }
    .language-flag img.language-icon {
        transform: scale(1.5);
    }
}

/* Placeholder para imágenes */
img.lazy {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    /* Crea el efecto de movimiento */
    animation: loading 1.5s infinite linear;
    /* Efecto de animación */
    display: block;
    width: 100%;
    /* Ajustar al contenedor */
    height: 50%;
    /* Altura fija o automática */
    object-fit: cover;
    /* Ajustar cómo se muestra la imagen */
}

/* Cuando la imagen se carga */
img.loaded {
    filter: none;
    /* Elimina el desenfoque cuando la imagen carga */
    animation: none;
    /* Detiene la animación */
    background: none;
    /* Elimina el placeholder */
}

/* Animación del efecto de carga */
@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Botones de acciones del usuario */
.user-actions-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .user-actions-btns {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        align-items: stretch;
    }
    .user-actions-btns button {
        width: 100%;
    }
}

/* Estilo específico para el botón 'Cancelar' de eliminar cuenta */
#cancelar-eliminar-cuenta {
    background: #4caf50; /* Verde tipo toast de éxito */
    color: #fff;
    border: none;
    font-weight: bold;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(53,144,178,0.10);
    transition: all 0.3s;
}

#cancelar-eliminar-cuenta:hover {
    background: #388e3c;
    color: #fff;
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 5px 15px rgba(21, 101, 192, 0.18);
}

/* === BOTÓN IR ARRIBA MEJORADO === */
#btn-ir-arriba {
    position: fixed;
    right: 24px;
    bottom: 32px;
    z-index: 1200;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(53, 144, 178, 0.82);
    box-shadow: 0 4px 18px rgba(53,144,178,0.18), 0 1.5px 8px rgba(0,0,0,0.10);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(.4,2,.6,1), background 0.18s, box-shadow 0.18s, transform 0.18s;
    font-size: 1.5rem;
    backdrop-filter: blur(2.5px);
    cursor: pointer;
}
#btn-ir-arriba.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}
#btn-ir-arriba:hover {
    background: rgba(255, 222, 89, 0.92);
    color: #37474f;
    box-shadow: 0 8px 24px #ffde5922, 0 2px 12px #3590b222;
    transform: scale(1.08);
}
#btn-ir-arriba .flecha-arriba svg {
    width: 28px;
    height: 28px;
    display: block;
}
#btn-ir-arriba .flecha-arriba svg path {
    stroke: currentColor;
}

@media (max-width: 600px) {
    #btn-ir-arriba {
        right: 12px;
        bottom: 18px;
        width: 40px;
        height: 40px;
    }
    #btn-ir-arriba .flecha-arriba svg {
        width: 22px;
        height: 22px;
    }
}

/* === ADMIN PANEL ESTILOS UNIFICADOS CON OTROS POPUPS === */
#admin-add-games-modal .popup-content {
    background: #fff;
    border: 2px solid var(--primary-color, #3590b2);
    border-radius: 16px;
    box-shadow: 0 4px 24px 0 rgba(53,144,178,0.13), 0 1.5px 6px #0001;
    padding: 36px 20px 24px 20px;
    max-width: 420px;
    width: 98%;
    animation: popupZoom 0.5s cubic-bezier(.4,2,.6,1);
    position: relative;
}

#admin-add-games-modal h2 {
    color: var(--primary-color, #3590b2);
    font-size: 1.25em;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-shadow: none;
}

.admin-game-field {
    margin-bottom: 22px !important;
    animation: fadeIn 0.5s cubic-bezier(.4,2,.6,1);
}

#admin-add-games-modal .admin-game-field > div {
    background: #f7fafc;
    border-radius: 12px;
    border: 1.5px solid #e3f2fd;
    box-shadow: 0 1px 4px #3590b211;
    padding: 14px 10px 10px 10px;
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    transition: box-shadow 0.2s, border 0.2s;
}

#admin-add-games-modal .admin-game-field > div:hover {
    box-shadow: 0 2px 8px #3590b222;
    border-color: var(--primary-color, #3590b2);
}

#admin-add-games-modal label {
    font-size: 1em;
    color: var(--primary-color, #3590b2);
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
    letter-spacing: 0.5px;
}

#admin-add-games-modal input[type="text"],
#admin-add-games-modal input[type="url"] {
    width: 100%;
    padding: 9px 12px;
    border-radius: 7px;
    border: 1.5px solid #b0bec5;
    font-size: 1em;
    background: #fff;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px #e3f2fd44;
}
#admin-add-games-modal input[type="text"]:focus,
#admin-add-games-modal input[type="url"]:focus {
    border-color: var(--primary-color, #3590b2);
    box-shadow: 0 2px 8px #3590b244;
}

#admin-add-games-modal input[type="file"] {
    display: none;
}

#admin-add-games-modal .custom-file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color, #3590b2);
    color: #fff;
    border-radius: 7px;
    padding: 7px 16px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 4px #3590b211;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    margin-top: 2px;
    user-select: none;
    position: relative;
}
#admin-add-games-modal .custom-file-label:before {
    content: '\1F5BC'; /* icono imagen */
    font-size: 1.1em;
    margin-right: 6px;
}
#admin-add-games-modal .custom-file-label:hover {
    background: #226b8a;
    color: #fff;
    box-shadow: 0 2px 8px #3590b222;
}

#admin-add-games-modal .admin-image-preview {
    margin-top: 8px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
#admin-add-games-modal .admin-image-preview img {
    display: block;
    margin: 0 auto;
}

#admin-add-games-modal .remove-game-field-btn {
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 1.05em;
    cursor: pointer;
    margin-left: 8px;
    transition: background 0.18s, transform 0.18s;
    box-shadow: 0 1px 4px #e5393522;
}
#admin-add-games-modal .remove-game-field-btn:hover {
    background: #b71c1c;
    transform: scale(1.08) rotate(-8deg);
}

#admin-add-games-modal #add-game-field-btn {
    background: var(--primary-color, #3590b2);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 1.05em;
    font-weight: 700;
    margin-top: 8px;
    margin-bottom: 6px;
    box-shadow: 0 1px 4px #3590b211;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
#admin-add-games-modal #add-game-field-btn:before {
    content: '+';
    font-size: 1.1em;
    margin-right: 6px;
}
#admin-add-games-modal #add-game-field-btn:hover {
    background: #226b8a;
    color: #fff;
    box-shadow: 0 2px 8px #3590b222;
}

#admin-add-games-modal .message {
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 7px;
    font-size: 1em;
    font-weight: 600;
    box-shadow: 0 1px 4px #e3f2fd22;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
#admin-add-games-modal .message[style*="color: #4caf50"] {
    background: #e8f5e9;
    color: #388e3c !important;
    border: 1.2px solid #4caf50;
}
#admin-add-games-modal .message[style*="color: #e53935"] {
    background: #ffebee;
    color: #b71c1c !important;
    border: 1.2px solid #e53935;
}
#admin-add-games-modal .message[style*="color: #37474f"] {
    background: #e3f2fd;
    color: #37474f !important;
    border: 1.2px solid #90caf9;
}

#admin-add-games-modal .close-popup {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 1.5em;
    color: var(--primary-color, #3590b2);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s, transform 0.18s;
    z-index: 10;
}
#admin-add-games-modal .close-popup:hover {
    color: #e53935;
    transform: scale(1.12) rotate(8deg);
}

/* Drag & drop visual feedback para admin panel */
#admin-add-games-modal .admin-file-dropzone.dragover {
    outline: 2.5px dashed var(--primary-color, #3590b2);
    background: #e3f2fd;
    box-shadow: 0 0 0 3px #ffde5922;
    transition: background 0.2s, box-shadow 0.2s;
}
#admin-add-games-modal .admin-file-dropzone {
    transition: background 0.2s, box-shadow 0.2s, outline 0.2s;
}

@media (max-width: 600px) {
    #admin-add-games-modal .popup-content {
        padding: 12px 2vw 12px 2vw;
        max-width: 99vw;
    }
    #admin-add-games-modal .admin-game-field > div {
        flex-direction: left;
        gap: 8px;
        padding: 8px 3px 7px 3px;
    }
    #admin-add-games-modal .custom-file-label {
        width: 100%;
        justify-content: center;
    }
    #admin-add-games-modal .admin-image-preview img {
        max-width: 90vw;
        max-height: 100px;
        align-items: center;
    }
}

/* === ADMIN PANEL ESTILOS UNIFICADOS CON OTROS POPUPS === */
#admin-add-dlcs-modal .popup-content {
    background: #fff;
    border: 2px solid var(--primary-color, #3590b2);
    border-radius: 16px;
    box-shadow: 0 4px 24px 0 rgba(53,144,178,0.13), 0 1.5px 6px #0001;
    padding: 36px 20px 24px 20px;
    max-width: 420px;
    width: 98%;
    animation: popupZoom 0.5s cubic-bezier(.4,2,.6,1);
    position: relative;
}

#admin-add-dlcs-modal h2 {
    color: var(--primary-color, #3590b2);
    font-size: 1.25em;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-shadow: none;
}

.admin-dlc-field {
    margin-bottom: 22px !important;
    animation: fadeIn 0.5s cubic-bezier(.4,2,.6,1);
}

#admin-add-dlcs-modal .admin-dlc-field > div {
    background: #f7fafc;
    border-radius: 12px;
    border: 1.5px solid #e3f2fd;
    box-shadow: 0 1px 4px #3590b211;
    padding: 14px 10px 10px 10px;
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    transition: box-shadow 0.2s, border 0.2s;
}

#admin-add-dlcs-modal .admin-dlc-field > div:hover {
    box-shadow: 0 2px 8px #3590b222;
    border-color: var(--primary-color, #3590b2);
}

#admin-add-dlcs-modal label {
    font-size: 1em;
    color: var(--primary-color, #3590b2);
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
    letter-spacing: 0.5px;
}

#admin-add-dlcs-modal input[type="text"],
#admin-add-dlcs-modal input[type="url"] {
    width: 100%;
    padding: 9px 12px;
    border-radius: 7px;
    border: 1.5px solid #b0bec5;
    font-size: 1em;
    background: #fff;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px #e3f2fd44;
}
#admin-add-dlcs-modal input[type="text"]:focus,
#admin-add-dlcs-modal input[type="url"]:focus {
    border-color: var(--primary-color, #3590b2);
    box-shadow: 0 2px 8px #3590b244;
}

#admin-add-dlcs-modal input[type="file"] {
    display: none;
}

#admin-add-dlcs-modal .custom-file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color, #3590b2);
    color: #fff;
    border-radius: 7px;
    padding: 7px 16px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 4px #3590b211;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    margin-top: 2px;
    user-select: none;
    position: relative;
}
#admin-add-dlcs-modal .custom-file-label:before {
    content: '\1F5BC'; /* icono imagen */
    font-size: 1.1em;
    margin-right: 6px;
}
#admin-add-dlcs-modal .custom-file-label:hover {
    background: #226b8a;
    color: #fff;
    box-shadow: 0 2px 8px #3590b222;
}

#admin-add-dlcs-modal .admin-image-preview {
    margin-top: 8px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
#admin-add-dlcs-modal .admin-image-preview img {
    display: block;
    margin: 0 auto;
}

#admin-add-dlcs-modal .remove-dlc-field-btn {
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 1.05em;
    cursor: pointer;
    margin-left: 8px;
    transition: background 0.18s, transform 0.18s;
    box-shadow: 0 1px 4px #e5393522;
}
#admin-add-dlcs-modal .remove-dlc-field-btn:hover {
    background: #b71c1c;
    transform: scale(1.08) rotate(-8deg);
}

#admin-add-dlcs-modal #add-dlc-field-btn {
    background: var(--primary-color, #3590b2);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 1.05em;
    font-weight: 700;
    margin-top: 8px;
    margin-bottom: 6px;
    box-shadow: 0 1px 4px #3590b211;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
#admin-add-dlcs-modal #add-dlc-field-btn:before {
    content: '+'; /* Icono para añadir */
    font-size: 1.1em;
    margin-right: 6px;
}
#admin-add-dlcs-modal #add-dlc-field-btn:hover {
    background: #226b8a;
    color: #fff;
    box-shadow: 0 2px 8px #3590b222;
}

#admin-add-dlcs-modal .message {
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 7px;
    font-size: 1em;
    font-weight: 600;
    box-shadow: 0 1px 4px #e3f2fd22;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
#admin-add-dlcs-modal .message[style*="color: #4caf50"] {
    background: #e8f5e9;
    color: #388e3c !important;
    border: 1.2px solid #4caf50;
}
#admin-add-dlcs-modal .message[style*="color: #e53935"] {
    background: #ffebee;
    color: #b71c1c !important;
    border: 1.2px solid #e53935;
}
#admin-add-dlcs-modal .message[style*="color: #37474f"] {
    background: #e3f2fd;
    color: #37474f !important;
    border: 1.2px solid #90caf9;
}

#admin-add-dlcs-modal .close-popup {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 1.5em;
    color: var(--primary-color, #3590b2);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s, transform 0.18s;
    z-index: 10;
}
#admin-add-dlcs-modal .close-popup:hover {
    color: #e53935;
    transform: scale(1.12) rotate(8deg);
}

@media (max-width: 600px) {
    #admin-add-dlcs-modal .popup-content {
        padding: 12px 2vw 12px 2vw;
        max-width: 99vw;
    }
    #admin-add-dlcs-modal .admin-dlc-field > div {
        flex-direction: left;
        gap: 8px;
        padding: 8px 3px 7px 3px;
    }
    #admin-add-dlcs-modal .custom-file-label {
        width: 100%;
        justify-content: center;
    }
    #admin-add-dlcs-modal .admin-image-preview img {
        max-width: 90vw;
        max-height: 100px;
        align-items: center;
    }
}

    .admin-file-dropzone {
        border: 2px dashed #b0bec5;
        border-radius: 7px;
        padding: 10px;
        transition: background 0.3s, border-color 0.3s;
    }
    .admin-file-dropzone.drag-over {
        background: #e3f2fd;
        border-color: #2196f3;
    }
    .dropzone-hint {
        font-size: 0.8em;
        color: #607d8b;
        margin-top: 4px;
        text-align: center;
    }