/* TU PLACA BLANCA - HOJA DE ESTILO MAESTRA (V2.0)
   Optimizado: SEO, Responsive, Logo High-Visibility 
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
    --azul-deep: #0a1f33;      
    --azul-vibrante: #0096d6;  
    --blanco: #ffffff;
    --gris-claro: #f1f5f9;
    --gris-texto: #475569;
    --success: #10b981;        
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

/* 1. RESET Y BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--blanco);
    color: var(--azul-deep);
    line-height: 1.6;
}

a { text-decoration: none; transition: 0.3s; }

/* 2. NAVEGACIÓN PROFESIONAL (HEADER) */
header {
    background: var(--azul-deep);
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 3px solid var(--azul-vibrante);
}

.navbar {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    min-height: 100px; /* Espacio generoso para el logo */
}

/* LOGO - Arreglado para que se vea imponente */
.logo-nav {
    height: 80px; /* Tamaño aumentado */
    width: auto;
    display: block;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover { color: var(--azul-vibrante); }

/* Botón destacado en el menú */
.btn-cta-nav {
    background: var(--azul-vibrante);
    padding: 12px 20px;
    border-radius: var(--radius);
    color: white !important;
}

.btn-cta-nav:hover {
    background: white !important;
    color: var(--azul-deep) !important;
}

/* 3. HERO SECTION */
.hero {
    background: linear-gradient(rgba(10, 31, 51, 0.85), rgba(10, 31, 51, 0.85)), 
                url('https://images.unsplash.com/photo-1559416523-140ddc3d238c?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 5%;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight { color: var(--azul-vibrante); }

/* 4. CONTENEDORES Y GRIDS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5%;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--azul-deep);
    margin-bottom: 15px;
}

.inventario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* 5. CARDS DE VEHÍCULOS (Venta y Crédito) */
.card-carro {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow);
}

.card-carro:hover { 
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body { padding: 25px; }

.precio {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--azul-deep);
    margin: 10px 0;
}

/* 6. RESPONSIVE DINÁMICO (SEO & MOBILE) */

/* Menu Móvil Icono */
.mobile-menu-icon {
    display: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 992px) {
    .mobile-menu-icon { display: block; }

    .navbar { min-height: 80px; }
    .logo-nav { height: 60px; }

    .nav-links {
        display: none; /* Controlado por JS */
        flex-direction: column;
        position: absolute;
        top: 83px;
        left: 0;
        width: 100%;
        background: var(--azul-deep);
        padding: 40px 0;
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li { width: 100%; }
    
    .hero h1 { font-size: 2.5rem; }

    .seccion-credito {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .hero { padding: 80px 5%; }
    .hero h1 { font-size: 2rem; }
    .section-title h2 { font-size: 1.8rem; }
    .logo-nav { height: 50px; }
}

/* 7. FORMULARIOS Y BOTONES */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: var(--radius);
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    transition: 0.3s;
}

.btn-primary {
    background: var(--azul-vibrante);
    color: white;
}

.btn-primary:hover {
    background: var(--azul-deep);
    box-shadow: 0 8px 20px rgba(0, 150, 214, 0.4);
}

.btn-block { width: 100%; text-align: center; }

input, select {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

/* --- ESTILOS DEL FOOTER CORREGIDOS --- */
.main-footer {
    background: var(--azul-deep);
    color: var(--blanco);
    padding: 80px 0 20px;
    margin-top: 80px;
    border-top: 4px solid var(--azul-vibrante);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
}

.footer-logo {
    height: 70px; /* Logo más visible también abajo */
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Lo vuelve blanco para fondo oscuro */
}

.footer-title {
    color: var(--azul-vibrante);
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    font-weight: 800;
}

.footer-menu { list-style: none; }
.footer-menu li { margin-bottom: 12px; }
.footer-menu a {
    color: rgba(255,255,255,0.7);
    transition: 0.3s;
}
.footer-menu a:hover { color: var(--azul-vibrante); padding-left: 5px; }

.contact-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
}

.contact-info i { color: var(--azul-vibrante); }

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--azul-vibrante);
    transform: translateY(-3px);
}

/* Aliados */
.footer-partners {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.partners-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
    margin-bottom: 25px;
}

.partners-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0.6;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo { margin: 0 auto 20px; }
    .social-links { justify-content: center; }
    .contact-info p { justify-content: center; }
}

/* AJUSTES RESPONSIVE ADICIONALES */

/* Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5%;
}
.hero-content { max-width: 900px; width: 100%; }
.badge-top {
    background: var(--azul-vibrante);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}
.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}
.btn-light { background: white; color: var(--azul-deep); }

/* Barra de Stats */
.stats-bar {
    background: var(--azul-deep);
    color: white;
    padding: 30px 0;
    border-bottom: 4px solid var(--azul-vibrante);
}
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 5%;
}

/* Capacidades Banner */
.capacidades-banner {
    margin-top: 100px;
    padding: 60px;
    background: var(--azul-deep);
    border-radius: 30px;
    color: white;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}
.capacidades-text { flex: 1; min-width: 300px; }
.capacidades-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}
.capacidades-icons i { color: var(--azul-vibrante); margin-right: 10px; }
.capacidades-form {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    color: var(--azul-deep);
}
.capacidades-form input, .capacidades-form select { margin-bottom: 15px; }

/* Testimoniales */
.testimonials { background: var(--gris-claro); padding: 80px 0; }
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}
.testimonial-card h4 { margin-top: 20px; color: var(--azul-vibrante); }

/* Ajustes Mobile Finales */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .capacidades-banner { padding: 30px; border-radius: 0; }
    .capacidades-icons { grid-template-columns: 1fr; }
}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: white;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Ajuste para móviles para que no estorbe tanto */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}

/* ESTILOS DE INVENTARIO PRO */
.precio-box {
    background: var(--gris-claro);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--azul-vibrante);
}

.precio-box .precio {
    display: block;
    color: var(--azul-deep);
    font-size: 1.6rem;
    font-weight: 800;
}

.precio-box .cuota {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--azul-vibrante);
}

/* El Ribbon (Cinta de oferta) */
.ribbon {
    position: absolute;
    top: 15px;
    right: -5px;
    background: #ff3e3e;
    color: white;
    padding: 5px 15px;
    font-weight: 800;
    font-size: 0.7rem;
    border-radius: 5px 0 0 5px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

/* LISTA DE ATRIBUTOS EMPRESARIALES */
.lista-check {
    list-style: none;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.lista-check li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.lista-check i {
    color: var(--success);
    margin-right: 10px;
    margin-top: 5px;
}

/* FAQ STYLES */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 5px solid var(--azul-vibrante);
    box-shadow: var(--shadow);
}

.faq-item h3 {
    font-size: 1.1rem;
    color: var(--azul-deep);
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--gris-texto);
}

/* RESPONSIVE FAQ */
@media (max-width: 768px) {
    .faq-item { padding: 20px; }
}

/* PRICING STYLES */
.card-pricing {
    text-align: center;
    border: 2px solid transparent;
}

.pricing-featured {
    border-color: var(--azul-vibrante) !important;
    transform: scale(1.05);
    z-index: 2;
}

.pricing-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.pricing-subtitle {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--azul-vibrante);
    font-weight: 700;
    margin-bottom: 20px;
}

.lista-check li {
    justify-content: center; /* Centra los beneficios en la tabla de precios */
}

@media (max-width: 992px) {
    .pricing-featured {
        transform: scale(1);
        margin: 20px 0;
    }
}

.nota-tecnica {
    font-size: 0.8rem;
    color: var(--gris-texto);
    margin: 15px 0;
    font-style: italic;
    min-height: 40px;
}

.info-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.info-item i {
    font-size: 3rem;
    color: var(--azul-vibrante);
    margin-bottom: 20px;
}

.info-item h4 {
    margin-bottom: 15px;
    color: var(--azul-deep);
    text-transform: uppercase;
}

.info-item p {
    font-size: 0.9rem;
    color: var(--gris-texto);
}