/* ================================================================
   KONTIVA / CONTASOFT - SERVICIOS, CONTACTO Y WHATSAPP
   Hoja adicional para no alterar el CSS principal existente.
   ================================================================ */

.kp-services-section {
    padding: 84px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fe 100%);
}

.kp-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.kp-service-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid #dce5f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 52, 100, .06);
}

.kp-service-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff3e8;
    color: #ff6b00;
    font-weight: 900;
    font-size: 18px;
}

.kp-service-item h3 {
    margin: 1px 0 5px;
    color: #071c4b;
    font-size: 17px;
}

.kp-service-item p {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.55;
}

.kp-contact-section {
    padding: 84px 0;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(30, 131, 255, .28), transparent 28%),
        linear-gradient(135deg, #04163f, #0a3379);
}

.kp-contact-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 36px;
    align-items: stretch;
}

.kp-contact-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4vw, 46px);
}

.kp-contact-copy > p {
    max-width: 680px;
    margin: 0 0 28px;
    color: #d8e5fb;
    font-size: 17px;
    line-height: 1.65;
}

.kp-team-list {
    display: grid;
    gap: 11px;
    margin-top: 22px;
}

.kp-team-person {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #eef5ff;
    font-weight: 700;
}

.kp-team-person::before {
    content: '✓';
    color: #5ee2ab;
    font-weight: 900;
}

.kp-contact-card {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 22px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
}

.kp-contact-card h3 {
    margin: 0 0 18px;
    font-size: 23px;
}

.kp-contact-line {
    display: flex;
    gap: 12px;
    margin: 16px 0;
    color: #e6efff;
    line-height: 1.5;
}

.kp-contact-line strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
}

.kp-contact-symbol {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .12);
}

.kp-contact-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.kp-whatsapp-link {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 16px;
    border-radius: 11px;
    text-decoration: none;
    color: #fff;
    background: #169c5b;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease;
}

.kp-whatsapp-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.kp-footer-detail {
    margin-top: 8px;
    font-size: 13px;
    color: #90a8cc;
}

/* Botón flotante */
.kp-wa-floating {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 100;
}

.kp-wa-trigger {
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #18a85f;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
    cursor: pointer;
    font-size: 28px;
    font-weight: 900;
}

.kp-wa-menu {
    position: absolute;
    right: 0;
    bottom: 70px;
    width: min(330px, calc(100vw - 36px));
    padding: 16px;
    border: 1px solid #dce5f2;
    border-radius: 16px;
    background: #fff;
    color: #10213c;
    box-shadow: 0 20px 55px rgba(10, 40, 90, .22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .18s ease;
}

.kp-wa-floating.is-open .kp-wa-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.kp-wa-menu strong {
    display: block;
    margin-bottom: 4px;
    color: #071c4b;
}

.kp-wa-menu p {
    margin: 0 0 12px;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

.kp-wa-option {
    display: block;
    padding: 11px 12px;
    margin-top: 8px;
    border-radius: 10px;
    background: #f1f8f4;
    color: #126b40;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
}

.kp-wa-option:hover {
    background: #e7f4ec;
}

@media (max-width: 900px) {
    .kp-services-grid,
    .kp-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .kp-services-section,
    .kp-contact-section {
        padding: 60px 0;
    }

    .kp-services-grid {
        grid-template-columns: 1fr;
    }

    .kp-service-item,
    .kp-contact-card {
        padding: 18px;
    }

    .kp-wa-floating {
        right: 16px;
        bottom: 16px;
    }
}
/* =========================================================
   ASISTENTE KONTIVA
   ========================================================= */

.kp-assistant-floating {
    position: fixed;
    right: 24px;
    bottom: 24px;

    width: 58px;
    height: 58px;

    border: none;
    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #0c56bd,
        #087ee8
    );

    color: #ffffff;

    font-size: 25px;

    cursor: pointer;

    box-shadow:
        0 12px 30px rgba(10, 65, 145, 0.28);

    z-index: 990;
}

.kp-assistant-floating:hover {
    transform: translateY(-2px);
}

.kp-assistant {
    position: fixed;
    inset: 0;

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

    padding: 24px;

    background: rgba(4, 20, 48, 0.35);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;

    z-index: 1000;
}

.kp-assistant.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.kp-assistant-panel {
    width: min(390px, 100%);
    max-height: min(650px, calc(100vh - 48px));

    overflow: hidden;

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 24px 70px rgba(0, 25, 70, 0.28);

    transform: translateY(20px);

    transition: transform 0.2s ease;
}

.kp-assistant.is-open .kp-assistant-panel {
    transform: translateY(0);
}

.kp-assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding: 18px 20px;

    background:
        linear-gradient(
            135deg,
            #082e6c,
            #0d57bd
        );

    color: #ffffff;
}

.kp-assistant-header div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kp-assistant-header strong {
    font-size: 17px;
}

.kp-assistant-header span {
    font-size: 12px;
    opacity: 0.82;
}

.kp-assistant-close {
    width: 34px;
    height: 34px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);

    color: #ffffff;

    font-size: 24px;

    cursor: pointer;
}

.kp-assistant-body {
    max-height: 530px;
    overflow-y: auto;

    padding: 18px;
}

.kp-assistant-message {
    padding: 12px 14px;

    border-radius: 14px 14px 14px 4px;

    background: #edf5ff;

    color: #12396f;

    font-size: 14px;

    margin-bottom: 14px;
}

.kp-assistant-options {
    display: grid;
    gap: 9px;
}

.kp-assistant-options button,
.kp-human-options button,
.kp-assistant-answer button {
    width: 100%;

    padding: 11px 13px;

    border: 1px solid #d3e1f3;
    border-radius: 10px;

    background: #ffffff;

    color: #12396f;

    font-weight: 700;
    font-size: 13px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.kp-assistant-options button:hover,
.kp-human-options button:hover,
.kp-assistant-answer button:hover {
    background: #f2f7ff;
    border-color: #8fb5e7;
    transform: translateY(-1px);
}

.kp-assistant-options .kp-assistant-human {
    background: #0d57bd;
    border-color: #0d57bd;
    color: #ffffff;
}

.kp-assistant-response {
    margin-top: 14px;
}

.kp-assistant-answer {
    padding: 14px;

    border: 1px solid #dce7f5;
    border-radius: 12px;

    background: #f8fbff;
}

.kp-assistant-answer strong {
    display: block;
    margin-bottom: 7px;

    color: #082e6c;
}

.kp-assistant-answer p {
    margin: 0 0 12px;

    color: #52657f;

    font-size: 13px;
    line-height: 1.55;
}

.kp-assistant-answer a {
    display: inline-flex;

    padding: 9px 13px;

    border-radius: 9px;

    background: #0d57bd;

    color: #ffffff;
    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}

.kp-human-options {
    display: grid;
    gap: 9px;
}

.kp-assistant-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    border: none;
    border-radius: 10px;

    background: #0d57bd;
    color: #ffffff;

    font-weight: 800;

    cursor: pointer;
}

@media (max-width: 600px) {

    .kp-assistant {
        padding: 12px;
    }

    .kp-assistant-panel {
        width: 100%;
        max-height: calc(100vh - 24px);
    }

    .kp-assistant-floating {
        right: 16px;
        bottom: 16px;
    }
}
/* =========================================================
   FORMULARIO DE CONTACTO - ASISTENTE KONTIVA
   ========================================================= */

.kp-assistant-contact-form {
    margin-top: 12px;
}

.kp-assistant-contact-form label {
    display: block;

    margin: 12px 0 6px;

    color: #183d70;

    font-size: 12px;
    font-weight: 800;
}

.kp-assistant-contact-form input,
.kp-assistant-contact-form textarea {
    width: 100%;

    padding: 10px 12px;

    border: 1px solid #d1dfef;
    border-radius: 9px;

    background: #ffffff;

    color: #263d5d;

    font-family: inherit;
    font-size: 13px;

    outline: none;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.kp-assistant-contact-form textarea {
    resize: vertical;
    min-height: 90px;
}

.kp-assistant-contact-form input:focus,
.kp-assistant-contact-form textarea:focus {
    border-color: #0d57bd;

    box-shadow:
        0 0 0 3px rgba(13, 87, 189, 0.10);
}

.kp-assistant-contact-form input::placeholder,
.kp-assistant-contact-form textarea::placeholder {
    color: #9aa9bd;
}

.kp-assistant-form-error {
    display: block;

    min-height: 18px;

    margin-top: 7px;

    color: #b42318;

    font-size: 12px;
    font-weight: 700;
}

.kp-assistant-area-question {
    margin-top: 8px !important;

    color: #183d70 !important;

    font-weight: 800;
}