@charset "utf-8";

/* CSS Document */
html {
        /*font-family: "Open Sans", sans-serif; */
        /*-webkit-text-size-adjust: 100%;*/
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Estilos para la burbuja de sugerencia (Tooltip) */
#whatsapp-tooltip {
        position: fixed;
        bottom: 150px;
        right: 90px;
        /* MODIFICADO: Movemos la burbuja a la izquierda para alejarla del borde */
        background: #D9FDD3;
        color: #333;
        padding: 10px 15px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        font-size: 16px;
        /* Aumentamos ligeramente la fuente para que se lea mejor */
        line-height: 1.4;
        max-width: 250px;
        /* ¡CLAVE! Aumentamos el ancho máximo de 200px a 250px */
        z-index: 98;
        opacity: 0;
        transition: opacity 0.5s, transform 0.5s;
        transform: translateY(10px);
        pointer-events: none;
        text-align: left;
        /* Aseguramos que el texto fluya de forma natural */
}


/* Clases para mostrar y ocultar */
.show-tooltip {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
}

.hide-tooltip {
        opacity: 0;
        transform: translateY(10px);
        /* Usaremos JS para mantener la clase 'hide-tooltip' por defecto */
}

#whatsapp-tooltip::after {
        content: '';
        position: absolute;
        /* 2. FLECHA DERECHA: La flecha sale del lado derecho del tooltip */
        top: 50%;
        /* Centramos la flecha verticalmente */
        right: -11px;
        /* Colocamos la flecha fuera del borde derecho del tooltip */
        transform: translateY(-50%);
        /* Ajuste fino para centrado vertical */
        width: 0;
        height: 0;
        /* Configuración para que apunte a la DERECHA */
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        border-left: 12px solid #D9FDD3;
        /* El color del fondo del tooltip */
}

/* Contenedor para el bot n de WhatsApp (Se mantiene tu estilo original) */

/* 🛑 CORRECCIÓN: Eliminamos el ancho 100% y el centrado del contenedor principal 🛑 */
#whatsapp-container {
        /* Mantenemos la posición fija y el z-index */
        position: fixed;

        background: #25D366;
        z-index: 9999;

        /* Eliminamos: max-width, width, top, left, transform, margin-top, display, justify-content */

        /* Lo colocamos en la esquina inferior derecha para que el botón herede la posición */
        bottom: 0;
        right: 0;

}

/* Estilo del bot n de WhatsApp flotante (Se mantiene tu estilo original) */
.blantershow-chat {
        display: inline-block;
        background: #25D366;
        color: #404040;
        cursor: pointer;
        position: fixed;
        justify-content: center;
        align-items: center;
        z-index: 97;
        bottom: 150px;

        /*bottom: 79px;*/
        right: 5px;
        padding: 5.5px 5.5px;
        border: 3px solid #25D366;
        border-radius: 100%;
        width: 65px;
        height: 65px;
        transition: all 0.3s ease;
}








/* Seleccionamos el icono blanco (el tercer dibujo del SVG) */
#whatsapp-container svg path:nth-child(3) {
        transform: scale(0.9);
        /* Lo bajamos a 0.7 para que se vea más pequeño y elegante */
        transform-origin: center;
}

/* Si quieres que el círculo verde también se vea con más margen */
#whatsapp-container svg path:nth-child(2) {
        transform: scale(0.9);
        transform-origin: center;
}






/* === AJUSTE PRINCIPAL: TAMAÑO Y POSICIÓN DE LA VENTANA === */
#whatsapp-chat {
        position: fixed;
        max-width: 1200px;
        width: 100%;
        background: #fff;
        max-width: 400px;
        /*  ANCHO DESEADO! */
        height: 360px;
        /*  ALTURA DESEADA! */
        border-radius: 10px;
        box-shadow: 0 1px 15px rgba(32, 33, 36, 0.28);
        bottom: 68px;
        left: 72.2%;
        /* Posici n de la ventana */
        justify-content: flex-end;
        overflow: hidden;
        z-index: 999991;
        animation-name: showchat;
        animation-duration: 0.3s;
        transform: scale(1);
        background-color: white !important;
}

/* === AJUSTE PRINCIPAL: ENCABEZADO DE LA VENTANA DE CHAT === */
.header-chat {
        background: #25D366;
        color: #fff;
        padding: 15px 20px;
        /* Reducci n de padding para m s espacio */
        z-index: 998;
        display: flex;
        /* Usar Flexbox para alinear elementos */
        align-items: center;
        /* Centrado vertical de logo y texto */

}

/* Contenedor del logo */
.info-avatar {
        margin-top: -10px;
        position: relative;
        width: 70px;
        height: 70px;
        margin-left: -2px;
        margin-right: 15px;
        /* Espacio entre el logo y el texto */

}

/* Imagen del logo */
.info-avatar img {
        border-radius: 100%;
        width: 70px;
        /* Reducci n del tama o para mejor proporci n */
        height: 76px;

        float: none;
        /* Eliminar float para usar Flexbox */
        margin: 0;
        /* Eliminar m rgenes negativos */
}

/* Contenedor del texto (Tu ejecutivo...) */
.get-new {
        display: flex;
        flex-direction: column;
        /* Apilar las l neas de texto */
        line-height: 1.1;

}

/* Estilo para "Tu ejecutivo de" */
#get-label,
span.chat-label {
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        /* Color de texto blanco para el encabezado */
}

/* Estilo para "Ventas te atiende" */
#get-nama,
span.chat-nama {
        margin: 2px 0 0;
        font-size: 17px;
        color: #fff;
        /* Color de texto blanco para el encabezado */
}

/* --- ESTILOS RESTANTES DEL CHAT --- */




a.close-chat {
        position: absolute;
        top: 5px;
        right: 15px;
        color: #FFFFFF;
        font-size: 30px;
        text-decoration: none;
        cursor: pointer;
        /* Aseguramos que haya un poco de padding para que sea más fácil hacer clic */
        padding: 5px;
        line-height: 1;
        /* Esto ayuda a centrar el contenido */
}

/* 🛑 SOLUCIÓN: Usar el pseudo-elemento para insertar la 'X' */
a.close-chat::before {
        content: "\00D7";
        /* Inserta el símbolo Unicode '×' (multiplicación/cierre) */
        display: block;
        /* Asegura que el contenido se comporte como un bloque para centrado */
}

/* Estilos de texto original (mantener si se usa en otras partes) */
#get-label,
span.chat-label {
        /*  Nota: Estos IDs tambi n se usan en el encabezado, el color y tama o
             fueron sobreescritos arriba para el encabezado. Se mantienen estos
             estilos originales si se usan en otra parte! */
        font-size: 18px;
        font-weight: 700;
        color: #888;
}

#get-nama,
span.chat-nama {
        margin: 5px 0 0;
        font-size: 12px;
        color: #222;
}


#get-label,
#get-nama {
        width: 200px;
        color: #fff;
        text-align: center;
        padding: 0 0 0 0;
}

span.my-number {
        display: none;
}

.blanter-msg {
        color: #444;
        padding: 20px;
        font-size: 13.5px;
        text-align: center;
        border-top: 1px solid #ddd;
        display: flex;
        /*  CLAVE! Habilita Flexbox para la caja de texto y el bot n */
        align-items: flex-end;
        /* Alineaci n para la caja de texto */
        background-color: white !important;
}

.first-msg {
        background: #E6E6E6;
        padding: 30px 20px;
        text-align: center;
        /* Centra la burbuja de mensaje */
}

.first-msg span {
        background: #D9FDD3;
        color: #333;
        font-size: 15px;
        /* Ajuste del tama o de fuente */
        line-height: 1.5;
        padding: 12px 18px;
        /* Ajuste de padding */
        border-radius: 10px;
        /* Esquinas m s suaves */
        box-shadow: 1.5px 1.5px 1.5px rgba(0, 0, 0, 0.15);
        display: inline-block;
        position: relative;
}

.first-msg span:after {
        content: "";
        color: #D9FDD3;
        position: absolute;
        top: 0px;
        left: -8px;
        border-top: 6px solid rgba(175, 175, 252, .20);
        border-top-color: inherit;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        z-index: 991;
}

/* Caja de texto para escribir el mensaje */
textarea#chat-input {
        margin-top: 20px;
        border: 1px solid;
        border-radius: 3px;
        border-color: #E6E6E6;
        font-family: "Arial", sans-serif;
        width: 100%;
        height: 70px;
        outline: none;
        resize: none;
        flex-grow: 1;
        margin-right: 10px;
}

/* Bot n de env o */
#send-it {
        width: 60px;
        height: 38px;
        /* Ajuste para que se vea mejor alineado con la caja de texto */
        color: #555;
        margin: 0;
        /* Eliminar margen para que Flexbox lo alinee */
        font-weight: 400;
        padding: 4px 3px 3px 3px;
        background: #E6E6E6;
        cursor: pointer;
        border-radius: 8px;
        border: 1px solid;
        border-color: rgba(175, 175, 252, 0.40);
        display: flex;
        /* Para centrar el texto "Enviar" */
        justify-content: center;
        align-items: center;
}

#send-it:hover {
        background: rgb(150, 150, 150);
        color: white;
}


.start-chat .blanter-msg {
        display: flex;
}

#get-number {
        display: none;
}


.blantershow-chat:hover {
        background: #25D366;
        transform: scale(1.2);
}

.hide {
        display: none;
}


.close-chat:hover {
        color: red;
        /* Ya lo tenías así, es perfecto para indicar interacción */
}


.show {
        display: block;
}

@keyframes showchat {
        0% {
                -webkit-transform: translateY(0);
                transform: translateY(0);
                opacity: 0;
        }

        1% {
                -webkit-transform: translateY(100px);
                transform: translateY(100px);
                opacity: 1;
        }
}





















/* ==/******************* PC GRANDE ****************/
@media screen and (min-width: 1200px) and (max-width: 1399px) {


        /* Estilo del bot n de WhatsApp flotante (Se mantiene tu estilo original) */
        .blantershow-chat {
                display: inline-block;
                background: #25D366;
                color: #404040;
                cursor: pointer;
                position: fixed;
                justify-content: center;
                align-items: center;
                z-index: 97;
                bottom: 150px;

                /*bottom: 79px;*/
                right: 10px;
                padding: 5.5px 5.5px;
                border: 3px solid #25D366;
                border-radius: 100%;
                width: 65px;
                height: 65px;
                transition: all 0.3s ease;
        }

        /* === AJUSTE PRINCIPAL: TAMAÑO Y POSICIÓN DE LA VENTANA === */
        #whatsapp-chat {
                position: fixed;
                max-width: 1200px;
                width: 100%;
                background: #fff;
                max-width: 400px;
                /*  ANCHO DESEADO! */
                height: 360px;
                /*  ALTURA DESEADA! */
                border-radius: 10px;
                box-shadow: 0 1px 15px rgba(32, 33, 36, 0.28);
                bottom: 68px;
                left: 64%;
                /* Posici n de la ventana */
                justify-content: flex-end;
                overflow: hidden;
                z-index: 999991;
                animation-name: showchat;
                animation-duration: 0.3s;
                transform: scale(1);
                background-color: white !important;
        }


}







/* ============================================================
   ADAPTACIÓN PARA LAPTOP / DESKTOP (992px a 1199px)
   ============================================================ */
@media screen and (min-width: 992px) and (max-width: 1199px) {

        /* Estilo del bot n de WhatsApp flotante (Se mantiene tu estilo original) */
        .blantershow-chat {
                display: inline-block;
                background: #25D366;
                color: #404040;
                cursor: pointer;
                position: fixed;
                justify-content: center;
                align-items: center;
                z-index: 97;
                bottom: 150px;

                /*bottom: 79px;*/
                right: 15px;
                padding: 5.5px 5.5px;
                border: 3px solid #25D366;
                border-radius: 100%;
                width: 65px;
                height: 65px;
                transition: all 0.3s ease;
        }

        /* === AJUSTE PRINCIPAL: TAMAÑO Y POSICIÓN DE LA VENTANA === */
        #whatsapp-chat {
                position: fixed;
                max-width: 1200px;
                width: 100%;
                background: #fff;
                max-width: 400px;
                /*  ANCHO DESEADO! */
                height: 360px;
                /*  ALTURA DESEADA! */
                border-radius: 10px;
                box-shadow: 0 1px 15px rgba(32, 33, 36, 0.28);
                bottom: 68px;
                left: 58.2%;
                /* Posici n de la ventana */
                justify-content: flex-end;
                overflow: hidden;
                z-index: 999991;
                animation-name: showchat;
                animation-duration: 0.3s;
                transform: scale(1);
                background-color: white !important;
        }


}







/* ============================================================
   ADAPTACIÓN PARA TABLET   
   ============================================================ */
@media screen and (min-width: 768px) and (max-width: 991px) {

        /* 1. Ajuste del Botón Flotante (Círculo verde) */
        /*.blantershow-chat {
                bottom: 20px !important;
                /* Más abajo para no estorbar el contenido *
                right: 0px !important;
                /* Ajustado al borde derecho *
                width: 60px !important;
                height: 60px !important;
        }*/

        /* 2. Ajuste de la Burbuja de Sugerencia (Tooltip) */
        #whatsapp-tooltip {
                bottom: 90px !important;
                /* Arriba del botón */
                right: 20px !important;
                left: 20px !important;
                /* Casi ancho completo para que no se salga */
                max-width: none !important;
                font-size: 14px !important;
        }

        /* Eliminamos la flechita en móvil para ganar espacio */
        #whatsapp-tooltip::after {
                display: none !important;
        }

        .blantershow-chat {
                /* Posicionamiento para centrar */
                position: fixed !important;
                bottom: 100px !important;
                /* Lo subimos un poco */
                left: 94% !important;
                /* Lo mandamos al centro */
                right: auto !important;
                /* Desactivamos el "right" que tenía en PC */

                /* El truco para que quede centrado exacto */
                transform: translateX(-50%) !important;

                /* Tamaño óptimo para móvil */
                width: 60px !important;
                height: 60px !important;
                display: flex !important;
                /* Asegura que el icono dentro esté centrado */
                justify-content: center !important;
                align-items: center !important;

                z-index: 9999 !important;
                /* Para que esté sobre las promociones */
        }


        /* 3. AJUSTE CLAVE: La Ventana de Chat */
        #whatsapp-chat {
                width: 90% !important;
                /* Usamos el 90% del ancho del celular */
                max-width: 350px !important;
                height: 400px !important;
                /* Un poco más alto para facilitar la escritura */
                left: 53% !important;
                /* Centrado horizontal exacto */
                right: 2% !important;
                bottom: 90px !important;
                /* Aparece justo arriba del botón verde */
                border-radius: 15px !important;
        }

        /* 4. Encabezado del Chat */
        .header-chat {
                padding: 10px 15px !important;
        }

        .info-avatar,
        .info-avatar img {
                width: 50px !important;
                /* Logo más pequeño para ahorrar espacio */
                height: 50px !important;
        }

        #get-label,
        span.chat-label {
                font-size: 18px !important;
                /* Texto más acorde al celular */
        }

        /* 5. Área de Mensaje (Textarea y Botón Enviar) */
        .blanter-msg {
                padding: 10px !important;
                flex-direction: column !important;
                /* Ponemos el botón debajo del texto */
                align-items: stretch !important;
        }

        textarea#chat-input {
                margin-right: 0 !important;
                margin-bottom: 10px !important;
                /* Espacio para el botón de abajo */
                width: 100% !important;
                height: 110px !important;
                font-size: 16px !important;
                /* Evita que iOS haga zoom automático al escribir */
        }

        #send-it {
                width: 100% !important;
                /* Botón grande para tocar fácil con el dedo */
                height: 40px !important;
                background: #25D366 !important;
                color: white !important;
        }
}







/* ============================================================
   ADAPTACIÓN PARA CELULAR (Media Query)
   ============================================================ */
@media screen and (max-width: 768px) {

        /* 1. Ajuste del Botón Flotante (Círculo verde) */
        .blantershow-chat {
                bottom: 20px !important;
                /* Más abajo para no estorbar el contenido */
                right: 20px !important;
                /* Ajustado al borde derecho */
                width: 60px !important;
                height: 60px !important;
        }

        /* 2. Ajuste de la Burbuja de Sugerencia (Tooltip) */
        #whatsapp-tooltip {
                bottom: 90px !important;
                /* Arriba del botón */
                right: 20px !important;
                left: 20px !important;
                /* Casi ancho completo para que no se salga */
                max-width: none !important;
                font-size: 14px !important;
        }

        /* Eliminamos la flechita en móvil para ganar espacio */
        #whatsapp-tooltip::after {
                display: none !important;
        }

        .blantershow-chat {
                /* Posicionamiento para centrar */
                position: fixed !important;
                bottom: 100px !important;
                /* Lo subimos un poco */
                left: 90% !important;
                /* Lo mandamos al centro */
                right: auto !important;
                /* Desactivamos el "right" que tenía en PC */

                /* El truco para que quede centrado exacto */
                transform: translateX(-50%) !important;

                /* Tamaño óptimo para móvil */
                width: 60px !important;
                height: 60px !important;
                display: flex !important;
                /* Asegura que el icono dentro esté centrado */
                justify-content: center !important;
                align-items: center !important;

                z-index: 9999 !important;
                /* Para que esté sobre las promociones */
        }


        /* 3. AJUSTE CLAVE: La Ventana de Chat */
        #whatsapp-chat {
                width: 90% !important;
                /* Usamos el 90% del ancho del celular */
                max-width: 350px !important;
                height: 400px !important;
                /* Un poco más alto para facilitar la escritura */
                left: 7% !important;
                /* Centrado horizontal exacto */
                right: 2% !important;
                bottom: 90px !important;
                /* Aparece justo arriba del botón verde */
                border-radius: 15px !important;
        }

        /* 4. Encabezado del Chat */
        .header-chat {
                padding: 10px 15px !important;
        }

        .info-avatar,
        .info-avatar img {
                width: 50px !important;
                /* Logo más pequeño para ahorrar espacio */
                height: 50px !important;
        }

        #get-label,
        span.chat-label {
                font-size: 18px !important;
                /* Texto más acorde al celular */
        }

        /* 5. Área de Mensaje (Textarea y Botón Enviar) */
        .blanter-msg {
                padding: 10px !important;
                flex-direction: column !important;
                /* Ponemos el botón debajo del texto */
                align-items: stretch !important;
        }

        textarea#chat-input {
                margin-right: 0 !important;
                margin-bottom: 10px !important;
                /* Espacio para el botón de abajo */
                width: 100% !important;
                height: 100px !important;
                font-size: 16px !important;
                /* Evita que iOS haga zoom automático al escribir */
        }

        #send-it {
                width: 100% !important;
                /* Botón grande para tocar fácil con el dedo */
                height: 40px !important;
                background: #25D366 !important;
                color: white !important;
        }
}