/* =========================================
   1. VARIABLES Y BASE (Paleta Corporativa)
   ========================================= */
:root {
    --primary-color: #1A2B48; /* Azul Corporativo */
    --secondary-color: #4A4E69; /* Gris Azulado */
    --light-bg: #F5F5F5; /* Blanco Humo */
    --accent-color: #D72638; /* Rojo Acento/Conversión */
    --text-dark: #222222;
    --text-light: #FFFFFF;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    --transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   2. UTILIDADES Y LAYOUT
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section { padding: 100px 0; }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--primary-color); }
.bg-white { background-color: #FFFFFF; }
.bg-accent { background-color: var(--accent-color); color: var(--text-light); }
.text-center { text-align: center; }
.text-light { color: var(--text-light) !important; }
.mt-4 { margin-top: 2rem; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.section-header p {
    font-size: 1.1rem;
    color: var(--secondary-color);
}
.bg-dark .section-header h2 { color: var(--text-light); }
.bg-dark .section-header p { color: #A0A4B8; }

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px; /* Corte más moderno/automotriz */
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
    border: 2px solid transparent;
}
.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-light);
}
.btn-primary:hover {
    background-color: #B81D2D;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(215, 38, 56, 0.3);
}
.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}
.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}
.btn-white {
    background-color: var(--text-light);
    color: var(--accent-color);
}
.btn-white:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}
.btn-sm { padding: 10px 20px; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* =========================================
   NAVBAR (Píldora + Transparencia)
   ========================================= */
#hybrid-nav {
    position: fixed;
    top: 20px; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1050px; 
    padding: 15px 30px;
    border-radius: 50px; /* Aquí le damos la forma redonda */
    z-index: 1000;
    background: transparent; 
    transition: all 0.4s ease;
}

/* Estado Scroll: Se activa el fondo azul */
#hybrid-nav.scrolled {
    background-color: #263E69; /* Azul corporativo al 95% */
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 10px 30px; 
}

#hybrid-nav .logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 1px;
}
#hybrid-nav .logo span { color: var(--accent-color); }

#hybrid-nav .nav-links {
    list-style: none;
    display: flex; 
    gap: 25px;
}

#hybrid-nav .nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    position: relative;
    transition: color 0.3s ease;
}

#hybrid-nav .nav-links a::after {
    content: ''; 
    position: absolute;
    width: 0; 
    height: 2px;
    bottom: -5px; 
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

#hybrid-nav .nav-links a:hover::after { width: 100%; }
#hybrid-nav .nav-links a:hover { color: var(--accent-color); }

#hybrid-nav .menu-toggle { 
    display: none; 
    background: none; 
    border: none; 
    color: var(--text-light); 
    font-size: 1.5rem; 
    cursor: pointer; 
}

/* Contenedor del logo para alinear imagen y texto */
#hybrid-nav .logo {
    display: flex;
    align-items: center;
    gap: 12px; /* Espacio entre la imagen y el texto */
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 1px;
}

/* Control del tamaño de la imagen */
#hybrid-nav .logo-img {
    height: 40px; /* Ajusta este valor según prefieras el tamaño del logo */
    width: auto;  /* Mantiene la proporción original */
    object-fit: contain;
}

/* Opcional: Si quieres que el logo se haga un poquito más pequeño al hacer scroll */
#hybrid-nav.scrolled .logo-img {
    height: 35px;
    transition: all 0.4s ease;
}
/* =========================================
   4. HERO SECTION (Parallax)
   ========================================= */
.hero {
    position: relative;
    height: 100vh; min-height: 600px;
    display: flex; align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 120%; /* Extra height for parallax */
    background-size: cover; background-position: center;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(26,43,72,0.9) 0%, rgba(26,43,72,0.4) 100%);
    z-index: 2;
}
.hero-content {
    position: relative; z-index: 3;
    width: 90%; max-width: 1200px; margin: 0 auto;
    color: var(--text-light);
}
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem; font-weight: 800; line-height: 1.1;
    margin-bottom: 20px;
}
.hero-content h1 span { color: var(--accent-color); }
.hero-content p {
    font-size: 1.2rem; max-width: 600px; margin-bottom: 40px;
}
.hero-buttons { display: flex; gap: 20px; }

/* =========================================
   5. VALORES & SERVICIOS (Grid)
   ========================================= */
.grid-valores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.valor-card {
    background: #FFFFFF;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.valor-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--accent-color);
}
.valor-card i {
    font-size: 2.5rem; color: var(--accent-color); margin-bottom: 20px;
}
.valor-card h3 {
    font-family: var(--font-heading); color: var(--primary-color); margin-bottom: 10px;
}
.valor-card p { font-size: 0.95rem; color: var(--secondary-color); }

/* SECCIÓN SERVICIOS */
.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.servicio-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px 30px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex; /* Añadido para alinear el botón al final */
    flex-direction: column;
    align-items: flex-start; /* Alinea el contenido a la izquierda */
}
.servicio-card:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.05);
}
.servicio-card i { font-size: 2rem; color: var(--accent-color); margin-bottom: 20px; transition: var(--transition); }
.servicio-card:hover i { color: var(--text-light); }
.servicio-card h4 { font-family: var(--font-heading); color: var(--text-light); font-size: 1.2rem; margin-bottom: 15px; }
.servicio-card p { color: #A0A4B8; font-size: 0.9rem; transition: var(--transition); margin-bottom: 20px; }
.servicio-card:hover p { color: rgba(255,255,255,0.9); }

/* NUEVO: Botón de WhatsApp en Servicios */
.btn-link {
    display: inline-block;
    background-color: var(--accent-color);
    color: #111;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}

/* Cambio visual del botón cuando la TARJETA tiene hover */
.servicio-card:hover .btn-link {
    background-color: #FFF; /* El botón se vuelve blanco cuando la tarjeta es naranja */
    color: var(--accent-color);
}

/* Efecto hover directo sobre el botón */
.btn-link:hover {
    background-color: #25D366 !important; /* Verde WhatsApp */
    color: #FFF !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* =========================================
   6. CARRUSEL DE VEHÍCULOS
   ========================================= */
.carousel-container {
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.carousel-track {
    display: flex;
    gap: 30px;
    overflow: hidden; /* Cambiamos auto por hidden */
    padding: 20px 0;
    transition: transform 0.5s ease-in-out; /* Para que el movimiento sea fluido */
    width: 100%;
}
.carousel-track::-webkit-scrollbar { display: none; }
.car-card {
    min-width: 350px; background: #FFF; border-radius: 8px;
    overflow: hidden; scroll-snap-align: start;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.car-img { width: 100%; height: 350px; overflow: hidden; }
.car-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.car-card:hover .car-img img { transform: scale(1.1); }
.car-info { padding: 25px; text-align: center; }
.car-info h3 { font-family: var(--font-heading); color: var(--primary-color); font-size: 1.3rem; margin-bottom: 5px; }
.car-specs { font-size: 0.9rem; color: var(--secondary-color); margin-bottom: 20px; }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: var(--primary-color); color: #FFF;
    border: none; width: 50px; height: 50px; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; z-index: 10; transition: var(--transition);
}
.carousel-btn:hover { background: var(--accent-color); }
.carousel-btn.prev { left: -25px; }
.carousel-btn.next { right: -25px; }

/* =========================================
   7. CONTACTO Y FORMULARIO MODERNO
   ========================================= */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.contact-info h2 { font-family: var(--font-heading); font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }
.contact-info p { color: var(--secondary-color); margin-bottom: 40px; font-size: 1.1rem; }
.info-list-modern { list-style: none; }
.info-list-modern li { display: flex; align-items: flex-start; margin-bottom: 30px; gap: 20px; }
.info-list-modern i {
    font-size: 1.5rem; color: var(--accent-color);
    background: #FFF5F5; width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.info-list-modern strong { display: block; font-family: var(--font-heading); color: var(--primary-color); font-size: 1.1rem; }
.info-list-modern a, .info-list-modern span { color: var(--secondary-color); text-decoration: none; font-size: 1rem; transition: var(--transition); }
.info-list-modern a:hover { color: var(--accent-color); }

/* Formulario Estilo Lambo/Minimal */
.contact-form-wrapper {
    background: #FFFFFF; padding: 50px; border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.input-group { position: relative; margin-bottom: 35px; }
.input-group input, .input-group select {
    width: 100%; padding: 10px 0; border: none; border-bottom: 2px solid #E0E0E0;
    font-family: var(--font-body); font-size: 1rem; color: var(--text-dark);
    background: transparent; outline: none; transition: var(--transition);
}
.input-group label {
    position: absolute; top: 10px; left: 0; color: #999;
    font-size: 1rem; pointer-events: none; transition: var(--transition);
}
/* Efecto Focus en Input flotante */
.input-group input:focus, .input-group input:valid, .input-group select:focus, .input-group select:valid {
    border-bottom-color: var(--accent-color);
}
.input-group input:focus ~ label, .input-group input:valid ~ label, .input-group select:focus ~ label, .input-group select:valid ~ label {
    top: -20px; font-size: 0.8rem; color: var(--accent-color); font-weight: 700;
}

/* =========================================
   8. FOOTER
   ========================================= */
.footer {
    background: #111; /* EL FONDO NEGRO ESTÁ DE VUELTA */
    padding: 40px 0;
    color: #777; /* Texto de derechos reservados */
}

/* Contenedor del logo en footer (imagen + texto) */
.logo-footer {
    display: flex;
    flex-direction: column; /* Imagen arriba, texto abajo */
    align-items: center; /* Centrado horizontal */
    gap: 10px; /* Espacio entre imagen y texto */
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #FFF; /* Texto del logo en blanco */
    font-weight: 800;
    margin-bottom: 20px;
}

.logo-footer span {
    color: var(--accent-color);
}

/* Ajuste de la imagen en el footer */
.logo-footer-img {
    height: 60px; /* Tamaño del logo */
    width: auto;
    object-fit: contain;
}

/* =========================================
   9. ANIMACIONES (Clases JS)
   ========================================= */
.reveal { opacity: 0; transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; }
.fade-up { transform: translateY(50px); }
.fade-up.active { transform: translateY(0); }
.slide-right { transform: translateX(-50px); }
.slide-right.active { transform: translateX(0); }
.slide-left { transform: translateX(50px); }
.slide-left.active { transform: translateX(0); }
.scale-in { transform: scale(0.9); }
.scale-in.active { transform: scale(1); }

/* =========================================
   10. MEDIA QUERIES (Responsividad)
   ========================================= */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Navbar móvil */
    #hybrid-nav {
        padding: 12px 24px;
        border-radius: 30px;
        top: 10px;
    }
    
    #hybrid-nav .menu-toggle {
        display: block;
    }
    
    #hybrid-nav .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #263E69; /* Azul corporativo */
        padding: 20px;
        border-radius: 20px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        text-align: center;
        gap: 15px;
    }
    
    #hybrid-nav .nav-links.active {
        display: flex;
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Contacto */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    /* Carrusel móvil */
    .car-card {
        min-width: 280px;
    }
    
    .car-img {
        height: 250px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: -10px;
    }
    
    .carousel-btn.next {
        right: -10px;
    }
}

