@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #000000;
    overflow-x: hidden; /* Crucial para evitar que la web baile hacia los lados en móviles */
    animation: pageFade 1s ease;
}

/* NAVBAR SUPERIOR ELEGANTE ADAPTADA */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    color: #7f7f7f;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 14px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

nav a:hover {
    color: #000000;
}

nav a.nav-btn-active {
    background: #000000;
    color: #ffffff !important;
    font-weight: 600;
}

/* CONTENEDOR HERO ADAPTADO */
.hero-screen {
    width: 100%;
    min-height: 100vh; /* Cambiado a min-height para evitar desbordes si el contenido es grande */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    background: #ffffff;
    padding: 80px 20px; /* Asegura espacio para el header fijo arriba */
}

.hero-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    width: 100%;
}

.hero-logo-box {
    margin-bottom: 25px;
}

.hero-center-logo {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
}

/* Títulos con tamaños fluidos nativos */
.hero-title {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #000000;
    line-height: 1.1;
    margin-bottom: 5px;
}

.hero-subtitle {
    font-size: 44px;
    font-weight: 400;
    letter-spacing: -1px;
    color: #8c8c8c;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-subtext {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    color: #b2b2b2;
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* Botones principales con adaptación flex-wrap */
.hero-action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-black {
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 15px 32px;
    border: 1px solid #000000;
    transition: background 0.3s ease, opacity 0.3s ease;
    text-align: center;
}

.btn-black:hover {
    opacity: 0.85;
}

.btn-outline {
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    padding: 15px 32px;
    border: 1px solid #e5e5e5;
    transition: border-color 0.3s ease;
    text-align: center;
}

.btn-outline:hover {
    border-color: #000000;
}

/* Redes sociales responsivas */
.hero-social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.btn-social {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #000000;
    color: #000000;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    padding: 12px 24px;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-social:hover {
    background: #000000;
    color: #ffffff;
}

/* INDICADOR DE SCROLL */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator span {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 4px;
    color: #b2b2b2;
}

.scroll-line {
    width: 1px;
    height: 35px;
    background: #e5e5e5;
}

/* MARQUEE TOTALMENTE FLUIDO */
.marquee {
    width: 100%;
    overflow: hidden;
    background: #000000;
    color: #ffffff;
    padding: 18px 0;
    display: flex;
    white-space: nowrap;
    user-select: none;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 40px;
    padding-right: 40px;
    min-width: 100%;
    justify-content: space-around;
    animation: scrollText 25s linear infinite;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
}

.marquee:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scrollText {
    from { transform: translateX(0%); }
    to { transform: translateX(-100%); }
}

/* SECCIONES GENERALES */
section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-desc {
    font-size: 15px;
    color: #666666;
    line-height: 1.6;
}

/* FILTROS Y TIENDA */
.filter-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 1px solid #e5e5e5;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

#ugc-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* TARJETAS DE TIENDA PREMIUM */
.card {
    background: #ffffff;
    border: 1px solid #efefef;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.card-img-container {
    background: #fdfdfd;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.card-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.card:hover .card-img-container img {
    transform: scale(1.1);
}

.card-info {
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999999;
    margin-bottom: 6px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* Propiedad estándar añadida para máxima compatibilidad */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer-price {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}

.price {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 15px;
}

.robux-icon {
    width: 16px;
    height: 16px;
}

.buy-btn {
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    width: 100%;
    text-align: center;
    transition: opacity 0.3s ease;
}

.buy-btn:hover {
    opacity: 0.8;
}

@keyframes pageFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================
   ZONA CATALOGO: FONDO NEGRO DE IZQUIERDA A DERECHA (100%)
   ========================================================== */
#ugc {
    background: #000000;
    color: #ffffff;
    max-width: 100% !important; 
    width: 100%;
    margin: 0;
    padding: 100px 0;
}

#ugc .catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 40px;
}

#ugc .section-title {
    color: #ffffff;
    margin-bottom: 0;
}

#ugc #ugc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

#ugc .filter-btn {
    color: #ffffff;
    border-color: #333333;
}

#ugc .filter-btn.active, 
#ugc .filter-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

#ugc .card {
    background: #ffffff;
    border: none;
}

/* ==========================================================
   EFECTO REVEAL PREMIUM
   ========================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(70px);
    transition: opacity 1.5s cubic-bezier(0.215, 0.610, 0.355, 1),
                transform 1.5s cubic-bezier(0.215, 0.610, 0.355, 1);
    will-change: opacity, transform;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   MEDIA QUERIES (SÓLO ADAPTACIONES ESPECÍFICAS)
   ========================================================== */
@media (max-width: 1240px) {
    /* Ajuste para pantallas medianas/tablets para que no se pegue a los bordes */
    header { padding: 15px 20px; }
    #ugc .catalog-header, #ugc #ugc-container { padding: 0 20px; }
}

@media (max-width: 767px) {
    /* HEADER ULTRA LIMPIO Y ESTABLE */
    header {
        padding: 10px 15px;
        flex-direction: row; 
        justify-content: space-between;
        height: 65px;
    }

    .logo-img {
        height: 35px;
    }

    /* MENÚ DESLIZABLE HORIZONTAL PREMIUM (Tipo App Store / Instagram) */
    nav {
        gap: 5px;
        flex-wrap: nowrap; 
        justify-content: flex-start;
        overflow-x: auto; 
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch; 
        padding-bottom: 4px;
        max-width: 70%; 
    }

    nav::-webkit-scrollbar {
        display: none; /* Oculta la barra visual para mantener el estilo limpio */
    }

    nav a {
        font-size: 10px;
        padding: 6px 10px;
        letter-spacing: 0.5px;
        white-space: nowrap; 
        flex-shrink: 0; 
    }

    /* REDUCCIÓN DE SECCIONES GENERALES */
    section {
        padding: 60px 20px;
    }

    /* RE-ESCALADO FLUIDO DEL HERO PANTALLA */
    .hero-screen {
        padding-top: 90px;
    }

    .hero-title {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 24px;
        letter-spacing: -0.5px;
        margin-bottom: 25px;
    }

    .hero-subtext {
        font-size: 9px;
        margin-bottom: 30px;
    }

    .btn-black, .btn-outline {
        width: 100%; 
        padding: 13px 20px;
    }

    .btn-social {
        width: 100%; 
        justify-content: center;
    }

    .scroll-indicator {
        display: none; /* Oculto en móviles para no encimar elements */
    }

    /* FILTROS Y CONTENEDOR DE CATÁLOGO */
    .filter-tags {
        gap: 8px;
        margin-bottom: 30px;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    #ugc .catalog-header {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        text-align: center;
    }

    /* CUADRÍCULA INMUTABLE DE 2 COLUMNAS (Calidad de Tienda Oficial) */
    #ugc #ugc-container {
        padding: 0 12px;
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 12px; 
    }

    /* CONFIGURACIÓN DE TARJETAS EN DISPOSITIVOS MÓVILES */
    .card-img-container {
        padding: 10px;
    }
    
    .card:hover .card-img-container img {
        transform: scale(1.05); /* Menor zoom en móvil para evitar saltos raros */
    }

    .card-info {
        padding: 12px;
    }

    .card-category {
        font-size: 8px;
        margin-bottom: 4px;
    }

    .card-title {
        font-size: 13px;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2; /* Propiedad estándar añadida también aquí para móviles */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .price {
        font-size: 13px;
    }

    .robux-icon {
        width: 13px;
        height: 13px;
    }

    .buy-btn {
        padding: 8px 12px;
        font-size: 11px;
    }

    /* ANIMACIONES ADAPTADAS PARA EVITAR TARJETAS OCULTAS EN MÓVIL */
    .fade-up {
        opacity: 1 !important; /* Fuerza a que siempre sean visibles en móviles */
        transform: none !important; /* Quita el desplazamiento que las empujaba hacia abajo */
        transition: none !important; /* Elimina cualquier retraso para que carguen al instante */
    }
}