/* ==========================================================================
   ESTILOS EJECUTIVOS PREMIUM - SERVICIOS PROFESIONALES ACL
   Diseño Corporativo Sobrio: Sin líneas de colores laterales, sin contadores
   ========================================================================== */

.services-split-section {
    padding: 100px 20px 110px;
    background: #f8fafc;
    position: relative;
    border-top: 1px solid #edf2f7;
}

.services-split-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.35fr;
    gap: 70px;
    align-items: flex-start;
}

/* ==========================================================================
   COLUMNA IZQUIERDA: "NUESTROS SERVICIOS" (Estilo Corporativo Ejecutivo)
   ========================================================================== */
.services-left-panel {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.services-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--primary-blue, #0a1d56);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 7px 18px;
    border-radius: 6px;
    width: fit-content;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(10, 29, 86, 0.04);
}

.services-pill-badge i {
    color: var(--accent-orange-alt, #ff5f1f);
}

.services-left-panel h2 {
    font-size: clamp(34px, 4.2vw, 46px);
    font-weight: 800;
    color: var(--primary-blue, #0a1d56);
    line-height: 1.12;
    letter-spacing: -1px;
    margin: 0;
}

.services-left-panel h2 .highlight {
    color: var(--accent-orange-alt, #ff5f1f);
    display: block;
    font-weight: 700;
}

.services-left-desc {
    color: var(--text-gray, #475569);
    font-size: 16px;
    line-height: 1.7;
    margin: 4px 0 8px;
}

/* Lista de Garantías Ejecutivas (Checkmarks en Naranjita Institucional) */
.services-trust-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.services-trust-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    font-weight: 600;
    color: #1e293b;
}

.services-trust-list li i {
    color: var(--accent-orange-alt, #ff5f1f);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Tarjeta Ejecutiva de Atención Inmediata */
.services-quick-contact {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 4px 20px rgba(10, 29, 86, 0.04);
    margin-top: 10px;
}

.services-quick-contact h4 {
    color: var(--primary-blue, #0a1d56);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
}

.services-quick-contact p {
    color: var(--text-muted, #64748b);
    font-size: 13.5px;
    margin-bottom: 16px;
    line-height: 1.45;
}

.services-quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--dark-blue, #06264f);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.25s ease;
    width: 100%;
    box-shadow: 0 4px 14px rgba(6, 38, 79, 0.2);
}

.services-quick-btn:hover {
    background: var(--accent-orange-alt, #ff5f1f);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 95, 31, 0.35);
}

/* ==========================================================================
/* ==========================================================================
   COLUMNA DERECHA: MASTER-DETAIL CONSOLE (Sin saltos de cursor ni desplazamiento)
   ========================================================================== */
.services-right-panel {
    position: relative;
    width: 100%;
}

.services-console {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: stretch;
}

/* Columna de Navegación: 4 Categorías Fijas (No cambian de altura ni se mueven) */
.services-nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-nav-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(10, 29, 86, 0.02);
    user-select: none;
}

.service-nav-card:hover,
.service-nav-card.is-active {
    border-color: var(--primary-blue, #0a1d56);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(10, 29, 86, 0.08);
    transform: translateX(4px);
}

.service-nav-card.is-active {
    border-color: var(--primary-blue, #0a1d56);
}

.nav-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f1f5f9;
    color: var(--primary-blue, #0a1d56);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
}

.service-nav-card:hover .nav-card-icon,
.service-nav-card.is-active .nav-card-icon {
    background: var(--dark-blue, #06264f);
    color: var(--accent-orange-alt, #ff5f1f);
    border-color: var(--dark-blue, #06264f);
}

.nav-card-info {
    flex: 1;
    min-width: 0;
}

.nav-card-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-blue, #0a1d56);
    margin: 0 0 3px;
    line-height: 1.25;
}

.nav-card-info p {
    font-size: 12px;
    color: var(--text-muted, #64748b);
    margin: 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-card-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #94a3b8;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.service-nav-card:hover .nav-card-arrow,
.service-nav-card.is-active .nav-card-arrow {
    background: var(--dark-blue, #06264f);
    color: var(--accent-orange-alt, #ff5f1f);
    border-color: var(--dark-blue, #06264f);
    transform: translateX(2px);
}

/* Columna Visor de Temas (Panel Dinámico a la derecha) */
.services-display-panel {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(10, 29, 86, 0.04);
    min-height: 360px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Placeholder de Respaldo Corporativo (2 arriba, 2 abajo) */
.services-display-placeholder {
    display: none;
    flex-direction: column;
    padding: 24px 22px;
    height: 100%;
    min-height: 360px;
    background: #ffffff;
    animation: fadeInPanel 0.22s ease-out;
}

.services-display-placeholder.active {
    display: flex;
}

.placeholder-top-bar {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.placeholder-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-orange-alt, #ff5f1f);
    margin-bottom: 4px;
}

.placeholder-top-bar h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-blue, #0a1d56);
    margin: 0 0 4px;
    line-height: 1.25;
}

.placeholder-top-bar p {
    font-size: 12.5px;
    color: var(--text-muted, #64748b);
    margin: 0;
    line-height: 1.45;
}

/* Grilla de 4 Pilares: 2 arriba, 2 abajo */
.placeholder-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    flex: 1;
}

.pillar-card {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 13px 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.pillar-card:hover {
    background: #ffffff;
    border-color: var(--primary-blue, #0a1d56);
    box-shadow: 0 6px 18px rgba(10, 29, 86, 0.06);
    transform: translateY(-2px);
}

.pillar-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--dark-blue, #06264f);
    color: var(--accent-orange-alt, #ff5f1f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(6, 38, 79, 0.15);
    transition: all 0.25s ease;
}

.pillar-card:hover .pillar-icon {
    background: var(--accent-orange-alt, #ff5f1f);
    color: #ffffff;
    transform: scale(1.05);
}

.pillar-info h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-blue, #0a1d56);
    margin: 0 0 3px;
    line-height: 1.3;
}

.pillar-info p {
    font-size: 11.5px;
    color: var(--text-muted, #64748b);
    margin: 0;
    line-height: 1.35;
}

/* Panel de Temas Específico */
.services-topics-panel {
    display: none;
    flex-direction: column;
    height: 100%;
    animation: fadeInPanel 0.22s ease-out;
}

.services-topics-panel.active {
    display: flex;
}

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

.topics-panel-header {
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-header-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue, #0a1d56);
}

.panel-header-badge i {
    color: var(--accent-orange-alt, #ff5f1f);
}

.panel-header-count {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 3px 10px;
    border-radius: 20px;
}

.services-topics-panel .topics-list {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 480px;
    overflow-y: auto;
}

/* Custom Slim Scrollbar para los temas */
.services-topics-panel .topics-list::-webkit-scrollbar {
    width: 5px;
}
.services-topics-panel .topics-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.services-topics-panel .topics-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.services-topics-panel .topics-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange-alt, #ff5f1f);
}

/* Botón de cada Tema Ejecutivo */
.service-topic-btn {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--sarabun);
    width: 100%;
}

.topic-btn-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topic-btn-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    background: rgba(255, 95, 31, 0.08);
    color: var(--accent-orange-alt, #ff5f1f);
    transition: all 0.2s ease;
}

.topic-btn-text {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.topic-btn-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-orange-alt, #ff5f1f);
    opacity: 0.8;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.service-topic-btn:hover {
    background: #ffffff;
    border-color: var(--accent-orange-alt, #ff5f1f);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255, 95, 31, 0.12);
}

.service-topic-btn:hover .topic-btn-icon {
    background: var(--accent-orange-alt, #ff5f1f);
    color: #ffffff;
}

.service-topic-btn:hover .topic-btn-text {
    color: var(--primary-blue, #0a1d56);
}

.service-topic-btn:hover .topic-btn-right {
    opacity: 1;
    transform: translateX(3px);
}

/* ==========================================================================
   MENÚ ESPECIAL / MODAL DETALLADO (ESTILO EJECUTIVO)
   ========================================================================== */
.service-detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.service-detail-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 29, 86, 0.6);
    backdrop-filter: blur(6px);
}

.service-detail-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(10, 29, 86, 0.25);
    position: relative;
    z-index: 2;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(15px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #e2e8f0;
}

.service-detail-modal-overlay.is-open .service-detail-modal-card {
    transform: scale(1) translateY(0);
}

/* Cabecera del Modal */
.modal-header {
    padding: 26px 28px 18px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.modal-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.modal-category-pill {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 95, 31, 0.08);
    color: var(--accent-orange-alt, #ff5f1f);
    border: 1px solid rgba(255, 95, 31, 0.22);
}

.modal-sub-badge {
    background: #ffffff;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0a1d56;
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.3px;
}

.modal-close-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modal-close-icon:hover {
    background: rgba(255, 95, 31, 0.1);
    color: var(--accent-orange-alt, #ff5f1f);
    border-color: rgba(255, 95, 31, 0.3);
}

/* Cuerpo del Modal */
.modal-body {
    padding: 22px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-explanation-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.modal-icon-container {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent-orange-alt, #ff5f1f);
    background: var(--dark-blue, #06264f);
    flex-shrink: 0;
}

.modal-explanation-text h4 {
    color: #0a1d56;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-explanation-text p {
    color: #334155;
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0;
}

.modal-highlights-section h4 {
    font-size: 13px;
    text-transform: uppercase;
    color: #0a1d56;
    letter-spacing: 0.8px;
    margin: 0 0 10px;
    font-weight: 700;
}

.modal-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.modal-highlights-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.modal-highlights-list li i {
    color: var(--accent-orange-alt, #ff5f1f);
    margin-top: 3px;
    flex-shrink: 0;
}

/* Pie del Modal: Canales de Contacto Directo (Estilo Modesto, Pequeño y Blanco) */
.modal-contact-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 16px 24px 18px;
    border-radius: 0 0 16px 16px;
}

.modal-contact-footer h4 {
    font-size: 13px;
    color: #475569;
    font-weight: 600;
    margin: 0 0 12px;
    text-align: center;
}

.modal-action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    background: #ffffff;
    color: var(--dark-blue, #06264f);
    border: 1px solid #cbd5e1;
    white-space: nowrap;
}

.modal-btn i {
    font-size: 13px;
    color: var(--dark-blue, #06264f);
    transition: color 0.2s ease;
}

.modal-btn:hover {
    background: #ffffff;
    border-color: var(--accent-orange-alt, #ff5f1f);
    color: var(--primary-blue, #0a1d56);
    box-shadow: 0 2px 8px rgba(255, 95, 31, 0.12);
    transform: translateY(-1px);
}

.modal-btn:hover i {
    color: var(--accent-orange-alt, #ff5f1f);
}

/* Los 3 botones son blancos uniformes */
.modal-btn-whatsapp,
.modal-btn-email,
.modal-btn-phone {
    background: #ffffff;
    color: var(--dark-blue, #06264f);
    border: 1px solid #cbd5e1;
}

.modal-btn-whatsapp:hover,
.modal-btn-email:hover,
.modal-btn-phone:hover {
    background: #f8fafc;
    border-color: var(--primary-blue, #0a1d56);
    color: var(--primary-blue, #0a1d56);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MÓVIL & TABLET)
   ========================================================================== */
@media (max-width: 992px) {
    .services-split-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-left-panel {
        position: static;
        text-align: center;
        align-items: center;
    }

    .services-pill-badge {
        margin: 0 auto;
    }

    .services-trust-list {
        align-items: center;
    }

    .services-quick-contact {
        width: 100%;
        max-width: 480px;
    }

    .services-console {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* En móvil, el panel de temas derecho se oculta porque se ubican debajo de cada punto */
    .services-display-panel {
        display: none !important;
    }

    /* Tarjetas de Categoría en Móvil */
    .service-nav-card {
        margin-bottom: 12px;
        border-radius: 14px;
        border: 1px solid #e2e8f0;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .service-nav-card.is-active {
        margin-bottom: 0;
        border-radius: 14px 14px 0 0;
        border-color: var(--primary-blue, #0a1d56);
        border-bottom: none;
        box-shadow: 0 4px 12px rgba(10, 29, 86, 0.04);
        transform: none;
        position: relative;
        z-index: 2;
    }

    .service-nav-card .nav-card-arrow i {
        transition: transform 0.25s ease;
    }

    .service-nav-card.is-active .nav-card-arrow i {
        transform: rotate(90deg);
    }

    /* Panel de Temas desplegado justo debajo del punto seleccionado en móvil (acordeón continuo) */
    .services-topics-panel {
        display: none;
        margin-top: 0;
        margin-bottom: 14px;
        border-radius: 0 0 14px 14px;
        border: 1px solid var(--primary-blue, #0a1d56);
        border-top: 1px solid #f1f5f9;
        background: #ffffff;
        box-shadow: 0 10px 24px rgba(10, 29, 86, 0.08);
        padding: 10px 14px 14px;
        animation: smoothAccordionOpen 0.25s ease-out;
        position: relative;
        z-index: 1;
    }

    @keyframes smoothAccordionOpen {
        from {
            opacity: 0;
            transform: translateY(-4px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .services-topics-panel.active {
        display: flex;
        flex-direction: column;
    }

    /* Ocultar en móvil el encabezado repetido para evitar el corte brusco */
    .services-topics-panel .topics-panel-header {
        display: none !important;
    }

    .services-topics-panel .topics-list {
        padding: 0;
        gap: 8px;
        max-height: none;
    }

    .modal-action-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .services-split-section {
        padding: 60px 15px;
    }

    .placeholder-pillars-grid {
        grid-template-columns: 1fr;
    }

    .service-nav-card {
        padding: 13px 14px;
    }

    .nav-card-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .nav-card-info h3 {
        font-size: 15px;
    }

    .topic-btn-text {
        font-size: 13px;
    }

    .service-detail-modal-card {
        border-radius: 14px;
    }

    .modal-header {
        padding: 18px 18px 14px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .modal-body {
        padding: 16px 18px;
    }

    .modal-explanation-box {
        flex-direction: column;
        padding: 14px;
    }

    .modal-contact-footer {
        padding: 16px 18px 20px;
    }
}
