/* css/chat-widget.css */

/* 1. El Botón Toggler de WhatsApp (Verde, AHORA UN ENLACE) */
#chat-widget-toggler {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Verde de WhatsApp */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 998; /* Un poco menos que el de SMS */
    transition: transform 0.3s ease;
    text-decoration: none; /* Quita el subrayado del enlace */
}

#chat-widget-toggler:hover {
    transform: scale(1.1);
}

/* 2. Botón Toggler de SMS (Azul, AHORA UN DIV) */
#sms-widget-toggler {
    position: fixed;
    bottom: 90px; /* 10px de espacio sobre el botón de WhatsApp */
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #007bff; /* Azul de Mensajes */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer; /* Importante para que parezca un botón */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.3s ease;
}

#sms-widget-toggler:hover {
    transform: scale(1.1);
}

/* 3. El Modal del Widget */
#chat-widget-modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    width: 320px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-family: Arial, sans-serif;
    animation: slideUp 0.3s ease-out;

    /* Mobile-first: Apilado encima de los dos botones */
    bottom: 160px; /* 90px + 60px + 10px */
    left: 20px;
}

/* Desktop: Al lado del botón de SMS */
@media (min-width: 401px) { /* 320px (ancho modal) + 20px (left) + 60px (botón) + 1px */
    #chat-widget-modal {
        bottom: 90px; /* Se alinea con el botón de SMS */
        left: 90px; /* 60px botón + 20px left + 10px margen */
    }
}

/* Animación de entrada */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 4. Botón de Cerrar (X) */
#chat-widget-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.8rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

#chat-widget-close:hover {
    color: #333;
}

/* 5. Encabezado del Widget */
.chat-widget-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

#chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    background-color: #eee; 
}

.chat-widget-info strong {
    font-size: 1.1rem;
    color: #333;
    display: block;
}

.chat-widget-info span {
    font-size: 0.9rem;
    color: #777;
}

/* 6. Mensaje de Bienvenida */
.chat-widget-welcome {
    text-align: center;
    padding: 25px 20px;
    font-size: 1.05rem;
    color: #444;
}

/* 7. Lista de Opciones */
.chat-widget-options {
    list-style: none;
    margin: 0;
    padding: 0 20px 20px 20px;
}

.chat-widget-options li {
    margin-bottom: 10px;
}

.chat-widget-options a {
    display: flex;
    align-items: center;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s;
}

.chat-widget-options a:hover {
    background-color: #f8f8f8;
    border-color: #ccc;
}

.chat-widget-options a i {
    font-size: 1.3rem;
    margin-right: 15px;
    width: 24px;
    text-align: center;
    color: #555;
}

/* Colores específicos de íconos */
#live-chat-btn i {
    color: #007bff;
}
.chat-widget-options a[href*="wa.me"] i {
    color: #25D366;
}
#schedule-btn i {
    color: #fd7e14;
}
#form-btn i {
    color: #6f42c1;
}