/* ===============================================
   LÚMINA GUITARS - Main Stylesheet
   Version: 1.0
   Author: Lúmina Development Team
   =============================================== */

/* ============================================= 
   1. CSS VARIABLES & ROOT
   ============================================= */

:root {
    /* Colors */
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray: #888888;
    --color-light-gray: #F5F5F5;
    --color-overlay: rgba(0, 0, 0, 0.95);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    
    /* Spacing */
    --spacing-xs: 10px;
    --spacing-sm: 20px;
    --spacing-md: 30px;
    --spacing-lg: 50px;
    --spacing-xl: 80px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
    
    /* Z-index */
    --z-hero: 1;
    --z-content: 10;
    --z-navigation: 100;
    --z-menu: 200;
    --z-loader: 1000;
}

/* ============================================= 
   2. RESET & BASE STYLES
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--color-black);
    color: var(--color-white);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* ============================================= 
   3. LOADING SCREEN
   ============================================= */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loader);
    transition: opacity var(--transition-slow);
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-size: 24px;
    font-weight: var(--font-weight-light);
    letter-spacing: 3px;
    display: block;
    margin-bottom: var(--spacing-md);
}

.loader-bar {
    width: 150px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    animation: loadingBar 1.5s ease-in-out infinite;
}

/* ============================================= 
   VIDEO BACKGROUND
   ============================================= */

/* Video Background Styles */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay opcional para mejorar legibilidad */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Ajusta la opacidad según necesites */
    z-index: 1;
}

/* Asegúrate de que el contenido esté por encima del video */
.logo,
.navigation,
.menu-toggle,
.mobile-menu,
.arrow {
    position: relative;
    z-index: 10;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .video-background video {
        /* En móviles, puedes ajustar la posición si es necesario */
        object-position: center;
    }
    
    /* Opcional: ocultar video en móviles para ahorrar datos/batería */
    /* 
    .video-background {
        display: none;
    }
    */
}

/* Preload y optimización */
.video-background video {
    will-change: auto;
}

/* Fallback si el video no carga */
.video-background {
    background-color: #1a1a1a; /* Color de respaldo */
    background-image: url('../assets/hero-poster.jpg'); /* Imagen de respaldo si el vídeo no carga */
    background-size: cover;
    background-position: center;
}
/* ============================================= 
   4. MAIN CONTAINER
   ============================================= */

.main-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* ============================================= 
   5. HERO IMAGE
   ============================================= */

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-hero);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    
}

/* ============================================= 
   6. LOGO
   ============================================= */

.logo {
    position: fixed;
    top: 2rem; /* Cambiado de 40px a 2rem para mejor consistencia */
    left: 2rem; /* Cambiado de 50px a 2rem para alinear con navegación */
    z-index: var(--z-navigation);
    /* Eliminadas todas las propiedades de animación y transición */
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

.logo img {
    width: auto;
    height: auto; /* Tamaño del logo */
    max-width: 200px;
    transition: none !important;
    animation: none !important;
    transform: none !important;
    filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.35)); /* Legible sobre el vídeo */
}

/* ============================================= 
   7. NAVIGATION
   ============================================= */

.navigation {
    position: fixed;
    bottom: 50px;
    left: 50px;
    z-index: var(--z-navigation);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-link {
    color: var(--color-white);
    font-size: 16px;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all var(--transition-fast);
    position: relative;
    padding-left: 0;
}

.nav-link:hover {
    padding-left: 10px;
    opacity: 0.7;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: var(--color-white);
    transition: width var(--transition-fast);
}

.nav-link:hover::before {
    width: 15px;
}

/* ============================================= 
   8. MOBILE MENU
   ============================================= */

.menu-toggle {
    position: fixed;
    top: 40px;
    right: 30px;
    z-index: var(--z-menu);
    padding: 10px;
    display: none;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-white);
    margin: 5px 0;
    transition: all var(--transition-fast);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-overlay);
    z-index: calc(var(--z-menu) - 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-menu-links a {
    color: var(--color-white);
    font-size: 20px;
    font-weight: var(--font-weight-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-fast);
}

.mobile-menu.active .mobile-menu-links a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-links a:hover {
    opacity: 0.7;
    transform: translateX(10px);
}



/* ============================================= 
   11. UTILITIES
   ============================================= */

.hidden {
    display: none !important;
}

.no-scroll {
    overflow: hidden;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

/* Products Grid - REEMPLAZA el CSS existente */
.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* EXACTAMENTE 3 columnas */
    gap: 24px; /* Espacio entre cards */
    align-items: stretch; /* Cards del mismo alto */
}

/* Product Card - Más pequeña y compacta */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
}

.product-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-text);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-image {
    width: 100%;
    height: 220px; /* Altura fija más pequeña */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    max-width: 75%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.1) rotate(3deg);
}

.product-info {
    padding: 16px; /* Padding reducido */
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    font-size: 18px; /* Tamaño reducido */
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-text);
    line-height: 1.2;
}

.product-type {
    font-size: 12px; /* Tamaño reducido */
    color: var(--color-gray);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-price {
    font-size: 16px; /* Tamaño reducido */
    color: var(--color-text);
    margin-bottom: 12px;
    font-weight: 600;
}

.product-colors {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.color-dot {
    width: 8px; /* Más pequeño */
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-dot:hover {
    transform: scale(1.3);
}

.product-cta {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: auto;
}

.btn {
    padding: 6px 14px; /* Botones más pequeños */
    border-radius: 14px;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-weight: 500;
    flex: 1;
    max-width: 80px; /* Limitar ancho de botones */
}

.btn-primary {
    background: var(--color-link);
    color: white;
}

.btn-primary:hover {
    background: #0051d5;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-link);
    border: 1px solid var(--color-link);
}

.btn-secondary:hover {
    background: var(--color-link);
    color: white;
}

/* ELIMINAR la tarjeta destacada para mantener consistencia */
.featured-product {
    display: none !important;
}

/* Responsive - Tablets */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
        gap: 20px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .btn {
        font-size: 10px;
        padding: 5px 12px;
    }
}

/* Responsive - Móviles */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr; /* 1 columna en móvil */
        gap: 16px;
    }
    
    .product-image {
        height: 180px;
        padding: 16px;
    }
    
    .product-info {
        padding: 14px;
    }
    
    .product-name {
        font-size: 16px;
    }
    
    .product-cta {
        gap: 8px;
    }
    
    .btn {
        max-width: none;
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .products-container {
        padding: 40px 16px;
    }
    
    .products-grid {
        gap: 12px;
    }
    
    .product-image {
        height: 160px;
    }
}