/* =======================================================
   Estilo de Hero Section Refinado y con Efectos Avanzados
   ======================================================= */

/* --- Contenedor Principal del Hero --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-top: var(--header-height);
    margin-top: calc(-1 * var(--header-height));
}

/* --- Capa de Fondo (Gradiente + Imagen con Animación) --- */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
     linear-gradient(135deg, rgba(20, 25, 30, 0.85) 0%, rgba(255, 58, 23, 0.482) 100%),
        url('/assets/images/Hero-index.png') center/cover no-repeat;
    z-index: 1;
    
    /* MEJORA 1: Efecto Ken Burns para un fondo dinámico */
    animation: kenburns 20s ease-out infinite;
}

/* --- Divisor de Forma con Curvas Suaves (SVG) --- */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -1px; /* Solapa 1px para evitar líneas finas */
    left: 0;
    width: 100%;
    height: 120px; /* Altura de la ola */
    z-index: 2;

    /* MEJORA 2: Divisor de forma de ola SVG para una transición más fluida */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z' style='fill:%23f8f9fa;'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
}

/* --- Contenido (Texto y Botón) --- */
.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    color: var(--color-white) !important;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.6);
    line-height: 1.1;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

/* --- Botón con Efecto de Brillo --- */
.hero-content .btn-hero {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    border: 2px solid var(--color-primary);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    position: relative; /* Necesario para el efecto de brillo */
    overflow: hidden; /* Oculta el brillo fuera del botón */
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.3);
}

/* MEJORA 3: Efecto de brillo al pasar el mouse */
.hero-content .btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.hero-content .btn-hero:hover::before {
    left: 100%;
}

.hero-content .btn-hero:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* --- Animaciones --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
        transform-origin: 50% 50%;
    }
    50% {
        transform: scale(1.1) translate(-5px, 5px);
        transform-origin: 20% 80%;
    }
    100% {
        transform: scale(1) translate(0, 0);
        transform-origin: 50% 50%;
    }
}

/* --- Definición de la Animación de Entrada --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-hero {
    background: linear-gradient(135deg, #ff4500 0%, #e03e00 100%);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.4);
    border: none;
    display: inline-block;
}

.btn-hero:hover {
    background: linear-gradient(135deg, #e03e00 0%, #cc3700 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 69, 0, 0.6);
    color: white;
    text-decoration: none;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6rem 0;
}

.about-section h2 {
    color: #2c3e50;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    line-height: 1.2;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff4500, #e03e00);
    border-radius: 2px;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 2rem;
}

.about-content strong {
    color: #ff4500;
    font-weight: 700;
}

.brands-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.brands-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    flex-basis: calc(33.333% - 1.5rem);
    min-height: 80px;
}

.brands-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.brand-logo {
    max-height: 40px;
    max-width: 120px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.brands-list li:hover .brand-logo {
    filter: grayscale(0%);
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

/* Snap-On Section */
.snapon-section {
    background: white;
    padding: 6rem 0;
    position: relative;
}

.snapon-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.02) 0%, rgba(224, 62, 0, 0.05) 100%);
    z-index: 1;
}

.snapon-section .container {
    position: relative;
    z-index: 2;
}

.snapon-content h2 {
    color: #2c3e50;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    line-height: 1.2;
}

.snapon-content h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff4500, #e03e00);
    border-radius: 2px;
}

.snapon-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 2rem;
}

.tools-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.tools-list li {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.tools-list li:last-child {
    border-bottom: none;
}

.tools-list li::before {
    content: '✔';
    color: #ff4500;
    margin-right: 10px;
    font-size: 1.2rem;
}



.catalog-section {
    text-align: center;
    position: relative;
}

.catalog-section img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    max-width: 100%;
    height: auto;
}

.catalog-section img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .about-section h2,
    .snapon-content h2 {
        font-size: 2.5rem;
    }

    .brands-list li {
        flex-basis: calc(50% - 1.5rem);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 0 4rem;
        min-height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .btn-hero {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .about-section,
    .snapon-section {
        padding: 4rem 0;
    }
    
    .about-section h2,
    .snapon-content h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .about-content p,
    .snapon-content p {
        font-size: 1.1rem;
    }

    .brands-list li {
        flex-basis: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .about-section h2,
    .snapon-content h2 {
        font-size: 1.8rem;
    }
    
    .catalog-section img {
        max-width: 300px;
    }
}

