/* ==========================================================================
   WhatsApp Widget - Colosal Software
   ========================================================================== */

#colo-wa-widget {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9998;
}

/* Botón flotante */
.colo-wa-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border: 3px solid #fff;
}
.colo-wa-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}
.colo-wa-btn:active {
    transform: scale(0.95);
}

.colo-wa-pulso {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: colo-wa-pulso 2s infinite;
    z-index: -1;
}

@keyframes colo-wa-pulso {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Panel de chat */
.colo-wa-panel {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 340px;
    max-width: calc(100vw - 48px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    overflow: hidden;
    animation: colo-wa-panel-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes colo-wa-panel-in {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Header del panel */
.colo-wa-header {
    background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
    color: #fff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.colo-wa-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.colo-wa-header-texto {
    flex: 1;
}
.colo-wa-header-nombre {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
}
.colo-wa-header-status {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.2;
}
.colo-wa-cerrar {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.colo-wa-cerrar:hover {
    background: rgba(255,255,255,0.3);
}

/* Body del panel */
.colo-wa-body {
    padding: 16px;
    background: #e5ddd5;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

/* Burbuja de mensaje */
.colo-wa-burbuja {
    background: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    position: relative;
}
.colo-wa-burbuja::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid #fff;
    border-left: 8px solid transparent;
}
.colo-wa-burbuja-texto {
    font-size: 13.5px;
    line-height: 1.5;
    color: #1e293b;
    white-space: pre-line;
}
.colo-wa-burbuja-texto strong {
    font-weight: 700;
}
.colo-wa-burbuja-hora {
    text-align: right;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Opciones de mensaje */
.colo-wa-opciones {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.colo-wa-opcion {
    display: block;
    background: #fff;
    color: #075e54;
    border: 1.5px solid #dcf8c6;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}
.colo-wa-opcion:hover {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    border-color: #25d366;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}
.colo-wa-opcion-primario {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    border-color: #25d366;
}
.colo-wa-opcion-primario:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    border-color: #128c7e;
}

/* Responsive */
@media (max-width: 480px) {
    #colo-wa-widget {
        bottom: 16px;
        left: 16px;
    }
    .colo-wa-btn {
        width: 56px;
        height: 56px;
    }
    .colo-wa-panel {
        width: calc(100vw - 32px);
        bottom: 72px;
        left: 0;
    }
}
