/* Estilos Globales */
:root {
    --primary-color: #FF6600;    /* Naranja principal */
    --secondary-color: #007ACC;  /* Azul secundario complementario */
    --accent-color: #FFCC00;     /* Amarillo acentuado - complementario cálido */
    --text-color: #333333;       /* Texto oscuro */
    --light-bg: #f9f9f9;         /* Fondo claro */
    --dark-bg: #444444;          /* Fondo oscuro */
    --border-radius: 0.375rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Sobreescribir colores de Bootstrap */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #e55c00 !important;
    border-color: #e55c00 !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.btn-outline-success {
    color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.btn-outline-success:hover, .btn-outline-success:focus, .btn-outline-success:active {
    background-color: var(--secondary-color) !important;
    color: white !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

a {
    color: var(--primary-color);
}

a:hover {
    color: #e55c00;
}

/* Ajuste de color para iconos */
.fa-3x.text-primary, .fa-2x.text-primary, .fa-1x.text-primary, .fa-motorcycle, .fa-car, .fa-truck, .fa-tractor, .fa-industry {
    color: var(--primary-color) !important;
}

/* Colores en componentes específicos */
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(255, 102, 0, 0.7);
    border-radius: 50%;
    padding: 10px;
}

.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e55c00 100%) !important;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(255, 102, 0, 0.1) !important;
    color: var(--primary-color) !important;
}

.progress-bar {
    background-color: var(--primary-color) !important;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color) !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 102, 0, 0.25) !important;
}

.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Elementos que típicamente usan colores primarios */
.result-item {
    border-left: 4px solid var(--primary-color) !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.5;
    background-color: #ffffff;
}

/* Estilos de Navegación */
.navbar-brand {
    font-weight: 600;
}

.navbar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.navbar .nav-link:hover {
    color: var(--primary-color);
}

.navbar .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Estilos de Banner y Hero */
.hero-banner {
    background-color: #ffffff;
    overflow: hidden;
}

/* Estilos de Categorías */
.category-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.category-icon {
    max-width: 80px;
    height: auto;
    margin-bottom: 1rem;
}

/* Estilos de Productos */
.product-card .card {
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.product-card .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.product-card .badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* Estilos de Financiamiento */
.finance-option {
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
}

.finance-option:hover {
    background-color: rgba(13, 110, 253, 0.1) !important;
    transform: translateY(-3px);
}

.benefit-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos de la calculadora */
.calculator .card {
    transition: box-shadow 0.3s;
}

.calculator .card:hover {
    box-shadow: var(--box-shadow);
}

.progress {
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Estilos de Formularios */
.form-label {
    font-weight: 500;
}

.password-strength small i.fa-times-circle {
    color: #dc3545;
}

.password-strength small i.fa-check-circle {
    color: #198754;
}

.password-strength small.text-muted.valid {
    color: #198754 !important;
}

/* Estilos para planes de financiamiento */
.nav-pills .nav-link {
    color: var(--text-color);
    background-color: var(--light-bg);
    font-weight: 500;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
}

.how-it-works li {
    padding-left: 0.5rem;
    margin-bottom: 0.75rem;
}

.points-system .card {
    transition: transform 0.3s;
}

.points-system .card:hover {
    transform: translateY(-5px);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Estilos del Footer */
.footer {
    background: linear-gradient(135deg, #333 0%, #222 100%);
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer .social-links a {
    transition: opacity 0.3s;
}

.footer .social-links a:hover {
    opacity: 0.8;
}

/* Estilos de Utilidad */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.rounded-lg {
    border-radius: var(--border-radius) !important;
}

/* Estilos para Testimoniales */
.testimonials .card {
    transition: transform 0.3s;
}

.testimonials .card:hover {
    transform: translateY(-5px);
}

/* Estilos Responsivos */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar .d-flex {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .navbar .d-flex a {
        flex: 1;
    }
}

@media (max-width: 767.98px) {
    .hero-banner {
        text-align: center;
    }
    
    .hero-banner .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .finance-option {
        width: 100%;
        margin-right: 0 !important;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in-up {
    animation: slideInUp 0.5s ease-out;
}

/* Estilos para sección de Aliados */
.partners-section {
    background-color: var(--bs-light);
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.partner-logo {
    transition: transform 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.8;
}

.partner-logo:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
    opacity: 1;
}

/* Estilos para sección de Marcas Oficiales */
.brands-carousel {
    background-color: var(--light-bg);
    padding: 3rem 0;
}

.brand-logo {
    max-height: 100px;
    margin: 0 auto;
    display: block;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.1);
}

#brandsCarousel .carousel-control-prev-icon,
#brandsCarousel .carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
} 
/* ================================================
   BOTÓN FLOTANTE OFICIAL DE WHATSAPP
   ================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
    opacity: 0;
    transform: scale(0.8);
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    text-decoration: none;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: ripple 1.5s infinite;
    z-index: -1;
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: white;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 70px; /* Más arriba para evitar barras de navegación */
        right: 12px;  /* Más hacia la izquierda para Samsung Galaxy */
        position: fixed;
    }
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}

/* Corrección específica para pantallas muy pequeñas */
@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 80px;
        right: 10px;
    }
}
}
