/* ==========================================================================
   TOPSPIN STORE - COMPONENTE: HERO (ALINEACIÓN EXACTA 120REM V2.5)
   ========================================================================== */

/* ==========================================================================
   1. HERO PRINCIPAL (PORTADA / INDEX)
   ========================================================================== */
.hero {   
    position: relative;   
    height: 40vh;   
    min-height: 33rem;   
    display: flex;   
    align-items: center;   
    background-color: var(--bg-dark);   
    background-size: cover;   
    background-position: center;   
    overflow: hidden;   
    width: 100%;  
    padding-top: 12rem; /* EMPUJA EL TEXTO DEBAJO DEL MENÚ FIJO */  
}  
  
.index-hero {  
    min-height: 80vh;  
    background-attachment: fixed;  
}  
  
.hero-overlay {  
    position: absolute;  
    inset: 0;  
    background: linear-gradient(to right, rgba(var(--bg-dark-rgb), 0.85) 0%, rgba(var(--bg-dark-rgb), 0) 70%);  
    z-index: 1;  
}  
  
/* Contenedor Maestro: Alineación exacta al milímetro con el resto de la web */  
.hero-container {  
    max-width: 120rem;  
    margin: 0 auto;  
    padding: 0 2rem;  
    width: 100%;  
    position: relative;  
    z-index: 2;  
}  
  
.hero-content {  
    max-width: 70rem;  
}  
  
.hero-title {  
    font-size: 4.4rem;  
    font-weight: 900;  
    line-height: 1.15;  
    margin-bottom: 1.5rem;  
    color: var(--text-light);  
    text-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.9);  
    letter-spacing: 0.05rem;  
    opacity: 0;  
    will-change: transform, opacity; /* GPU Aceleración */
    animation: fadeInUp 0.8s ease-out forwards;  
    animation-delay: 0.2s;  
}  
  
.text-accent {  
    color: var(--gold-primary);  
}  
  
.hero-subtitle {  
    font-size: 1.6rem;   
    font-weight: 700;  
    line-height: 1.6;  
    color: var(--text-gray);  
    margin-bottom: 2.5rem;  
    border-left: 0.3rem solid var(--gold-primary);  
    padding-left: 1.6rem;  
    text-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.8);  
    opacity: 0;  
    will-change: transform, opacity;
    animation: fadeInUp 0.8s ease-out forwards;  
    animation-delay: 0.5s;  
}  
  
.hero-subtitle strong {  
    font-size: 1.8rem;   
    color: var(--text-light);  
    font-weight: 900;  
}  
  
.hero-buttons {  
    display: flex;  
    gap: 1.6rem;  
    align-items: center;  
    opacity: 0;  
    will-change: transform, opacity;
    animation: fadeInUp 0.8s ease-out forwards;  
    animation-delay: 0.8s;  
}  
  
/* ==========================================================================
   2. HEROES SECUNDARIOS (CATÁLOGOS Y HERRAMIENTAS)
   ========================================================================== */
.hero.category-hero {   
    height: 40vh;   
    min-height: 30rem; /* Más altura para revelar el arte de fondo */   
    background-position: right center;   
}  
  
.category-hero .hero-title {  
    font-size: 3.2rem;  
    margin-bottom: 0.8rem;  
}  
  
.category-hero .hero-subtitle {  
    font-size: 1.35rem;  
    margin-bottom: 0;  
    padding-left: 1.2rem;  
}  
  
/* ==========================================================================
   3. FONDOS ESPECÍFICOS DE CADA CATEGORÍA
   ========================================================================== */
.hero-maderas {   
    background-image: url('../images/hero/hero-maderas.jpg');   
    background-position: right center;  
}  
.hero-gomas { background-image: url('../images/hero/hero-gomas.jpg'); }  
.hero-cuidado { background-image: url('../images/hero/hero-cuidado.jpg'); }  
.hero-insumos { background-image: url('../images/hero/hero-insumos.jpg'); }  
.hero-ranking { background-image: url('../images/hero/hero-ranking.jpg'); }  
.hero-comparador { background-image: url('../images/hero/hero-comparador.jpg'); }  
.hero-reserva { background-image: url('../images/hero/hero-reserva.jpg'); }  
  
/* ==========================================================================   
   ANIMACIONES DE ENTRADA (FADE IN UP)   
   ========================================================================== */   
@keyframes fadeInUp {  
    0% {  
        opacity: 0;  
        transform: translateY(3rem);  
    }  
    100% {  
        opacity: 1;  
        transform: translateY(0);  
    }  
}  
  
/* ==========================================================================
   4. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 768px) {  
    .hero {  
        height: auto;  
        min-height: auto;  
        padding: 4rem 0 4.5rem 0;  
    }  
  
    .hero-title {  
        font-size: 3rem;  
        margin-bottom: 1rem;  
    }  
  
    .hero-subtitle {  
        font-size: 1.35rem;  
        margin-bottom: 2rem;  
    }  
  
    .category-hero .hero-title {  
        font-size: 2.4rem;  
    }  
  
    .hero-buttons {  
        display: grid;  
        grid-template-columns: 1fr 1fr;  
        gap: 1rem;  
        width: 100%;  
    }  
}