/* =========================================================
   ASISTENTE ASYLUM
========================================================= */

.asylum-assistant {
    position: fixed;
    right: 28px;
    bottom: 90px;
    z-index: 1050;
}


/* =========================================================
   BOTÓN FLOTANTE
========================================================= */

.asylum-assistant-toggle {
    display: flex;
    align-items: center;
    gap: 10px;

    border: none;
    border-radius: 50px;

    padding: 13px 20px;

    background: #0d6efd;
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.asylum-assistant-toggle:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.22);
}

.asylum-assistant-toggle i {
    font-size: 20px;
}


/* =========================================================
   PANEL
========================================================= */

.asylum-assistant-panel {
    position: absolute;

    right: 0;
    bottom: 65px;

    width: 390px;
    max-width: calc(100vw - 32px);

    background: #ffffff;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.20);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(15px)
        scale(0.97);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.asylum-assistant-panel.open {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   HEADER
========================================================= */

.asylum-assistant-header {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 18px;

    background: linear-gradient(
        135deg,
        #0d6efd,
        #084298
    );

    color: #ffffff;
}

.asylum-assistant-header-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.15);
}

.asylum-assistant-header-icon i {
    font-size: 21px;
}

.asylum-assistant-header div:nth-child(2) {
    flex: 1;
}

.asylum-assistant-header strong {
    display: block;
    font-size: 16px;
}

.asylum-assistant-header small {
    display: block;
    margin-top: 2px;
    opacity: 0.85;
}

.asylum-assistant-close {
    width: 34px;
    height: 34px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);

    color: #ffffff;

    cursor: pointer;
}

.asylum-assistant-close:hover {
    background: rgba(255, 255, 255, 0.22);
}


/* =========================================================
   BODY
========================================================= */

.asylum-assistant-body {
    padding: 20px;
}


/* =========================================================
   PANTALLAS
========================================================= */

.assistant-screen {
    display: none;
}

.assistant-screen.active {
    display: block;
}


/* =========================================================
   BIENVENIDA
========================================================= */

.assistant-welcome {
    text-align: center;
    margin-bottom: 20px;
}

.assistant-welcome-icon {
    width: 52px;
    height: 52px;

    margin: 0 auto 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eef5ff;

    color: #0d6efd;
}

.assistant-welcome-icon i {
    font-size: 24px;
}

.assistant-welcome h3 {
    margin-bottom: 6px;
    font-size: 22px;
}

.assistant-welcome p {
    margin-bottom: 4px;
    color: #64748b;
}


/* =========================================================
   OPCIONES
========================================================= */

.assistant-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.assistant-option {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 13px;

    border: 1px solid #e2e8f0;
    border-radius: 13px;

    background: #ffffff;

    text-align: left;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.assistant-option:hover {
    border-color: #0d6efd;
    background: #f8fbff;
    transform: translateX(2px);
}

.assistant-option-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #eef5ff;

    color: #0d6efd;
}

.assistant-option-icon i {
    font-size: 19px;
}

.assistant-option-content {
    flex: 1;
}

.assistant-option-content strong {
    display: block;

    color: #1e293b;
    font-size: 14px;
}

.assistant-option-content small {
    display: block;

    margin-top: 3px;

    color: #64748b;
    font-size: 12px;
}

.assistant-option > i {
    color: #94a3b8;
}


/* =========================================================
   BOTÓN REGRESAR
========================================================= */

.assistant-back {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-bottom: 18px;

    padding: 0;

    border: none;

    background: transparent;

    color: #0d6efd;

    font-size: 13px;

    cursor: pointer;
}


/* =========================================================
   TÍTULO DE PANTALLA
========================================================= */

.assistant-screen-title {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 14px;
}

.assistant-screen-title > i {
    font-size: 22px;
    color: #0d6efd;
}

.assistant-screen-title h3 {
    margin: 0;
    font-size: 19px;
}

.assistant-screen > p {
    color: #64748b;

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   SUBOPCIONES
========================================================= */

.assistant-suboptions {
    display: flex;
    flex-direction: column;

    gap: 8px;

    margin-top: 18px;
}

.assistant-link {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 12px;

    border-radius: 10px;

    background: #f8fafc;

    color: #334155;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.assistant-link:hover {
    background: #eef5ff;
    color: #0d6efd;
}

.assistant-link span {
    flex: 1;
}

.assistant-link > i:first-child {
    color: #0d6efd;
}


/* =========================================================
   ACCIONES
========================================================= */

.assistant-primary-action,
.assistant-whatsapp-action,
.assistant-phone-action {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 13px 16px;

    margin-top: 12px;

    border-radius: 11px;

    text-decoration: none;

    font-weight: 600;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.assistant-primary-action {
    background: #0d6efd;
    color: #ffffff;
}

.assistant-whatsapp-action {
    background: #25d366;
    color: #ffffff;
}

.assistant-phone-action {
    background: #f1f5f9;
    color: #334155;
}

.assistant-primary-action:hover,
.assistant-whatsapp-action:hover,
.assistant-phone-action:hover {
    transform: translateY(-1px);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 576px) {

    .asylum-assistant {
        right: 15px;
        bottom: 75px;
        left: 15px;
    }

    .asylum-assistant-toggle {
        margin-left: auto;
    }

    .asylum-assistant-panel {
        right: 0;
        bottom: 65px;

        width: 100%;
        max-width: none;
    }

}