/* ==========================================================================
   1. RESET, BASE Y CONTENEDOR CON FONDO LÍQUIDO PREMIUM
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
}

body {
    background-color: #000000;
    overflow-x: hidden;
    overflow-y: scroll;
}

/* El contenedor principal carga la imagen fija que combina con todo */
.product-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    
    /* ENLACE DIRECTO A LA NUEVA IMAGEN DE FONDO */
    background-image: url('img/fondo-premium.png') !important;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    
    /* Viñeta cinematográfica para oscurecer los bordes del lienzo */
    box-shadow: inset 0 0 100px rgba(255, 255, 255, 0.568); 
    z-index: 1; /* Nivel base */
}

/* Capa de control de contraste para el fondo */
.product-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.486); /* Película oscura sutil para que resalte más la gorra */
    z-index: 2; /* Sobre la imagen de fondo */
    pointer-events: none;
}


/* ==========================================================================
   3. ELEMENTOS DE FONDO Y PRODUCTO CENTRAL
   ========================================================================== */
.bg-text {
    position: absolute;
    font-size: 18vw;
    font-weight: 900;
    /* Cambiamos el color base a un blanco translúcido para que absorba el neón */
    color: rgba(0, 0, 0, 0.24); 
    z-index: 4;
    pointer-events: none;
    letter-spacing: -5px;
    white-space: nowrap;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    -webkit-font-smoothing: antialiased;
    
    /* EFECTO MULTI-CAPA DE NEÓN FIJO (Estilo Hypebeast Cyberpunk) */
    text-shadow: 
        0 0 10px rgba(0, 242, 255, 0.788),   /* Cian brillante interno */
        0 0 30px rgb(0, 241, 254),   /* Halo cian medio */
        0 0 70px rgba(255, 0, 128, 0.6),   /* Expansión magenta en los bordes */
        0 0 120px rgba(255, 0, 128, 0.3);  /* Atmósfera rosa profunda */
}

.product-display {
    z-index: 5;
    position: relative;
    transform: rotate(-15deg) translateY(-20px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-display img {
    width: 80vw;
    max-width: 520px;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.8));
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ==========================================================================
   4. INTERFAZ DE USUARIO PREMIUM (ESCRITORIO)
   ========================================================================== */
.info-box {
    position: absolute;
    bottom: 40px;
    left: 40px;
    width: 340px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.233); 
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 0px solid rgb(255, 254, 254);
    border-radius: 24px;
    color: rgb(255, 255, 255);
    z-index: 6;
    box-shadow: 0 0.1px 30px rgba(255, 255, 255, 0.616);
}

.info-box h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.info-box p {
    font-size: 0.9rem;
    opacity: 1;
    margin-bottom: 25px;
}

.info-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-to-cart {
    position: absolute;
    bottom: 50px;
    left: 50%;
    margin-left: -90px;
    width: 180px;       
    background: #38cc1a;
    color: #ffffff;
    border: none;
    padding: 14px 0;    
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 7;
    transition: background 0.3s ease, box-shadow 0.3s ease; 
    transform: none; 
}

.add-to-cart:hover {
    background: #21b304;
    box-shadow: 0 0 20px rgba(80, 212, 75, 0.562);
}

/* UI DERECHA (Navegación y Miniaturas) */
.ui-right {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 25px;
    z-index: 6;
}

.nav-arrows {
    display: flex;
    gap: 15px;
}

.arrow-btn {
    background: rgba(70, 60, 60, 0.336);
    color: rgb(255, 255, 255);
    border: 1px solid rgba(255,255,255,0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-btn:hover {
    background: #5eb5b0;
    color: #111;
    border-color: #111;
}

.thumbnails {
    display: flex;
    gap: 12px;
}

.thumb {
    width: 65px;
    height: 65px;
    background: rgba(128, 111, 111, 0.13);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
}

.thumb.active {
    border-color: #5eb5b0;
    background: rgba(255, 255, 255, 0.12);
}

.thumb img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

/* REDES SOCIALES */
.social-footer {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    gap: 20px;
    z-index: 10;
}

.social-link {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 2px;
    opacity: 0.4;
    transition: 0.3s;
}

.social-link:hover {
    opacity: 1;
    color: #ffffff;
}

/* DERECHOS RESERVADOS FIXED */
.bottom-bar {
    position: relative;
    bottom: 0;       
    left: 0;
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fefffd23;
    border-top: 0px solid rgba(243, 0, 0, 0.05);
    z-index: 9999;   
    pointer-events: none; 
}

.bottom-bar p {
    font-size: 0.6rem;
    color: rgb(255, 255, 255); 
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 20%;
}

/* ==========================================================================
   5. DISEÑO ADAPTATIVO PARA MÓVILES (PERFECTO EQUILIBRIO)
   ========================================================================== */
@media (max-width: 600px) {
    .product-container {
        justify-content: flex-start;
        padding-top: 70px;
        height: auto; 
        min-height: 100vh;
        overflow-y: visible; 
    }

    .bg-text {
        font-size: 26vw;
        top: 25% !important; 
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .product-display {
        transform: rotate(-10deg);
        margin-bottom: 15px;
    }

    .product-display img {
        width: 75vw;
        max-width: 290px;
    }

    .info-box {
        position: relative;
        bottom: 0;
        left: 0;
        width: 90%;
        margin: 0 auto 20px auto;
        text-align: center;
        padding: 25px;
    }

    .add-to-cart {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        width: 90%;
        margin: 15px auto 35px auto; 
        display: block; 
    }

    .ui-right {
        position: relative;
        bottom: 0;
        right: 0;
        width: 100%;
        align-items: center;
        padding-bottom: 60px;
    }

    .social-footer {
        position: relative; 
        top: 0;
        right: 0;
        order: -1;
        margin-bottom: 25px;
        justify-content: center;
        width: 100%;
    }

    .bottom-bar p {
        font-size: 0.5rem;
        letter-spacing: 1.5px;
    }
}