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

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

.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;
}

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

.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;

}



.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;
}

/* ========== HERO CON DISEÑO DE CARRUSEL ESTÁTICO ========== */
.hero-open {
    background: #171717;
    padding: 4rem 0 4.5rem 0;
    color: white;
    border-radius: 0 0 60px 60px;
    position: relative;
    overflow: hidden;
}

.hero-open .dot-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(76, 165, 155, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
}

.hero-open .glow-open {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.08;
    z-index: 0;
}

.hero-open .glow-open:nth-child(2) {
    width: 400px;
    height: 400px;
    background: #4CA59B;
    top: -150px;
    right: -50px;
}

.hero-open .glow-open:nth-child(3) {
    width: 300px;
    height: 300px;
    background: #009688;
    bottom: -80px;
    left: -60px;
}

.hero-open .badge-open {
    background: rgba(76, 165, 155, 0.2);
    color: #4CA59B;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.75rem;
    border: 1px solid rgba(76, 165, 155, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    z-index: 2;
}

.hero-open h1 {
    font-weight: 900;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 2;
}

.hero-open .lead {
    opacity: 0.75;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

.hero-open .open-stat {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 0.8rem 1.2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-open .open-stat .number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #4CA59B;
    line-height: 1.2;
}

.hero-open .open-stat .label {
    font-size: 0.7rem;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.img-placeholder-open {
    background-image: url('../img/transport-006.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;
}

.breadcrumb-seo {
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
}

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

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

/* ========== CARDS CON DISEÑO DE BURBUJA ========== */
.bubble-card {
    background: white;
    border-radius: 30px;
    padding: 2rem 1.8rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
    height: 100%;
    text-align: center;
    position: relative;
}

.bubble-card .bubble-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5f3, #d0ece8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #4CA59B;
    margin: 0 auto 1rem auto;
    transition: transform 0.3s;
}

.bubble-card:hover .bubble-icon {
    transform: scale(1.08);
}

.bubble-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: #4CA59B;
}

.bubble-card h5 {
    font-weight: 700;
    font-size: 1.05rem;
    color: #171717;
}

.bubble-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ========== SERVICIOS CON DISEÑO DE TABLA ========== */
.service-row {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
    height: 100%;
}

.service-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(76, 165, 155, 0.08);
    border-color: #4CA59B;
}

.service-row .row-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #4CA59B, #009688);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(76, 165, 155, 0.2);
}

.service-row .row-content h5 {
    font-weight: 700;
    font-size: 1rem;
    color: #171717;
    margin-bottom: 0.1rem;
}

.service-row .row-content p {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.service-row .btn-link-row {
    color: #4CA59B;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    white-space: nowrap;
}

.service-row .btn-link-row:hover {
    color: #009688;
}

/* ========== PASOS CON DISEÑO DE CARRETERA ========== */
.road-step {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
    position: relative;
}

.road-step::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 20%;
    bottom: 20%;
    width: 4px;
    background: #4CA59B;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.road-step:hover::before {
    opacity: 1;
}

.road-step:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #4CA59B;
}

.road-step .road-num {
    font-weight: 900;
    font-size: 2rem;
    color: #4CA59B;
    opacity: 0.2;
    min-width: 44px;
    line-height: 1;
}

.road-step .road-content h6 {
    font-weight: 700;
    font-size: 0.95rem;
    color: #171717;
    margin-bottom: 0;
}

.road-step .road-content p {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* ========== VEHÍCULOS BADGES ========== */
.badge-open {
    background: white;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #eef2f7;
    transition: all 0.2s;
    color: #171717;
}

.badge-open:hover {
    border-color: #4CA59B;
    background: #f8fbfa;
    transform: translateY(-2px);
}

.badge-open i {
    color: #4CA59B;
}

/* ========== CTA CON DISEÑO DE BANNER ========== */
.cta-open {
    background: linear-gradient(135deg, #171717, #1f2a2a);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    color: white;
    border: 1px solid rgba(76, 165, 155, 0.08);
    position: relative;
    overflow: hidden;
}

.btn-cta-open {
    position: relative;
    z-index: 9999;
}

.cta-open::after {
    content: '🚛';
    position: absolute;
    font-size: 8rem;
    color: rgba(76, 165, 155, 0.04);
    bottom: -1rem;
    right: 1rem;
    opacity: 0.3;
}

.cta-open .btn-cta-open {
    background: #4CA59B;
    color: white;
    border: none;
    font-weight: 700;
    padding: 0.7rem 2rem;
    border-radius: 40px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.cta-open .btn-cta-open:hover {
    background: #009688;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(76, 165, 155, 0.25);
    color: white;
}

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

.modal-header {
    border-bottom: 1px solid #eef2f7;
    padding: 0.8rem 1.2rem;
    background: white;
}

.modal-header .modal-title {
    font-weight: 700;
    color: #171717;
    font-size: 1rem;
}

.modal-header .modal-title i {
    color: #4CA59B;
}

.modal-header .btn-close {
    background: #eef2f7;
    border-radius: 50%;
    padding: 0.4rem;
    opacity: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23171717' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
    margin-left: auto;
}

.modal-header .btn-close:hover {
    background-color: #dce3ec;
}

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

.modal-body iframe {
    width: 100%;
    max-width: 360px;
    height: 520px;
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ========== FOOTER ========== */
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;
}

footer .text-light-emphasis i {
    color: #b0b0b0;
    transition: color 0.2s;
}

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

/* 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;
}

/* ========== 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;
    }
}

/* ========== 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);
    }
}

@media (max-width: 768px) {
    .hero-open {
        padding: 3rem 0;
    }

    .hero-open .open-stat .number {
        font-size: 1.2rem;
    }

    .road-step {
        flex-direction: column;
        align-items: flex-start;
    }

    .road-step .road-num {
        font-size: 1.6rem;
        min-width: auto;
    }

    .modal-body iframe {
        max-width: 100%;
        height: 480px;
    }

    .modal-header .btn-close {
        width: 28px;
        height: 28px;
        background-size: 12px;
    }

    .modal-header {
        padding: 0.6rem 1rem;
    }

    .modal-header .modal-title {
        font-size: 0.9rem;
    }

    .service-row .row-content {
        flex: 1;
    }

    .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;
    }
}