/* ==========================================
   CONFIGURACIÓN BASE Y VARIABLES
   ========================================== */
:root {
    --bg-black: #050505;
    --bg-white: #ffffff;
    --text-white: #ffffff;
    --text-black: #0a0a0a;
    --text-gray-dark: #222226; 
    --text-gray-light: #8a8a93;
    --blue-ultramarine: #0038ff;
    --blue-glow: rgba(0, 56, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden; /* Bloqueo estricto de desborde horizontal */
    width: 100%;
    max-width: 100%;
}

/* ==========================================
   EL DEGRADADO SUAVE DE FONDO CONTINUO
   ========================================== */
.main-gradient-wrapper {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(to bottom, 
        #050505 0%, 
        #050505 40vh, 
        #0d0d11 75vh,
        #22232a 95vh,
        #4e505d 115vh,
        #9ea1b0 135vh,
        #e3e5ec 150vh,
        #ffffff 165vh,
        #ffffff 100%
    );
    overflow-x: hidden; 
}

/* ==========================================
   CABECERA FIJA (Siempre Negra Espacial)
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(5, 5, 5, 0.85); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.logo {
    height: 48px;
    width: auto;
    display: block;
    flex-shrink: 0; /* Evita que el logo se aplaste */
}

.nav-menu {
    display: flex;
    align-items: center;
    flex-shrink: 1;
}

.nav-menu a {
    color: var(--text-gray-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1.5px;
    margin-left: 35px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    white-space: nowrap; /* Evita que el texto se rompa en dos renglones raros */
}

.nav-menu a:hover {
    color: var(--text-white);
}

/* ==========================================
   SECCIÓN HERO (Inicio)
   ========================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px 40px 20px;
    width: 100%;
    max-width: 100%;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 100%;
    max-width: 600px;
    height: 600px;
    background: var(--blue-ultramarine);
    filter: blur(180px);
    opacity: 0.18;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A3A3A3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: var(--text-gray-light);
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.btn-primary {
    display: inline-block;
    color: var(--text-white);
    border: 1px solid var(--blue-ultramarine);
    padding: 14px 32px;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 0 20px var(--blue-glow);
    transition: all 0.4s ease;
}

.btn-primary:hover {
    background-color: var(--blue-ultramarine);
    box-shadow: 0 0 35px rgba(0, 56, 255, 0.4);
    transform: translateY(-2px);
}

/* ==========================================
   SECCIÓN DE PRODUCTOS 
   ========================================== */
.products-section {
    color: var(--text-black);
    padding: 120px 8%;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem); 
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 80px;
    text-transform: uppercase;
    color: var(--text-black);
    text-align: center;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 120px; 
    width: 100%;
    max-width: 100%;
}

.product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6%;
    width: 100%;
    max-width: 100%;
}

.product-row.row-reverse {
    flex-direction: row-reverse;
}

.product-image-zone {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.product-image-zone::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, transparent 65%);
    z-index: 1;
    pointer-events: none;
}

.product-img {
    width: 100%;
    max-width: 380px; 
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-row:hover .product-img {
    transform: translateY(-12px) scale(1.03);
}

.product-info-zone {
    flex: 1;
    width: 100%;
    max-width: 100%;
}

.product-tag {
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--blue-ultramarine);
    margin-bottom: 4px;
    display: inline-block;
}

.product-info-zone h3 {
    font-size: clamp(1.6rem, 3vw, 2rem); 
    font-weight: 700;
    margin-bottom: 12px; 
    letter-spacing: -0.5px;
    color: var(--text-black);
    line-height: 1.1;
}

.product-info-zone p {
    color: var(--text-gray-dark);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
    max-width: 480px;
}

/* ==========================================
   ANIMACIONES DE REVELACIÓN
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE - DISEÑO PARA MÓVILES (Fijado)
   ========================================== */
@media (max-width: 900px) {
    .navbar {
        padding: 15px 4%; /* Reducción estricta de márgenes internos */
    }
    
    .logo {
        height: 28px; /* Reducción clave para liberar espacio horizontal en el header */
    }

    .nav-menu a {
        margin-left: 15px; /* Espaciado compacto inter-enlaces */
        font-size: 11px;   
        letter-spacing: 0.5px;
    }

    .products-section {
        padding: 60px 4%; /* Asegura que la sección blanca use el ancho disponible sin desbordar */
    }

    .product-row, .product-row.row-reverse {
        flex-direction: column !important; 
        gap: 25px;
        text-align: center;
        width: 100% !important;
        max-width: 100% !important;
    }

    .product-image-zone {
        width: 100% !important;
        max-width: 260px !important; /* Limita la escala de las imágenes de hardware */
        margin: 0 auto;
    }

    .product-img {
        width: 100% !important;
        max-width: 100% !important;
    }

    .product-info-zone {
        display: flex;
        flex-direction: column;
        align-items: center; 
        width: 100% !important;
        max-width: 100% !important;
    }

    .product-info-zone h3 {
        font-size: 1.6rem; /* Control rígido para que títulos como Tarum Timer no empujen la pantalla */
    }

    .product-info-zone p {
        margin: 0 auto;
        font-size: 14px; 
        width: 100%;
    }

    .products-container {
        gap: 70px; 
        width: 100% !important;
        max-width: 100% !important;
    }
}