﻿/* ==========================================
   WA OVERLAY COMPONENT
   ========================================== */

/* Etiqueta: <div id="waOverlay" class="wa-overlay">
   ID: waOverlay
   Class: wa-overlay
*/

.wa-overlay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 65px;
    height: 0;
    z-index: 15000;
    overflow: hidden;
    transition: height 0.45s ease;
    pointer-events: none;
    left: 50%; /* Mueve el borde izquierdo al centro exacto */
    transform: translateX(-50%); /* Recula la mitad del ancho del elemento para centrarlo perfecto */
}

    /* Clase de estado para mostrar el overlay animado */
.wa-overlay.show {
    height: calc(100dvh - 65px);
    pointer-events: auto;
}

/* Etiqueta: <div class="wa-window">
   Class: wa-window
*/
.wa-window {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 21px 21px 0 0;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0,0,0,.5);
    margin-top: 10px;
    overflow: hidden; /* Ya no hace scroll */
}

/* Etiqueta: <div class="wa-header">
   Class: wa-header
*/


#waDragHandle {
    touch-action: none; /* Bloquea el scroll nativo del dedo solo en el handle */
}

#waHeader {
    touch-action: none; /* Bloquea el scroll nativo del dedo solo en el handle */
}
/* Etiqueta: <div class="wa-header">
   Class: wa-header
*/
.wa-header {
    position: relative;
    flex-shrink: 0;
    z-index: 10;
    height: 80px;
    display: flex;
    align-items: center;
    padding: 16px 16px 0;
    border-bottom: 0.5px solid #c7c7c7;
    cursor: grab;
    border-radius: 21px 21px 0 0;
}

/* Drag centrado en la parte superior */
.wa-drag-area {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    margin-top:10px;
    width: 60px;
    height: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    cursor: grab;
    z-index: 2;
}

    .wa-drag-area:active {
        cursor: grabbing;
    }

.wa-drag-pill {
    width: 42px;
    height: 5px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.25);
}

/* Texto a la izquierda */
.txt-header {
    font-size: 20px;
    font-weight: 600;
    user-select: none;
}

/* Botón hasta la derecha */
.wa-back {
    margin-left: auto;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Etiqueta: <div class="wa-content">
   Class: wa-content
*/

.wa-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1 1 auto;
    position: relative;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    box-sizing: border-box;
}
/* ==========================================
   SCROLLBAR - WA CONTENT
   ========================================== */

/* Etiqueta: <div class="wa-content">
   Class: wa-content
*/
.wa-content {
    scrollbar-width: thin;
    scrollbar-color: #c7c7c7 transparent;
}

    .wa-content::-webkit-scrollbar {
        width: 8px;
    }

.hide-scrollbar {
    scrollbar-width: none;
}

    .hide-scrollbar::-webkit-scrollbar {
        display: none;
    }

.visible-scrollbar {
    scrollbar-width: thin;
}

    .visible-scrollbar::-webkit-scrollbar {
        width: 8px;
    }
/* Motores WebKit (Chrome, Edge, Safari, Opera) - Barra completa */
.wa-content::-webkit-scrollbar {
    width: 4px;
    height: 4px; /* Por si llega a aparecer scroll horizontal */
}

/* Motores WebKit - Carril o fondo del scroll */
.wa-content::-webkit-scrollbar-track {
    background: transparent;
}

/* Motores WebKit - Barra arrastrable */
.wa-content::-webkit-scrollbar-thumb {
    background: #c7c7c7;
    border-radius: 999px;
    transition: background .2s ease;
}

    /* Motores WebKit - Barra arrastrable en estado Hover */
    .wa-content::-webkit-scrollbar-thumb:hover {
        background: #8f8f8f;
    }

/* Motores WebKit - Esquina interna de scrollbar */
.wa-content::-webkit-scrollbar-corner {
    background: transparent;
}

/* Motores WebKit - ELIMINA POR COMPLETO LAS FLECHAS */
.wa-content::-webkit-scrollbar-button {
    width: none !important;
    height: none !important;
}
/* Etiqueta: <div class="demo-card">
   Class: demo-card
*/
/* Card contenedora */
/* Contenedor información WachaT IA */
.wa-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}
    .wa-info.hidden{
        display: none;
    }

/* Badge de Próximamente */
.wa-badge-coming-soon {
    display: inline-block;
    background-color: #e8f5e9;
    color: #2e7d32;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

/* Contenedor de Iconos */
.wa-icons-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG Chat (Principal) */
.wa-svg-chat {
    width: 50px;
    height: 50px;
    color: #25d366; /* Verde característico o usa el azul de tu marca #007bff */
}

/* SVG Lupa (Badge secundario) */
.wa-svg-search-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background-color: #007bff;
    color: #ffffff;
    border-radius: 50%;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

    .wa-svg-search-badge svg {
        width: 13px;
        height: 13px;
    }

/* Textos */
.wa-info-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.wa-info-description {
    font-size: 0.88rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
    max-width: 290px;
}
@media (min-width: 600px) {
    .wa-overlay {
        left: 50%; /* Mueve el borde izquierdo al centro exacto */
        transform: translateX(-50%); /* Recula la mitad del ancho del elemento para centrarlo perfecto */
        padding-left: 10px;
        padding-right: 10px;
    }

    .wa-window {
        margin-top: 20px;
    }
}