/* ==========================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================== */
:root {
    --primary-color: #2563eb;    /* Azul Principal */
    --accent-color: #6366f1;     /* Morado / Índigo */
    --dark-color: #1e293b;       /* Gris Oscuro / Fondo */
    --light-color: #f8fafc;      /* Fondo Claro */
    --white: #ffffff;
    --text-muted: #64748b;
    --font-stack: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-color);
}

.bg-dark {
    background-color: var(--dark-color);
}

.text-white {
    color: var(--white) !important;
}

/* ==========================================
   BOTONES Y COMPONENTES REUSABLES
   ========================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark-color);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.section-title.left-align {
    text-align: left;
}
.section-title.left-align::after {
    margin: 15px 0 0 0;
}

/* ==========================================
   ENCABEZADO (HEADER) Y NAVEGACIÓN
   ========================================== */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
    line-height: 1;
}

.logo span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-color);
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.nav-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ==========================================
   SECCIÓN HÉROE (BANNER HÉROE)
   ========================================== */
/* ==========================================
   ESTILOS COMPONENTES DEL CARRUSEL (SLIDER)
   ========================================== */
.slider-section {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    overflow: hidden;
    background-color: var(--dark-color);
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.slide-content h2 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.3rem;
    max-width: 750px;
    margin: 0 auto 40px auto;
    color: #e2e8f0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hero-actions .btn {
    margin: 0 10px;
}

/* Flechas Manuales (Izquierda y Derecha) */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(30, 41, 59, 0.4);
    color: var(--white);
    border: none;
    font-size: 1.8rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 6px;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.slider-arrow:hover {
    background-color: var(--primary-color);
}

.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }

/* Indicadores de Puntos (Dots) */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .slide-content h2 { font-size: 2.2rem; }
    .slide-content p { font-size: 1.1rem; }
    .slider-arrow { padding: 10px 15px; font-size: 1.3rem; }
    .slider-arrow.prev { left: 10px; }
    .slider-arrow.next { right: 10px; }
}


.hero-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #cbd5e1;
}

.hero-actions .btn {
    margin: 0 10px;
}

/* ==========================================
   SECCIÓN PRODUCTOS
   ========================================== */
.grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Reemplaza la antigua regla .product-img-placeholder por esta configuración */
.product-img-container {
    width: 100%;
    height: 180px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #f1f5f9;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la foto perfectamente sin estirarla */
    transition: transform 0.5s ease;
}

/* Efecto visual al pasar el mouse por encima de la tarjeta */
.product-card:hover .product-img-container img {
    transform: scale(1.08);
}


.product-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.product-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================
   SECCIÓN MARCAS
   ========================================== */
.brands-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.brand-item {
    font-size: 1.5rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.brand-item:hover {
    color: var(--dark-color);
}

/* ==========================================
   DISEÑO EN DOS COLUMNAS (NOSOTROS Y CONTACTO)
   ========================================== */
.grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.mv-boxes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mv-box {
    background-color: var(--light-color);
    padding: 25px;
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
}

.mv-box h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info ul {
    list-style: none;
    margin-top: 30px;
}

.contact-info ul li {
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info ul li i {
    color: var(--accent-color);
    font-size: 1.3rem;
}

/* FORMULARIO DE TEXTO */
.contact-form-wrapper {
    background-color: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-form-wrapper h4 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-align: center;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quote-form input,
.quote-form textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #475569;
    background-color: #334155;
    color: var(--white);
    font-family: var(--font-stack);
    font-size: 0.95rem;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
    color: #94a3b8;
}

.quote-form input:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.full-width {
    width: 100%;
}

/* ==========================================
   FOOTER (PIE DE PÁGINA)
   ========================================== */
.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
    border-top: 1px solid #334155;
}

/* ==========================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ==========================================
   RESPONSIVE DESIGN (MÓVILES Y TABLETS)
   ========================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        margin: 10px 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .grid-two-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-title.left-align {
        text-align: center;
    }
    
    .section-title.left-align::after {
        margin: 15px auto 0 auto;
    }
}
/* ==========================================
   MEJORAS DE NAVEGACIÓN (HAMBURGUESA Y ACTIVO)
   ========================================== */

/* Estilo para el enlace de la sección donde estamos parados */
.main-nav a.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.main-nav a.nav-link.active {
    color: var(--accent-color) !important; /* Cambia al morado de tu ficha técnica */
    font-weight: 700;
}

/* Línea decorativa debajo del enlace activo */
.main-nav a.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

/* Ocultar elementos repetidos en escritorio */
.mobile-only-btn {
    display: none;
}

/* Botón hamburguesa oculto por defecto en pantallas grandes */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 5px;
}

/* ==========================================
   AJUSTES RESPONSIVE (CELULARES)
   ========================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row !important; /* Mantiene logo y hamburguesa alineados */
        justify-content: space-between;
        width: 90%;
    }

    .desktop-only-btn {
        display: none; /* Oculta el botón azul grande del menú normal */
    }

    .menu-toggle {
        display: block; /* Muestra el icono de barras en celulares */
    }

    /* Transforma el menú en una persiana desplegable */
    .main-nav {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
        flex-direction: column;
        text-align: center;
        border-top: 1px solid #e2e8f0;
    }

    /* Muestra el menú cuando tiene la clase 'open' */
    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        margin: 15px 0 !important;
        font-size: 1.1rem;
        display: inline-block;
    }

    .mobile-only-btn {
        display: inline-block;
        margin: 15px auto 0 auto !important;
        width: 80%;
    }
}
/* ==========================================
   EFECTO PARALLAX Y CARRUSEL INFINITO DE MARCAS
   ========================================== */

.parallax-brands-section {
    position: relative;
    width: 100%;
    /* Imagen real de un taller mecánico de fondo pesado */
    background-image: url('https://images.unsplash.com/photo-1507679799987-c73779587ccf?auto=format&fit=crop&w=1600&q=80');
    background-attachment: fixed; /* HACE QUE LA FOTO SE QUEDE FIJA ATRÁS */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Capa oscura translúcida para que resalten las letras blancas */
.parallax-overlay {
    background-color: rgba(30, 41, 59, 0.85); /* Tono #1e293b con opacidad */
    padding: 80px 0;
    width: 100%;
    height: 100%;
}

/* Oculta los elementos que se salen de la caja de la pantalla */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

/* Carrusel contenedor animado */
.marquee-track {
    display: flex;
    width: max-content;
    gap: 60px;
    /* Ejecuta la animación infinita de 20 segundos */
    animation: scrollMarquee 20s linear infinite;
}

.marquee-track .brand-item {
    font-size: 1.8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: default;
}

/* Efecto al pasar el cursor sobre los nombres de las marcas */
.marquee-track .brand-item:hover {
    color: var(--white);
    transform: scale(1.05);
}

/* PROGRAMACIÓN DE LA ANIMACIÓN DE DESPLAZAMIENTO LATERAL */
@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Desplaza exactamente la mitad del ancho para reiniciar el ciclo */
        transform: translateX(-50%);
    }
}

/* Optimización para celulares (Desactiva parallax para evitar saltos en móviles antiguos) */
@media (max-width: 768px) {
    .parallax-brands-section {
        background-attachment: scroll;
    }
    .marquee-track {
        gap: 40px;
        animation: scrollMarquee 15s linear infinite; /* Más rápido en pantallas pequeñas */
    }
    .marquee-track .brand-item {
        font-size: 1.3rem;
    }
}
/* ==========================================
   SECCIÓN DEL MAPA DE UBICACIÓN
   ========================================== */
.map-section {
    width: 100%;
    height: 450px;
    display: block;
    background-color: var(--light-color);
    line-height: 0; /* Elimina un pequeño espacio en blanco debajo del iframe */
}

.map-section iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(10%) contrast(110%); /* Ajuste tonal sutil para que combine con la web */
}
/* ==========================================
   AJUSTES PARA EL LOGOTIPO EN LA NAVEGACIÓN
   ========================================== */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px; /* Espacio entre el dibujo del logo y los textos */
    text-decoration: none;
}

.nav-logo-img {
    height: 45px; /* Altura ideal para que el menú no se vuelva muy grueso */
    width: auto;  /* Mantiene la proporción original de tu logo */
    object-fit: contain;
    display: block;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}
