/* Estilos generales con la paleta establecida */
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;
}

/* Botones personalizados */
.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 - diseño renovado */
.card-premium {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.10);
}

.card-premium .card-body {
    padding: 2rem;
}

.icon-box-premium {
    background: linear-gradient(135deg, #e8f5f3 0%, #d0ece8 100%);
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #4CA59B;
    margin-bottom: 1.2rem;
}

.step-circle-premium {
    background: linear-gradient(135deg, #4CA59B, #009688);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(76, 165, 155, 0.3);
}

/* Hero con diseño diferente */
.hero-enclosed {
    background: linear-gradient(145deg, #171717 0%, #1f2a2a 50%, #171717 100%);
    padding: 5rem 0 4rem 0;
    color: white;
    border-radius: 0 0 50px 50px;
    position: relative;
    overflow: hidden;
}

.hero-enclosed::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(76, 165, 155, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-enclosed h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-enclosed .lead {
    opacity: 0.9;
    font-weight: 400;
}

.hero-enclosed .badge-premium {
    background: rgba(76, 165, 155, 0.25);
    color: #4CA59B;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(76, 165, 155, 0.3);
    backdrop-filter: blur(4px);
}

/* Feature highlight */
.feature-highlight {
    background: linear-gradient(135deg, #4CA59B, #009688);
    border-radius: 20px;
    padding: 2.5rem;
    color: white;
}

.feature-highlight .display-6 {
    font-weight: 700;
}

/* Comparativa */
.compare-card {
    border: 2px solid #eef2f7;
    border-radius: 20px;
    padding: 1.8rem;
    transition: border-color 0.3s;
    background: white;
}

.compare-card:hover {
    border-color: #4CA59B;
}

.compare-card .icon-check {
    color: #4CA59B;
    font-size: 1.2rem;
}

.compare-card .icon-close {
    color: #d32f2f;
    font-size: 1.2rem;
}

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

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

.img-placeholder-premium {
    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-secundaria {
    min-height: 280px;
    border-radius: 24px;

    background: #cbdbe9 url("../img/transport-003.webp") center/cover no-repeat;

    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    transition: transform .3s ease, box-shadow .3s ease;
}

.img-secundaria:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .18);
}

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

/* Badge con diseño nuevo */
.badge-enclosed {
    background: rgba(76, 165, 155, 0.15);
    color: #4CA59B;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-weight: 600;
    border: 1px solid rgba(76, 165, 155, 0.2);
}

/* Sección de tipos de encierro */
.enclosure-type {
    background: white;
    border-radius: 20px;
    padding: 1.8rem;
    border-left: 6px solid #4CA59B;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.enclosure-type .h4 {
    color: #171717;
    font-weight: 700;
}

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