:root {
    --primary-blue: #202321;
    --accent-cyan: #ff4e03;
    --dark-text: #f8f9fa;
    --gris: #202321;
    --gray-bg: #f8f9fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



/* ==========================================================================
   HEADER & NAVBAR (DISEÑO PREMIUM DIRECTO / RESPONSIVE)
   ========================================================================== */

.header {
    background: #202321; /* El gris oscuro sólido de tu marca para amalgamar todo */
    height: 90px;
    padding: 5px 0px 5px 0px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000; /* Asegura que flote sobre el Hero y el catálogo */
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px; /* Margen interno preventivo para los bordes */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 35px; /* Tamaño del logo de Equipro */
    width: auto;
    display: block;
}

/* Contenedor que agrupa la lista y el CTA en Escritorio */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #f8f9fa; /* Texto claro por defecto sobre el fondo oscuro */
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

/* Enlace activo o hover (Tu naranja corporativo) */
.nav-links a:hover, 
.nav-links a.active {
    color: var(--accent-cyan);
}

/* Botón de Acción Principal (CTA) */
.btn-cta {
    background: var(--accent-cyan);
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    white-space: nowrap; /* Evita que el texto se rompa en dos líneas */
}

.btn-cta:hover {
    transform: translateY(-2px);
    background-color: #e04400; /* Un toque más oscuro al pasar el mouse */
}

/* BOTÓN DE MENÚ HAMBURGUESA (Oculto en Computadoras) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1200; /* Queda por encima de la cortina móvil */
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: #f8f9fa; /* Líneas claras */
    transition: transform 0.3s ease, background 0.3s ease;
}

.hamburger::before, 
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }


/* ==========================================================================
   VISTA MOBILE (PANTALLA COMPLETA & ALTO CONTRASTE)
   ========================================================================== */

@media (max-width: 768px) {
    .nav-toggle {
        display: block; /* Revelamos el botón de tres líneas */
    }

    /* Transformación del menú en cortina completa */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido a la derecha fuera de pantalla */
        width: 100%; /* Cubre el 100% del ancho */
        height: 100vh; /* Cubre el 100% del alto */
        background-color: #202321; /* Gris oscuro sólido de marca */
        
        display: flex !important; /* Forzamos flexbox para el ordenamiento */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 50px; /* Separación generosa entre los links y el botón */
        
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 1100;
    }

    /* Inyectado por JS para deslizar el menú */
    .nav-menu.open {
        right: 0;
    }

    /* Forzamos a que reaparezca la lista de links rota en vertical */
    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        gap: 25px;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-family: 'Montserrat', sans-serif;
        font-size: 24px; /* Tamaño grande y cómodo para dedos */
        font-weight: 600;
        color: #f8f9fa !important; /* Texto blanco asegurado */
        display: inline-block;
        padding: 10px 20px;
        width: auto;
    }

    .nav-links a:hover, 
    .nav-links a.active {
        color: var(--accent-cyan) !important;
    }

    /* Ajuste de escala para el CTA dentro del menú móvil */
    .nav-menu .btn-cta {
        display: inline-block;
        font-size: 15px;
        padding: 15px 40px;
        width: auto;
        max-width: 280px;
    }

    /* ANIMACIÓN: Transformar tres líneas en una cruz (X) */
    .nav-toggle.open .hamburger {
        background: transparent !important; /* Desaparece la del medio */
    }

    .nav-toggle.open .hamburger::before,
    .nav-toggle.open .hamburger::after {
        background: #f8f9fa !important; /* Garantiza color claro en la X */
        top: 0;
    }

    .nav-toggle.open .hamburger::before {
        transform: rotate(45deg);
    }

    .nav-toggle.open .hamburger::after {
        transform: rotate(-45deg);
    }
}




/* ==========================================================================
   SECCIÓN HERO (RESPONSIVA + CONTROL DE PROPORCIONES)
   ========================================================================== */

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Se adapta a la pantalla */
    background-color: #1a1c1a; /* Fondo oscuro base */
    background-image: url('fondo-2.png'); /* Tu imagen de fondo desenfocada */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Espacio para que el header fixed no lo tape */
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* Para compatibilidad con Safari */
    /* 1. Gradiente de izquierda a derecha (para que el texto sea legible) 
       2. Gradiente de abajo hacia arriba (para fundir con la siguiente sección) */
    background: 
        linear-gradient(90deg, rgba(32, 35, 33, 1) 0%, rgba(32, 35, 33, 0.7) 55%, rgba(32, 35, 33, 0.2) 90%),
        linear-gradient(0deg, rgba(32, 35, 33, 1) 0%, rgba(32, 35, 33, 0) 45%);
    z-index: 1;
}


.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Dos columnas en Escritorio */
    gap: 40px;
    align-items: center;
}

/* --- COLUMNA DE TEXTOS (Escritorio izquierda) --- */
.hero-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    color: #f8f9fa;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--accent-cyan); /* Tu naranja/cian corporativo */
    font-weight: 700;
}

.hero-text p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 35px;
    max-width: 540px;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-cyan);
    color: #fff !important;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #e04400;
}

/* --- COLUMNA DEL PRODUCTO / SLIDER (Escritorio derecha) --- */
.hero-product-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-product {
    position: relative;
    width: 100%;
    height: 450px; /* Altura controlada para el área del producto */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CLAVE: Aquí evitamos que las imágenes se estiren o deformen */
.hero-img {
    position: absolute;
    max-width: 85%; /* No permite que se desborde del contenedor */
    max-height: 100%; /* Escala proporcionalmente según su alto */
    object-fit: contain; /* Mantiene la relación de aspecto original pase lo que pase */
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    /* Fino efecto de sombra flotante para el render de la heladera */
    filter: drop-shadow(0 20px 35px rgba(0,0,0,0.4)); 
}

/* Clase activa controlada por tu JS del slider */
.hero-img.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

/* Ajustes para los Dots sobre el fondo */
.hero-dots {
    display: flex;
    gap: 12px;
    z-index: 10;
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    backdrop-filter: blur(5px); /* Efecto glassmorphism moderno */
    border: 1px solid rgba(255,255,255,0.1);
}


.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: var(--accent-cyan);
    transform: scale(1.2);
}


/* ==========================================================================
   VISTA MOBILE (PRODUCTO ARRIBA, TEXTOS ABAJO)
   ========================================================================== */

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 120px 0 60px; /* Más padding para que respire en celular */
    }

    .hero-content {
        /* Pasamos de Grid de 2 columnas a Flexbox vertical e INVERTIDO */
        display: flex !important;
        flex-direction: column-reverse; /* Mandatorio: Producto arriba, Texto abajo */
        gap: 40px;
        text-align: center; /* Centramos textos para mejor lectura en móvil */
    }

    /* Ajuste del área de la heladera en celulares */
    .hero-product-container {
        width: 100%;
    }

    .hero-product {
        height: 320px; /* Achicamos la caja de la foto para pantallas chicas */
    }

    .hero-img {
        max-width: 75%; /* Evita que la heladera pegue en los bordes de la pantalla */
    }

    /* Ajuste de textos en celulares */
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 30px; /* Reducimos tipografía para que no queden palabras cortadas */
    }

    .hero-text p {
        font-size: 15px;
        padding: 0 15px;
        margin-bottom: 25px;
    }
    
    .hero-btns {
        width: 100%;
    }
    
    .btn-primary {
        width: 100%;
        max-width: 280px; /* Botón cómodo para el dedo cubriendo casi todo el ancho */
    }
}




#productos {
    scroll-margin-top: 120px; 
}

#soluciones {
    scroll-margin-top: 90px; 
}

/* --- CATEGORIES SECTION --- */
.categories-section {
    padding: 80px 0;
    background-color: var(--gray-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--accent-cyan);
    margin: 0 auto;
    border-radius: 2px;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;         /* Permite que las tarjetas bajen de fila */
    justify-content: center; /* Centra las tarjetas si la pantalla se achica */
    gap: 30px;               /* Mantiene tus 30px de separación exactos */
    width: 100%;
}

.category-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;

    /* CAMBIO CLAVE: Forzamos matemáticamente 3 tarjetas por fila en desktop */
    flex: 0 0 calc((100% - 60px) / 3); 
    width: calc((100% - 60px) / 3);    
    max-width: 360px;        /* Un ancho máximo elegante para que no se estiren de más en monitores gigantes */
    box-sizing: border-box;  /* Evita que el padding te altere el tamaño de la tarjeta */
}


/* 2. Hacemos que el enlace cree una capa invisible que ocupe todo el espacio */
.category-card .btn-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Se estira sobre todo el contenido de la tarjeta */
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,86,179,0.1);
}

.card-icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 94, 0, 0.1); /* Fondo suave cian */
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    width: 45px;
    height: auto;
}

.category-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--gris);
}

.category-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 20px;
}

.btn-text {
    text-decoration: none;
    color: var(--accent-cyan);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.btn-text:hover {
    color: var(--primary-blue);
}


/* ==========================================================================
   ADAPTACIÓN RESPONSIVE AUTOMÁTICA PARA LAS 3 COLUMNAS
   ========================================================================== */
@media (max-width: 992px) {
    /* En tablets pasan a ser 2 por fila (Te quedan 3 filas perfectas de 2) */
    .category-card {
        flex: 0 0 calc((100% - 30px) / 2);
        width: calc((100% - 30px) / 2);
    }
}

@media (max-width: 650px) {
    /* En celulares pasan a pantalla completa individual */
    .category-card {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
}


/* ==========================================================================
   SECCIÓN SOLUCIONES / TECNOLOGÍA (DISEÑO PREMIUM RESPONSIVE)
   ========================================================================= */

.tech-section {
    position: relative;
    padding: 100px 0;
    background-color: #202321; /* Gris oscuro sólido de marca */
    color: #f8f9fa;
    overflow: hidden;
}

.tech-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(99, 99, 99, 0.95) 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
}

.tech-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr; /* Dos columnas simétricas en Escritorio */
    gap: 60px;
    align-items: center;
}

/* --- COLUMNA IZQUIERDA: IMAGEN --- */
.tech-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.tech-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3)); /* Sombra elegante al plano/boceto */
}

/* --- COLUMNA DERECHA: TEXTOS Y LISTA --- */
.tech-text {
    display: flex;
    flex-direction: column;
}

.tech-text .badge {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--accent-cyan); /* Tu color de acento */
    padding: 6px 16px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.tech-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 15px;
}

.tech-text p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Lista de características */
.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.tech-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.tech-list .icon {
    font-size: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    box-sizing: border-box;
    flex-shrink: 0; /* Evita que el icono se achique si el texto es largo */
}

.tech-list li strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #fff;
    display: block;
    margin-bottom: 4px;
}

.tech-list li p {
    font-size: 14px;
    color: #aaa;
    margin: 0;
    line-height: 1.5;
}


/* ==========================================================================
   VISTA RESPONSIVE (ORDEN INTELIGENTE Y ESPACIADO FRESCO)
   ========================================================================= */

@media (max-width: 992px) {
    .tech-section {
        padding: 60px 0;
    }

    .tech-content {
        /* Desactivamos grid y pasamos a flex vertical */
        display: flex !important;
        flex-direction: column;
        gap: 40px;
    }

    /* Forzamos un ordenamiento visual premium por CSS */
    .tech-text {
        order: 1; /* 1° Arriba: Introducción del texto */
        align-items: center;
        text-align: center;
    }

    .tech-text .badge {
        align-self: center; /* Centramos el elemento */
    }

    .tech-text h2 {
        font-size: 24px; /* Reducción tipográfica fina para pantallas chicas */
        padding: 0 10px;
    }

    .tech-image {
        order: 2; /* 2° Al medio: La imagen del boceto como respiro visual */
        max-width: 80%; /* Evita que sature la pantalla del celular */
        margin: 0 auto;
    }

    .tech-list {
        order: 3; /* 3° Abajo: La lista técnica detallada */
        text-align: left; /* La lista mantiene lectura natural izquierda */
        width: 100%;
        max-width: 540px; /* Contenedor cómodo para lectura en tablets/celulares */
        margin-top: 10px;
    }
    
    .tech-list .icon {
        background: rgba(255, 255, 255, 0.08); /* Resaltamos un poco más el icono en móviles */
    }
}


/* --- GALLERY CON ACELERACIÓN POR HARDWARE (TRANSFORM 3D) --- */
.gallery-section {
    width: 100%;
    overflow: hidden;
    background: var(--gris);
    padding: 20px 0;
}

.gallery-container {
    position: relative;
    width: 100%;
}

.gallery-track {
    display: flex;
    gap: 0;
    width: 100%;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    
    /* CAMBIO CLAVE: Activamos la aceleración por hardware */
    will-change: transform;
    transform: translate3d(0px, 0px, 0px);
}

.gallery-track:active {
    cursor: grabbing;
}

.gallery-item {
    flex: 0 0 33.3333%; /* 3 imágenes en pantalla en PC */
    height: 400px;
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(105%);
    transition: filter 0.5s ease, transform 0.5s ease;
    pointer-events: none; /* Evita que la imagen rompa el arrastre */
}

.gallery-track:not(.dragging) .gallery-item:hover img {
    filter: grayscale(0%) contrast(100%) brightness(1.05);
    transform: scale(1.03);
}

/* Botones de navegación */
.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 20px 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    transition: background 0.3s;
}

.gallery-prev:hover, .gallery-next:hover { 
    background: var(--accent-cyan); 
}

.gallery-prev { left: 0; border-radius: 0 5px 5px 0; }
.gallery-next { right: 0; border-radius: 5px 0 0 5px; }

/* RESPONSIVE (Mantiene tus proporciones exactas pero da indicio visual) */
@media (max-width: 992px) {
    .gallery-item { flex: 0 0 50%; } /* 2 imágenes en tablets */
}

@media (max-width: 600px) {
    .gallery-item { flex: 0 0 100%; } /* 1 imagen en móvil */
    
    /* CAMBIO CLAVE: En vez de display:none, las dejamos vivas pero adaptadas a pantallas chicas */
    .gallery-prev, .gallery-next { 
        display: block; /* Asegura que sigan visibles */
        padding: 12px 10px; /* Las hacemos un toque más delgadas para que no invadan */
        font-size: 16px; /* Ajuste tipográfico fino para el celular */
        background: rgba(0, 0, 0, 0.4); /* Un toque más sutiles */
    }
    
    /* Las pegamos al ras del borde para optimizar los píxeles de pantalla */
    .gallery-prev { left: 0; }
    .gallery-next { right: 0; }
}

/* --- FOOTER --- */


.main-footer {
    background-color: var(--gris);
    color: var(--white);
    padding: 80px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Convierte tu logo negro en blanco */
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}


.footer-links h4, .footer-contact h4 {
    font-family: 'Montserrat';
    color: var(--accent-cyan);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover { color: var(--accent-cyan); }

.footer-contact p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-contact p  a{
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;

}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}



/* --- SECCIÓN MARQUESINA DE CLIENTES --- */
.clients-marquee {
    background-color: #f8f9fa; /* Fondo claro para que resalten las marcas */
    padding: 60px 0;
    overflow: hidden; /* Corta todo lo que se salga de la pantalla */
    width: 100%;
}

.marquee-content {
    overflow: hidden;
    width: 100%;
    position: relative;
    /* Efecto difuminado elegante en los bordes izquierdo y derecho */
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    /* ELIMINAMOS EL GAP de acá porque confunde al cálculo del -50% */
    gap: 0; 
    width: max-content; 
    animation: scrollMarquee 50s linear infinite; 
}

.marquee-track img {
    height: 125px; 
    width: auto;
    object-fit: contain;
    
    /* CAMBIO CLAVE: El espacio de separación (los 80px de antes) se lo damos 
       repartido a los costados de CADA logo (40px a la izquierda y 40px a la derecha) */
    margin: 0 40px; 
    
    filter: grayscale(100%) opacity(0.7); 
    transition: filter 0.3s ease;
}
/* Detalle interactivo: al pasar el mouse recupera su color original */
.marquee-track img:hover {
    filter: grayscale(0%) opacity(1);
}

/* Pausar el movimiento cuando el cliente se para a mirar las marcas */
.marquee-content:hover .marquee-track {
    animation-play-state: paused;
}

/* --- EL MOTOR DEL MOVIMIENTO INFINITO --- */
@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Se desplaza exactamente hasta la mitad (donde arranca la segunda tanda) y se resetea */
        transform: translateX(-50%); 
    }
}



/* --- PAGINA DE DETALLE DE PRODUCTO --- */

/* --- SELECTOR DE PESTAÑAS (TABS) --- */
.product-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    padding-bottom: 20px;
}

.tab-link {
    background: transparent;
    border: 2px solid #ddd;
    color: var(--gris);
    padding: 12px 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border-radius: 30px; /* Bordes redondeados estilo píldora, muy moderno */
    transition: all 0.3s ease;
}

.tab-link:hover, 
.tab-link.active {
    background: #202321;
    color: #ffffff;
    border-color: #202321;
}

.prod-subtitle {
    color: var(--accent-cyan);
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 600;
    margin-top: -15px;
    margin-bottom: 25px;
}

/* Ajuste responsive para las pestañas */
@media (max-width: 768px) {
    .product-tabs-nav {
        flex-direction: column;
        gap: 10px;
        border-bottom: none;
    }
    .tab-link {
        width: 100%;
        text-align: center;
    }
}

.product-page {
    background-color: var(--gray-bg); /* Fondo claro para que resalte la ficha */
    color: var(--primary-blue);
}

.product-detail-section {
    padding: 120px 0 80px; /* Margen superior amplio por el header fixed */
}

.btn-back {
    display: inline-block;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    margin-bottom: 30px;
    transition: color 0.3s;
}

.btn-back:hover {
    color: var(--accent-cyan);
}

/* Grilla Principal */
.product-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

/* Galería de Fotos (Izquierda) */
.product-gallery-container {
    position: sticky;
    top: 110px; /* Se queda quieta mientras escaneas los datos técnicos a la derecha */
}

.main-product-img {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.main-product-img img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.1));
}

.product-thumbnails {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.thumb {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    object-fit: contain;
    transition: all 0.3s ease;
}

.thumb:hover, .thumb.active {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* Información del Producto (Derecha) */
.product-info-container h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: var(--gris);
    line-height: 1.2;
    margin: 10px 0 20px;
}

.product-info-container h1 span {
    color: var(--accent-cyan);
    font-size: 28px;
    font-weight: 600;
}

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    font-weight: 700;
}

.product-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

/* Bloques Técnicos */
.specs-block {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-cyan);
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.specs-block h3, .size-selector-container h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: var(--gris);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.specs-block ul {
    list-style: none;
}

.specs-block li {
    margin-bottom: 10px;
    font-size: 15px;
    color: #444;
}

/* Cuadrícula de Datos Cortos */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.spec-card {
    background: #fff;
    padding: 15px 20px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.05);
}

.spec-card h4 {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.spec-card p {
    font-size: 16px;
    font-weight: 500;
    color: var(--gris);
}

/* Selector de Medidas */
.size-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.size-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
    color: var(--gris);
}

.size-btn.active {
    background: var(--gris);
    color: var(--white) !important; /* Forzamos a que el texto pase a blanco */
    border-color: var(--gris);
}

.custom-size-notice {
    font-size: 13px;
    font-style: italic;
    color: var(--accent-cyan);
    margin-top: 12px;
    font-weight: 500;
}

/* Botón Cotizar */
.product-actions {
    margin-top: 40px;
}

.btn-primary-product {
    display: block;
    text-align: center;
    background: var(--accent-cyan);
    color: var(--white);
    padding: 18px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 10px 20px rgba(255, 78, 3, 0.2);
}

.btn-primary-product:hover {
    transform: translateY(-3px);
    background-color: #e04400; /* Naranja un toque más oscuro al hover */
}

/* RESPONSIVE RESPONSADO */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: 1fr; /* Una sola columna en tablets y móviles */
        gap: 40px;
    }
    
    .product-gallery-container {
        position: relative; /* Desactivamos el sticky en pantallas chicas */
        top: 0;
    }
    
    .product-info-container h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .specs-grid, .size-options {
        grid-template-columns: 1fr; /* Todo en filita única en celulares chicos */
    }
}



/* ==========================================================================
   SECCIÓN PRODUCTOS RELACIONADOS (MINIATURAS INFERIORES)
   ========================================================================== */

.related-products-section {
    background-color: white; /* Fondo claro para contrastar con el footer y el main */
    padding: 80px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.related-products-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    color: #202321; /* El gris oscuro de tu marca */
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 40px;
    position: relative;
}

/* Grilla Responsiva Automatizada y Perfectamente Centrada */
.related-grid {
    display: grid;
    /* CAMBIO CLAVE: Define columnas que se adaptan solas según el tamaño máximo de las tarjetas */
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px)); 
    gap: 25px;
    justify-content: center; /* Centra las columnas activas en el espacio total */
    width: 100%;
    margin: 0 auto; /* Centrado preventivo del bloque envoltura */
}

/* Tarjeta Cliqueable Completa */
.related-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}

/* Caja de la foto controlada */
.related-img-box {
    width: 100%;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.related-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Evita cualquier tipo de deformación en el acero */
    transition: transform 0.3s ease;
}

.related-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: #202321;
    margin: 10px 0 5px 0;
}

.related-link {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-cyan); /* Tu naranja/cian de acento */
    margin-top: auto; /* Empuja el enlace siempre al fondo de la tarjeta */
    transition: color 0.3s;
}

/* --- EFECTOS HOVER PREMIUM --- */
.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.1);
}

.related-card:hover .related-img-box img {
    transform: scale(1.04); /* Micro-interacción fluida en la heladera */
}

/* --- MEDIA QUERIES PARA RESPONSIVE --- */
@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
        gap: 20px;
    }
}

@media (max-width: 560px) {
    .related-grid {
        grid-template-columns: 1fr; /* 1 columna en celulares */
        gap: 15px;
    }
    .related-products-section {
        padding: 50px 0;
    }
}



/* ==========================================================================
   ESTADOS BASE DE ANIMACIÓN (OCULTO)
   ========================================================================== */
.fade-scroll-init {
    opacity: 0;
    transform: translateY(30px); /* Arrancan 30px más abajo */
    transition: opacity 0.8s cubic-bezier(0.215, 0.610, 0.355, 1), 
                transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
    will-change: opacity, transform; /* Alerta al navegador para aceleración GPU */
}

/* Efecto especial de escala suave para el contenedor de productos del Hero */
.hero-product-container.fade-scroll-init {
    transform: translateY(30px) scale(0.96);
}

/* ==========================================================================
   ESTADO ACTIVO (CUANDO ENTRA EN PANTALLA)
   ========================================================================== */
.fade-scroll-init.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ==========================================================================
   EFECTO ESCALONADO (DELAY) PARA LAS TARJETAS DE NUESTRA LÍNEA
   ========================================================================== */
/* Hace que las 6 tarjetas aparezcan secuencialmente de izquierda a derecha */
.categories-grid .category-card:nth-child(1) { transition-delay: 0.0s; }
.categories-grid .category-card:nth-child(2) { transition-delay: 0.1s; }
.categories-grid .category-card:nth-child(3) { transition-delay: 0.2s; }
.categories-grid .category-card:nth-child(4) { transition-delay: 0.3s; }
.categories-grid .category-card:nth-child(5) { transition-delay: 0.4s; }
.categories-grid .category-card:nth-child(6) { transition-delay: 0.5s; }