/* ================================================== */
/* Estilos Base del Botón Flotante (Botón principal) */
/* ================================================== */
#whatsapp-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99998;
}

.whatsapp-btn-base {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; 
}

/* --- ESTILO 1: Botón Redondo (Sólo Ícono de WhatsApp) --- */
.whatsapp-btn-style-1 {
    width: 55px;
    height: 55px;
    padding: 0;
    border-radius: 50%; 
    background-color: #25D366; 
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 0; /* Oculta el texto */
    position: relative;
}
.whatsapp-btn-style-1:hover {
    background-color: #1FAF54;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Simulación del icono de WhatsApp con un pseudo-elemento */
.whatsapp-btn-style-1::before {
    content: "\f232"; /* Código común para ícono de WhatsApp si se usa FontAwesome */
    /* Si no usas FontAwesome, usa un icono simple o emoji */
    content: "💬"; /* Usamos un emoji simple para compatibilidad */
    font-size: 24px;
    line-height: 1;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* --- ESTILO 2: Botón Alargado (El antiguo Estilo 2/Minimalista) --- */
.whatsapp-btn-style-2 {
    background-color: #0088cc; 
    color: white;
    border-radius: 30px; 
    box-shadow: none;
}
.whatsapp-btn-style-2:hover {
    background-color: #0077b3;
    transform: scale(1.05);
}


/* ================================================== */
/* Estilos del Widget de Chat y Flujo por Etapas      */
/* ================================================== */

.whatsapp-chat-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    padding: 15px;
    z-index: 99999;
}

/* Estilos de los Pasos (Steps) */
.chat-step {
    padding: 10px 0;
}
.chat-step h3 {
    margin-top: 0;
    font-size: 1.1em;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* Estilos para el listado de Agentes */
.chat-agents-list .agent-option {
    display: block;
    padding: 8px 10px;
    margin-bottom: 5px;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    background: #f9f9f9;
    transition: background-color 0.2s;
}

/* Efecto al seleccionar un agente (simulación de avance de etapa) */
.chat-agents-list .agent-option:hover {
    background: #eef;
}
.chat-agents-list input[type="radio"] {
    display: none; /* Ocultamos el radio button real */
}
.chat-agents-list input[type="radio"]:checked + span {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    font-weight: bold;
}
.chat-agents-list .agent-option span {
    display: block;
}


/* Estilos del formulario de datos */
.chat-user-data input, .chat-user-data textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.start-whatsapp-chat-button {
    width: 100%;
    padding: 10px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}