﻿/* ========================================
   BUSPI - Estilos principales
   ======================================== */

/* Variables de color y configuración */

:root {
    --buspi-blue: #0E5BD6; /* Buspi / Sabio: confianza y tecnología */
    --buspi-red: #E53935; /* Buspi / Hombre común: energía y acción */
    --wise-navy: #0B2A4A; /* Sabio: profundidad y conocimiento */
    --wise-light: #4DA3FF; /* Sabio: claridad/innovación */
    --metal-gray: #9099A1; /* Mecánico/precisión */
    --common-orange: #FF6F00; /* Hombre común: entusiasmo y cercanía */
    --bg-soft: #F7F9FC; /* Fondo suave */
    --text-dark: #12161C;
    --white: #FFFFFF;
    --speed-gradient: linear-gradient(90deg, var(--buspi-red), var(--buspi-blue));
}

/*.principal::before {
    content: '';
    position: absolute;
    top: 1;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--speed-gradient);
}*/

/* Reset y configuración base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-top: 0.6rem;
}

/* ========================================
   NAVEGACIÓN - nabvar
   ======================================== */
.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--buspi-blue) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--buspi-blue) !important;
}

.navbar-nav::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--speed-gradient);
}


/* ========================================
   SECCIÓN General - General Section
   ======================================== */
.general {
    padding: 80px 0;
    background-color: var(--white);
}

.general-content {
    position: relative;
    z-index: 2;
}

/* ========================================
   BOTONES
   ======================================== */

.btn-primary {
    background-color: var(--buspi-blue);
    border-color: var(--buspi-blue);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--wise-navy);
    border-color: var(--wise-navy);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 91, 214, 0.3);
}

.btn-outline-primary {
    color: var(--buspi-blue);
    border-color: var(--buspi-blue);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--buspi-blue);
    border-color: var(--buspi-blue);
}

.btn-danger {
    background-color: var(--buspi-red);
    border-color: var(--buspi-red);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger:hover, .btn-danger:focus {
    background-color: #c62828;
    border-color: #c62828;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

/* ========================================
   SECCIÓN buscar - buscar Section
   ======================================== */
.buscar {
    background: linear-gradient(135deg, var(--bg-soft) 0%, #e8f2ff 100%);
    position: relative;
    padding: 120px 0 100px;
    overflow: hidden;
}

.buscar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--speed-gradient);
}

.buscar-bg-svg {
    position: absolute;
    right: -200px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.1;
    z-index: 1;
}

.buscar-content {
    position: relative;
    z-index: 2;
}

.buscar h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.buscar-subtitle {
    font-size: 1.25rem;
    color: var(--metal-gray);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.search-box {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(14, 91, 214, 0.1);
    border: 1px solid rgba(14, 91, 214, 0.1);
}

/* ========================================
   FORMULARIOS
   ======================================== */
.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--buspi-blue);
    box-shadow: 0 0 0 0.25rem rgba(14, 91, 214, 0.1);
}

/* ========================================
   SECCIÓN BENEFICIOS - Benefits Section
   ======================================== */
.benefits {
    padding: 80px 0;
    background-color: var(--white);
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(144, 153, 161, 0.1);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(14, 91, 214, 0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--buspi-blue), var(--wise-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

/* ========================================
   SECCIÓN REFACCIONARIAS - Refaccionarias Section
   ======================================== */
.refaccionarias-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-soft), #fff5f5);
    position: relative;
}

.refaccionarias-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--speed-gradient);
}

.highlight-box {
    background: var(--white);
    border-left: 5px solid var(--buspi-red);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(229, 57, 53, 0.1);
}

/* ========================================
   CÓMO FUNCIONA - How it works
   ======================================== */
.how-it-works {
    padding: 80px 0;
    background-color: var(--white);
}

.step-card {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--speed-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-arrow {
    position: absolute;
    top: 30px;
    right: -20px;
    color: var(--metal-gray);
    font-size: 2rem;
    z-index: 1;
}

/* ========================================
   SERVICIOS - Services Section
   ======================================== */
.services {
    padding: 80px 0;
    background-color: var(--bg-soft);
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(144, 153, 161, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(14, 91, 214, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--common-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
}

/* ========================================
   ARTÍCULOS - Articles Section
   ======================================== */
.articles {
    padding: 80px 0;
    background-color: var(--white);
}

.article-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(144, 153, 161, 0.1);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(14, 91, 214, 0.15);
}

.article-card-body {
    padding: 1.5rem;
}

.badge-category {
    background-color: var(--common-orange);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* ========================================
   PLANES - Plans Section
   ======================================== */
.plans {
    padding: 80px 0;
    background-color: var(--bg-soft);
}

.plan-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /*height: 100%;*/
    border: 2px solid transparent;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(14, 91, 214, 0.15);
    border-color: var(--buspi-blue);
}

.plan-featured {
    border-color: var(--buspi-red);
    position: relative;
}

.plan-featured::before {
    content: '¡Vamos al éxito!';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--buspi-red);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ========================================
   TESTIMONIOS - Testimonials
   ======================================== */
.testimonials {
    padding: 80px 0;
    background-color: var(--white);
}

.testimonial-card {
    background: var(--bg-soft);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border-left: 5px solid var(--buspi-blue);
    height: 100%;
}

.testimonial-stars {
    color: var(--common-orange);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* ========================================
   FAQ
   ======================================== */
.faq {
    padding: 80px 0;
    background-color: var(--bg-soft);
}

.accordion-button {
    font-weight: 600;
    color: var(--text-dark);
    background-color: var(--white);
    border: none;
    border-radius: 10px !important;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: var(--buspi-blue);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(14, 91, 214, 0.25);
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ========================================
   CTA FINAL
   ======================================== */
.cta-final {
    padding: 80px 0;
    background: var(--speed-gradient);
    color: var(--white);
    text-align: center;
}

.cta-final h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.btn-light {
    background-color: var(--white);
    color: var(--buspi-blue);
    border: none;
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: var(--bg-soft);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer h5 {
    color: var(--wise-light);
    margin-bottom: 1.5rem;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--wise-light);
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--metal-gray);
    color: var(--white);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--buspi-blue);
    transform: translateY(-2px);
}

/* ========================================
   DISEÑO RESPONSIVE - Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .buscar h1 {
        font-size: 2.5rem;
    }

    .buscar-subtitle {
        font-size: 1.1rem;
    }

    .search-box {
        padding: 1.5rem;
    }

    .step-arrow {
        display: none;
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
    }
}

@media (max-width: 576px) {
    .buscar {
        padding: 80px 0 60px;
    }

    .buscar h1 {
        font-size: 2rem;
    }

    .benefits, .refaccionarias-section, .how-it-works, .services, .articles, .plans, .testimonials, .faq, .cta-final {
        padding: 60px 0;
    }
}

/* ========================================
   ACCESIBILIDAD - Focus and accessibility
   ======================================== */
.btn:focus, .form-control:focus, .form-select:focus {
    outline: 2px solid var(--buspi-blue);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   UTILIDADES Y ESTADOS
   ======================================== */
.text-primary {
    color: var(--buspi-blue) !important;
}

.text-danger {
    color: var(--buspi-red) !important;
}

.bg-primary {
    background-color: var(--buspi-blue) !important;
}

.bg-danger {
    background-color: var(--buspi-red) !important;
}

/* Estados de validación */
.is-invalid {
    border-color: var(--buspi-red);
    box-shadow: 0 0 0 0.25rem rgba(229, 57, 53, 0.1);
}

.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.1);
}

/* ========================================
   ANIMACIONES Y EFECTOS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efectos de pulso para CTAs importantes */
@keyframes pulse-cta {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(229, 57, 53, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0);
    }
}

.btn-danger.pulse {
    animation: pulse-cta 2s infinite;
}

/* ========================================
   MEJORAS DE RENDIMIENTO
   ======================================== */
/* Optimización para scroll suave */
html {
    scroll-behavior: smooth;
}

/* Optimización de transforms para mejor rendimiento */
.benefit-card,
.service-card,
.article-card,
.plan-card,
.testimonial-card {
    will-change: transform;
}

/* Lazy loading placeholder */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* ========================================
   ESTADOS DE CARGA
   ======================================== */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ========================================
   COMPONENTES ESPECÍFICOS
   ======================================== */
/* Badge personalizado */
.badge-buspi {
    background-color: var(--common-orange);
    color: var(--white);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* Divisor decorativo */
.section-divider {
    height: 3px;
    background: var(--speed-gradient);
    border: none;
    margin: 0;
}

/* Card con efecto glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}

/* ========================================
   MODO OSCURO (Preparación futura)
   ======================================== */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        --bg-soft: #1a1a1a;
        --text-dark: #ffffff;
        --white: #2d2d2d;
    }
}

/* ========================================
   IMPRESIÓN
   ======================================== */
@media print {
    .navbar,
    .btn,
    .social-icons,
    .buscar-bg-svg {
        display: none !important;
    }

    .buscar {
        padding: 2rem 0;
        background: white !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black !important;
        background: white !important;
    }
}

.btn-danger {
    background-color: var(--buspi-red);
    border-color: var(--buspi-red);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger:hover,
.btn-danger:focus {
    background-color: #c62828;
    border-color: #c62828;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.btn-light {
    background-color: var(--white);
    color: var(--buspi-blue);
    border: none;
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: var(--bg-soft);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

@media (max-width: 767px) {
    .hidden-xs {
        display: none !important;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .hidden-sm {
        display: none !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .hidden-md {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .hidden-lg {
        display: none !important;
    }
}


/* ========================================
   Redes sociales fijas
   ======================================== */
.social__links__fixed {
    position: fixed;
    right: 0;
    bottom: 7rem;
    margin: auto;
    max-height: 240px;
    border-radius: .25rem;
    z-index: 99;    
}