    /* Botón flotante */
    .chat-btn-floating {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        text-align: center;
        line-height: 60px;
        font-size: 24px;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        z-index: 9999;
        transition: transform 0.3s;
    }
    .chat-btn-floating:hover {
        transform: scale(1.1);
    }

    /* Contenedor del Chat */
    .chat-window {
        position: fixed;
        bottom: 90px;
        right: 20px;
        width: 350px;
        height: 450px;
        background-color: white;
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
        z-index: 9999;
        display: none; /* Oculto por defecto */
        flex-direction: column;
        overflow: hidden;
        font-family: 'Poppins', sans-serif;
    }

    /* Encabezado */
    .chat-header {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        color: white;
        padding: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .chat-header h4 { margin: 0; font-size: 16px; }
    .close-chat { cursor: pointer; font-size: 20px; }

    /* Área de mensajes */
    .chat-messages {
        flex: 1;
        padding: 15px;
        overflow-y: auto;
        background-color: #f8f9fa;
    }
    .message {
        margin-bottom: 10px;
        padding: 10px 15px;
        border-radius: 20px;
        max-width: 80%;
        font-size: 14px;
    }
    .bot-msg {
        background-color: #e9ecef;
        color: #333;
        align-self: flex-start;
        border-bottom-left-radius: 2px;
    }
    .user-msg {
        background-color: #007bff;
        color: white;
        align-self: flex-end;
        margin-left: auto;
        border-bottom-right-radius: 2px;
    }

    /* Input */
    .chat-input-area {
        padding: 10px;
        border-top: 1px solid #ddd;
        display: flex;
        background: white;
    }
    .chat-input-area input {
        flex: 1;
        border: 1px solid #ddd;
        border-radius: 20px;
        padding: 8px 15px;
        outline: none;
    }
    .chat-input-area button {
        background: none;
        border: none;
        color: #007bff;
        font-size: 18px;
        margin-left: 10px;
        cursor: pointer;
    }

    /* ═══════════════════════════════════════════════════
       WIDGET DE ACCESIBILIDAD — estilos completos
       ═══════════════════════════════════════════════════ */

    /* Botón flotante de accesibilidad */
    .accessibility-widget {
        position: fixed;
        bottom: 90px;
        left: 20px;
        z-index: 99999;
    }
    .accessibility-button {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: #1e3a8a;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 14px rgba(0,0,0,0.35);
        transition: transform 0.2s;
    }
    .accessibility-button:hover { transform: scale(1.1); }
    .accessibility-button svg {
        width: 26px;
        height: 26px;
        fill: white;
    }

    /* Panel lateral — siempre fuera de pantalla por defecto */
    .accessibility-panel {
        position: fixed;
        top: 0;
        right: -300px;          /* oculto a la derecha */
        width: 270px;
        height: 100vh;
        background: linear-gradient(160deg, #1e3a8a 0%, #3b5bdb 100%);
        z-index: 99998;
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
    }
    /* Panel visible al activarse */
    .accessibility-panel.active {
        right: 0;
    }

    /* Encabezado */
    .panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 22px 18px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        flex-shrink: 0;
    }
    .panel-header h2 {
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        margin: 0;
        line-height: 1.3;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    .close-button {
        background: rgba(255,255,255,0.15);
        border: none;
        color: #fff;
        font-size: 22px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        transition: background 0.2s;
        flex-shrink: 0;
    }
    .close-button:hover { background: rgba(255,255,255,0.3); }

    /* Lista de herramientas */
    .tools-list {
        display: flex;
        flex-direction: column;
        padding: 12px 10px;
        gap: 4px;
        flex: 1;
    }
    .tool-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 12px;
        border-radius: 10px;
        cursor: pointer;
        transition: background 0.18s;
        user-select: none;
    }
    .tool-item:hover  { background: rgba(255,255,255,0.18); }
    .tool-item.active {
        background: rgba(255,255,255,0.28);
        box-shadow: 0 0 0 2px rgba(255,255,255,0.7);
    }
    .tool-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        background: rgba(255,255,255,0.15);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .tool-item.active .tool-icon { background: rgba(255,255,255,0.35); }
    .tool-icon svg {
        width: 20px;
        height: 20px;
        fill: white;
    }
    .tool-text {
        color: #fff;
        font-size: 13px;
        font-weight: 500;
    }
    .tool-item.active .tool-text { font-weight: 700; }