/* Estilos generales con la nueva paleta */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #171717 !important;
}

/* Fuerza el color del enlace activo */
.navbar-nav .nav-link.active {
    color: #4CA59B !important; /* Usa !important solo si Bootstrap lo bloquea */
    font-weight: bold; /* Opcional: para que resalte más */
}


.navbar-brand i {
    color: #4CA59B;
}

.nav-link {
    font-weight: 600;
    color: #171717 !important;
    margin: 0 0.25rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #4CA59B !important;
}

/* Botones personalizados con los nuevos colores */
.btn-primary-custom {
    background-color: #4CA59B !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 0.6rem 1.8rem !important;
    border-radius: 40px !important;
    transition: background 0.2s !important;
}

.btn-primary-custom:hover {
    background-color: #009688;
    color: white;
}

.btn-outline-custom {
    border: 2px solid #4CA59B;
    color: #4CA59B;
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    border-radius: 40px;
    transition: all 0.2s;
}

.btn-outline-custom:hover {
    background-color: #4CA59B;
    color: white;
}

/* Títulos */
.section-title {
    font-weight: 700;
    color: #171717;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 60px;
    height: 4px;
    background-color: #4CA59B;
    border-radius: 4px;
}

.bg-light-gray {
    background-color: #f1f4f8;
}

/* Tarjetas y elementos */
.card-hover {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.icon-box {
    background-color: #eef2f7;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #4CA59B;
    margin-bottom: 1rem;
}

.step-circle {
    background-color: #171717;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Hero */
.hero-inner {
    background: linear-gradient(135deg, #171717 0%, #2a2a2a 100%);
    padding: 4rem 0;
    color: white;
    border-radius: 0 0 40px 40px;
}

.hero-inner h1 {
    font-weight: 700;
}

.hero-inner .lead {
    opacity: 0.9;
}

.hero-inner .badge.bg-danger {
    background-color: #4CA59B !important;
}

/* Footer con los nuevos colores */
footer {
    background-color: #171717 !important;
    border-top: 4px solid #4CA59B;
}

footer h5,
footer h6 {
    color: #4CA59B;
}

footer .text-light-emphasis {
    color: #b0b0b0 !important;
}

footer .footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.2s;
}

footer .footer-links a:hover {
    color: #4CA59B;
}

footer hr {
    border-color: #2a2a2a !important;
}

/* Placeholders de imagen */
.img-placeholder {
    background-image: url("../img/fmcsa-logo.png");
    background-repeat: no-repeat;
    background-position: center 15px;
    background-size: 55px;
    padding-top: 80px;
}


.img-doortodoor {
    background-image: url('../img/transport-001.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 280px;
    border-radius: 24px;
    border: 1px solid rgba(76, 165, 155, 0.1);

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    z-index: 2;
    overflow: hidden;
}

.img-placeholder-sm {
    min-height: 160px;
    background-size: 48px 48px;
}

/* Breadcrumb */
.breadcrumb-seo {
    font-size: 0.85rem;
}

.breadcrumb-seo .breadcrumb-item a {
    color: #b0b0b0;
    text-decoration: none;
}

.breadcrumb-seo .breadcrumb-item.active {
    color: white;
}

/* Ajustes para CTA */
.bg-light-gray .fw-bold {
    color: #171717;
}

.bg-light-gray .btn-primary-custom {
    background-color: #009688;
}

.bg-light-gray .btn-primary-custom:hover {
    background-color: #4CA59B;
}

/* Iconos de redes en footer */
footer .text-light-emphasis i {
    color: #b0b0b0;
    transition: color 0.2s;
}

footer .text-light-emphasis i:hover {
    color: #4CA59B;
}

/* ========== MODAL ========== */
.modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: none;
    padding: 1.2rem 1.5rem 0 1.5rem;
}

.modal-body {
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    justify-content: center;
}

.modal-body iframe {
    width: 100%;
    max-width: 340px;
    height: 500px;
    border-radius: 16px;
    border: none;
}

.modal-header .btn-close {
    background-color: #eef2f7;
    border-radius: 50%;
    padding: .6rem;
    opacity: 1;
}

/* ========== BOTONES FLOTANTES ========== */
.floating-actions {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1050;
}

.floating-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.floating-btn:hover {
    transform: scale(1.08);
    color: white;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.floating-btn.call-btn {
    background-color: #4CA59B;
}

.floating-btn.whatsapp-btn {
    background-color: #25D366;
}

.floating-btn.whatsapp-btn::after,
.floating-btn.call-btn::after {
    content: '';
    position: absolute;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-ring 2s infinite;
}

.floating-btn.call-btn::after {
    background-color: rgba(76, 165, 155, 0.5);
}

.floating-btn.whatsapp-btn::after {
    background-color: rgba(37, 211, 102, 0.5);
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .floating-actions {
        right: 16px;
        bottom: 16px;
    }

    .floating-btn {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }

    .chat-bubble-box {
        width: 260px;
        right: 0;
        bottom: 66px;
    }
}

/* ========== CHAT BOT WIDGET ========== */
.chat-widget-wrap {
    position: relative;
}

.floating-btn.bot-btn {
    background-color: #171717;
}

.floating-btn.bot-btn::after {
    content: '';
    position: absolute;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    z-index: -1;
    background-color: rgba(23, 23, 23, 0.4);
    animation: pulse-ring 2s infinite;
}

.chat-bubble-box {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: 280px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    padding: 1.1rem 1.1rem 1.2rem 1.1rem;
    display: none;
    animation: chat-pop 0.25s ease;
}

.chat-bubble-box.show {
    display: block;
}

.chat-bubble-box::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 22px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.04);
}

.chat-bubble-box .chat-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.chat-bubble-box .chat-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.chat-bubble-box .chat-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CA59B, #009688);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.chat-bubble-box .chat-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #171717;
    margin-bottom: 0;
}

.chat-bubble-box .chat-status {
    font-size: 0.7rem;
    color: #4CA59B;
    font-weight: 600;
}

.chat-bubble-box .chat-status i {
    font-size: 0.5rem;
    vertical-align: middle;
}

.chat-bubble-box .chat-text {
    font-size: 0.85rem;
    color: #495057;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.chat-bubble-box .chat-quote-btn {
    background: #4CA59B;
    color: white;
    border: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.55rem 1rem;
    border-radius: 40px;
    width: 100%;
    transition: background 0.2s;
}

.chat-bubble-box .chat-quote-btn:hover {
    background: #009688;
}

@keyframes chat-pop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}